Commit Graph

230 Commits

Author SHA1 Message Date
Tobias Johansson
dbb55c3d33 Merged in feat/SW-165-fix (pull request #467)
fix(SW-165): fix issue with pagination now showing

Approved-by: Michael Zetterberg
2024-08-23 07:35:30 +00:00
Michael Zetterberg
149e97fa34 Merged in fix/headers-for-errors (pull request #466)
fix: send headers to error rewrites

Approved-by: Arvid Norlin
2024-08-23 07:35:09 +00:00
Michael Zetterberg
efd2e1730c fix: send headers to error rewrites 2024-08-23 09:34:17 +02:00
Simon Emanuelsson
2337d37f1a feat(SW-160): update profile 2024-08-23 09:09:55 +02:00
Tobias Johansson
88a23c590d fix(SW-165): fix issue with pagination now showing 2024-08-23 09:07:10 +02:00
Tobias Johansson
159114a082 Merged in feat/SW-165-fixes (pull request #460)
Feat/SW-165 fixes

* fix(SW-165): update translations for reward labels

* fix(SW-165): Fix sorting and filtering of transactions and hide fields when BALFWD

* fix(SW-165): update condition


Approved-by: Michael Zetterberg
2024-08-22 14:34:55 +00:00
Pontus Dreij
ecb3b78561 feat(SW-266): Replacing static metadata with data from Contentstack on Loyalty pages and Account Pages
Approved-by: Simon.Emanuelsson
2024-08-22 13:49:34 +00:00
Christel Westerberg
8b68b045eb fix: check if its a cs link before checking node 2024-08-22 14:56:13 +02:00
Pontus Dreij
5c81ff13f7 feat(SW-266): Added breadcrumbs to metadata fragment 2024-08-22 14:45:19 +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
Pontus Dreij
ab3feb367b feat(SW-266): removed unused field 2024-08-22 11:16:17 +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
Pontus Dreij
b3bccc51d7 Merge branch 'develop' into feat/SW-266-seo-loyalty-pages 2024-08-21 14:11:53 +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
Pontus Dreij
6b2a78b71c Merged develop into feat/SW-266-seo-loyalty-pages 2024-08-19 11:08:33 +00:00
Pontus Dreij
c730fa7035 feat(SW-266): Replacing static metadata with data from Contentstack on Loyalty pages and Account Pages 2024-08-19 13:03:46 +02: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