Commit Graph

218 Commits

Author SHA1 Message Date
Christel Westerberg
8b68b045eb fix: check if its a cs link before checking node 2024-08-22 14:56:13 +02:00
Michael Zetterberg
a33a69fb58 fix: improve auth handling and logging 2024-08-22 14:07:36 +02:00
Christel Westerberg
56d374f019 fix: zod validate after cruching data 2024-08-22 11:40:40 +02:00
Erik Tiekstra
77bdaa1e5e fix(SW-190): removed console.log 2024-08-22 09:49:02 +02:00
Erik Tiekstra
b2b7f4f85a fix(SW-190): added cache for content page query and added breadcrumbs fetching for content page 2024-08-22 09:49:02 +02:00
Erik Tiekstra
56312335b2 fix(SW-190): added linkConnectionNode as variable for readability 2024-08-22 09:49:02 +02:00
Erik Tiekstra
771338cc80 fix(SW-190): added imageVaultAsset schema 2024-08-22 09:49:02 +02:00
Erik Tiekstra
33460d8e87 fix(SW-190): moved types from output to own file inside /types 2024-08-22 09:49:02 +02:00
Erik Tiekstra
a0053335a6 chore: cleanup 2024-08-22 09:49:02 +02:00
Arvid Norlin
a01aa10bf2 fix: add content-page handling in languageSwitcher query 2024-08-22 09:49:02 +02:00
Erik Tiekstra
8220a39a8f feat(SW-190): added hero to static content pages 2024-08-22 09:49:02 +02:00
Erik Tiekstra
f1ca9a0704 feat(SW-190): added hero to loyalty pages 2024-08-22 09:49:02 +02:00
Tobias Johansson
e9a6499086 feat(SW-245): Delete credit card 2024-08-21 16:24:39 +02:00
Tobias Johansson
1ec1033267 Merged in feat/SW-165-correct-labels (pull request #427)
Feat/SW-165 correct labels

* feat(SW-165): sort friend transactions and return additional properties

* feat(SW-165): Added points being calculated label

* feat(SW-165): added transactionDate for transactions without checkinDate

* feat(SW-165): Updated description copy for various reward types

* feat(SW-165): filter out expired transactions

* feat(SW-165): removed Mobile table and unified them into Table instead

* feat(SW-165): Added bookingUrl to friend transactions

* fix(SW-165): style fixes

* fix(SW-165): fix issues from merge

* fix(SW-165): remove comment

* fix(SW-165): fixed booking urls not being set and smaller fixes

* fix(SW-165): added comment regarding 'BALFWD'


Approved-by: Michael Zetterberg
Approved-by: Christel Westerberg
2024-08-21 13:54:55 +00:00
Michael Zetterberg
63ce8a2dfb fix(SW-104): use relative url for initiation 2024-08-21 15:25:37 +02:00
Christel Westerberg
855713565e feat: handle ecid and loginType params from mobile app 2024-08-21 11:24:44 +02:00
Chuma McPhoy
f4586ba35b fi(SW-188): implement PR feedback 2024-08-21 10:31:52 +02:00
Chuma McPhoy
f3d32033a5 fix(SW-188): remove use of getHotel endpoint in components meant to use other endpoints 2024-08-21 10:31:52 +02:00
Chuma McPhoy
172802af2f fix(SW-188): remove refine and validate on transform for hotel schema 2024-08-21 10:31:52 +02:00
Chuma McPhoy
16e0165a6e fix(SW-188): use camelCase for schemas 2024-08-21 10:31:52 +02:00
Chuma McPhoy
aa38e82698 refactor: add hotel scope to service token fetch & enable hotel API 2024-08-21 10:31:52 +02:00
Chuma McPhoy
2407f40b75 fix(SW-188): replace formatMessage destructuring in hotel related components 2024-08-21 10:31:52 +02:00
Chuma McPhoy
96d3f68ad3 fix(SW-188): more semantic name for tolang transformer function 2024-08-21 10:31:52 +02:00
Chuma McPhoy
400c0b48e4 refactor(SW-188): reintroduce tempHotelData 2024-08-21 10:31:52 +02:00
Chuma McPhoy
bd5e754d8a fix(SW-188): forAllergics typo 2024-08-21 10:31:52 +02:00
Chuma McPhoy
3a2a58a9ca fix(SW-188): improve semantics, use hotel instead of attribute naming 2024-08-21 10:31:52 +02:00
Chuma McPhoy
ed379202c8 refactor(SW-188): replace anon or auth procedure with serviceProcedure 2024-08-21 10:31:52 +02:00
Chuma McPhoy
a1a0a73e3a chore: use correct env var in fetch service token function 2024-08-21 10:31:52 +02:00
Chuma McPhoy
5d6fac63c1 chore: remove temp hotel data json 2024-08-21 10:31:52 +02:00
Chuma McPhoy
1ff6cd267d feat: update getHotel to use real hotel api endpoint, support for service tokens, type modifications 2024-08-21 10:31:52 +02:00
Arvid Norlin
f96712538e refactor: implement trpc client pattern for EarnAndBurn Journey 2024-08-21 09:44:28 +02:00
Arvid Norlin
1bcd3b81e1 chore: move totalPages to meta 2024-08-21 09:44:28 +02:00
Arvid Norlin
8c75b9bcd7 wip: initial stab trpc pagination 2024-08-21 09:44:25 +02:00
Arvid Norlin
6f293be3a7 feat(SW-164): Add pagination for friendship transactions 2024-08-21 09:43:51 +02:00
Tobias Johansson
84f5e74f00 Merged in feat/SW-104-add-card (pull request #410)
Feat/SW-104 add card

* feat: add api endpoints for adding and removing credit card

* feat(SW-104): Added Sonner toast lib

* feat(SW-104): Add route handlers for add card flow

* feat(SW-104): Added link to route handler and trigger toast when query params from callback is set

* feat(SW-104): Added translations for add card success toast

* feat(SW-104): Refactored to use client request for initiate save card

* fix(SW-104): Return proper status codes when initiating save card fails

* fix(SW-104): remove delete card endpoint because it was added in SW-245

* fix(SW-104): remove console.log

* fix(SW-104): Use api.post for save card request

* fix(SW-104): move function declaration above export

* fix(SW-104): handle response of save card and use Lang enum

* fix(SW-104): added comment for why setTimeout is needed for toast and also removed lang prop

* fix(SW-104): added type for AddCreditCardButton props

* feat: add toasts

* fix(SW-104): start using toasts from ToastHandler and fix problem with duplicate toasts

* fix(SW-104): remove unnecessary wrapping div


Approved-by: Michael Zetterberg
2024-08-20 15:04:02 +00:00
Niclas Edenvin
819ac454b0 Merged in feature/refresh-token (pull request #401)
feat: SW-101 Proactively refresh tokens

Approved-by: Michael Zetterberg
2024-08-16 13:56:09 +00:00
Michael Zetterberg
bc84122a40 fix(SW-236): properly handle expired token in webviews
Trying out a new pattern for errors in data fetching.

Next.js is not a fan of throwing errors. Instead it recommends returning
different shapes for each state. Ref:
https://nextjs.org/docs/app/building-your-application/routing/error-handling#handling-expected-errors-from-server-components

It requires some more detailing and a bit more refactoring in non webview part,
but it is a start. This webview specific implementation should not break web.
2024-08-13 16:54:33 +02:00
Simon.Emanuelsson
9796ff29c5 Merged in feat/SW-207 (pull request #386)
feat(SW-207): add expiring points and date when they will expire

Approved-by: Michael Zetterberg
2024-08-07 08:53:48 +00:00
Simon Emanuelsson
be620f18ba feat(SW-207): add expiring points and date when they will expire 2024-08-06 15:59:40 +02:00
Fredrik Thorsson
75011dffe5 feat: schema change 2024-08-06 13:12:22 +02:00
Fredrik Thorsson
798d19d3c8 feat: filter route changes 2024-08-06 13:12:22 +02:00
Fredrik Thorsson
c7bef7d1cf feat: css and syntax changes 2024-08-06 13:12:22 +02:00
Fredrik Thorsson
a48019a6a0 feat: pass filters as prop 2024-08-06 13:12:22 +02:00
Fredrik Thorsson
ebfe4d45dc feat: add router for filters 2024-08-06 13:12:22 +02:00
Michael Zetterberg
71dcf30719 fix: make sure all logged errors are preceeded with a message
Just logging an error makes it difficult to relate the error log to code in the
codebase. Error logging a message right before the error itself makes it easier
to search the codebase for that error log.
2024-07-24 11:32:15 +02:00
Christel Westerberg
2457314003 fix: cleanup title before tracking it 2024-07-17 15:01:36 +02:00
Christel Westerberg
d8f7e4157a fix: add correct properties to tracking 2024-07-16 10:39:22 +02:00
Christel Westerberg
183e1cd6d2 fix: refactor tracking requests 2024-07-15 13:35:36 +02:00
Christel Westerberg
73cea4ba51 fix: add channel and pageType 2024-07-15 13:35:36 +02:00
Christel Westerberg
c96008fb78 fix: track user on page load 2024-07-15 13:35:36 +02:00