Commit Graph

159 Commits

Author SHA1 Message Date
Anton Gunnarsson
4c6d72a402 Set min-height on layout loaders 2024-11-14 13:25:56 +01:00
Arvid Norlin
628f79929c fix(SW-779): replace css module with .css file to work with parallel route 2024-11-11 11:17:05 +01:00
Christian Andolf
f6b3cf8b92 chore: replace function expression with inline statement
replace destructuring for better static analysis

remove unused variables
2024-11-08 09:25:28 +01:00
Michael Zetterberg
1e92348fb4 fix(SW-126): remove feature flag communications settings in profile 2024-10-29 12:56:30 +01:00
Linus Flood
65b6830472 Merged develop into feat/sw-694-performance 2024-10-28 12:55:52 +00:00
Linus Flood
687a110a39 Utilizing memoized requests 2024-10-25 15:33:06 +02:00
Christian Andolf
ba30e2fe08 chore(SW-556): hiding surprises until new API endpoints are implemented 2024-10-25 14:02:32 +02:00
Christian Andolf
e6db1b17c6 fix(SW-556): now fetching surprises separately in component.
also showing surprises on any account page
2024-10-25 14:02:32 +02:00
Linus Flood
83a88f33a7 Suspense on Sidebar 2024-10-25 13:10:08 +02:00
Linus Flood
9f813bebfe Refactor and built a breadcrums skeleton 2024-10-25 11:48:20 +02:00
Linus Flood
1a921940e8 feat: #sw-694 using suspense when loading dynamic content and breadcrumbs 2024-10-25 10:59:34 +02:00
Michael Zetterberg
261d1bc3c7 fix(SW-126): feature flag communications settings in profile 2024-10-16 07:30:45 +02:00
Michael Zetterberg
4a846540c3 feat: improve handling of deployment env vars
These are now defined in Netlify UI for dedicated environments (test, stage, production):

AUTH_URL
NEXTAUTH_URL
PUBLIC_URL

Code now falls back to incoming request host. Mainly used for
deployment previews which do not have Akamai in front, meaning
we do not need the above workaround as incoming request host
matches the actual public facing host. When Akamai is in front,
we lose the public facing host in Netlify's routing layer as they
internally use `x-forwarded-for` and we can't claim it for our usage.
2024-10-15 17:03:36 +02:00
Linus Flood
1408284af8 feat:sw-561 updated design 2024-10-11 12:58:46 +02:00
Linus Flood
ee2637407e Merge branch 'develop' into feature/sw-561-design-fixes 2024-10-08 13:20:40 +02:00
Christel Westerberg
2886084a82 feat: add communication preferences
feat: add generatePreferencesLink

feat: add subscriberId endpoint
2024-10-08 08:25:44 +02:00
Linus Flood
ed55f966c7 feat/sw-561: some design tweaks for container widths 2024-10-07 09:17:04 +02:00
Christel Westerberg
dd4d6b46b1 fix: remove dynamic rendering 2024-10-02 08:10:31 +02:00
Christel Westerberg
a3bb1ed8a4 fix: make my pages dynamic to opt out of full router cache 2024-10-02 08:10:30 +02:00
Michael Zetterberg
bb93d488bb fix: break the switch statement for proper logs 2024-09-27 08:17:54 +02:00
Christel Westerberg
943184c50c fix: reload window on logout 2024-09-26 13:26:21 +02:00
Christel Westerberg
b9aeb8ff30 fix(SW-135): invalidate router cache on logout for my pages 2024-09-26 12:17:16 +02:00
Simon Emanuelsson
af850c90e7 feat(SW-66, SW-348): search functionality and ui 2024-09-24 09:47:31 +02:00
Linus Flood
31b239c577 Merged develop into feature/sw-352-page-loading 2024-09-04 07:26:17 +00:00
Hrishikesh Vaipurkar
c2e521035b feat(SW-237): Updated parallel route to the root layout 2024-09-03 14:15:49 +02:00
Hrishikesh Vaipurkar
ad2182a60b feat(SW-237): Updated typings and code optimizations 2024-09-03 14:15:49 +02:00
Hrishikesh Vaipurkar
097ef701e5 feat(SW-237): Renamed Bookingwidgetcontainer to BookingWidget 2024-09-03 14:15:47 +02:00
Hrishikesh Vaipurkar
0abaa4dc19 feat(SW-237): Implemented page based toggle for BW 2024-09-03 14:15:46 +02:00
Tobias Johansson
bc3233ff64 Merged in feat/SW-196-design-fixes (pull request #547)
Feat/SW-196 design fixes

* feat(SW-196): Updated copy My credit cards -> My payment cards

* fix: update design system version

* feat(SW-196): Update Header component to use Preamble instead of Subtitle

* feat(SW-196): Minor design fixes


Approved-by: Christel Westerberg
2024-09-03 08:43:13 +00:00
Linus Flood
5150a870f5 SW-352 using loading.ts between page transations 2024-09-03 09:42:25 +02:00
Michael Zetterberg
64fbf2ec17 fix: don't prefetch the edit profile link 2024-08-29 09:22:54 +02:00
Simon Emanuelsson
93526ce693 fix: rename retried-wrapped fetch to make caching work again 2024-08-28 14:55:31 +02:00
Christel Westerberg
e04485d896 debug: log out cause for user 2024-08-26 15:40:37 +02:00
Simon.Emanuelsson
388060086e Merged in feat/masked-values (pull request #489)
feat: handle masked values only based on MFA

Approved-by: Michael Zetterberg
Approved-by: Arvid Norlin
2024-08-26 09:19:02 +00:00
Simon Emanuelsson
61b722d9ad feat: handle masked values only based on MFA 2024-08-26 11:06:01 +02:00
Christel Westerberg
231edbe944 fix: default language if missing in profile 2024-08-26 10:52:13 +02:00
Simon Emanuelsson
2337d37f1a feat(SW-160): update profile 2024-08-23 09:09:55 +02: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
Michael Zetterberg
a33a69fb58 fix: improve auth handling and logging 2024-08-22 14:07:36 +02:00
Tobias Johansson
e9a6499086 feat(SW-245): Delete credit card 2024-08-21 16:24:39 +02:00
Christel Westerberg
2af17ef4d8 fix: route unlocalized login and logout correctly 2024-08-21 16:00:35 +02:00
Pontus Dreij
a0fede3875 feat(SW-266): Moved logic for breadcrumbs since I cant pass custom prop to generateMetadata 2024-08-21 15:27:44 +02: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
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
b3f4ba822c feat(SW-266): updated to use breadcrumbs title as default 2024-08-20 10:57:30 +02: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
e67212bd94 Merged in feature/refactor-lang (pull request #387)
feat: SW-238 Avoid prop drilling of lang

Approved-by: Michael Zetterberg
2024-08-14 11:00:20 +00:00
Hrishikesh Vaipurkar
51df6bfd34 feat(SW-162): Used token instead of cookie 2024-08-14 10:44:14 +02:00
Hrishikesh Vaipurkar
e7f7fb286e feat(SW-162): Updated cookie name 2024-08-14 10:44:14 +02:00