Commit Graph

108 Commits

Author SHA1 Message Date
Michael Zetterberg
261d1bc3c7 fix(SW-126): feature flag communications settings in profile 2024-10-16 07:30:45 +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
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
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
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
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
Michael Zetterberg
bbc8801d3f refactor: render TrackingSDK as first child to pages
This helps with debugging and profiling.

Also tracking isn't tied to the rendering of the UI. So nitpicking could also
justify this change :)
2024-07-30 16:05:21 +02:00
Christel Westerberg
da74babef9 fix: mobile form ui and parse phone number bug 2024-07-17 09:38:30 +02:00
Christel Westerberg
09b1d322a7 feat: list credit card according to design 2024-07-16 15:50:26 +02:00
Christel Westerberg
62310caa90 fix: make all h4 and subtitles capitalized 2024-07-15 15:07:23 +02:00
Christel Westerberg
183e1cd6d2 fix: refactor tracking requests 2024-07-15 13:35:36 +02:00
Christel Westerberg
c7446032fe fix: handle webviews 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
Christel Westerberg
546679387f feat: add tracking to account pages 2024-07-15 13:35:36 +02:00
Christel Westerberg
7068fb4e15 chore: update design system tokens 2024-07-10 07:57:11 +02:00
Simon Emanuelsson
be47e42163 fix: whitelist server action proxies 2024-06-24 12:41:09 +02:00
Christel Westerberg
fe6e4e27e1 fix: add heading and subtitle to overview table 2024-06-24 12:09:14 +02:00
Matilda Landström
3e54d3c29e chore: add memberships "endoint" 2024-06-19 17:36:50 +02:00
Simon Emanuelsson
d84efcbb0f feat(WEB-162): final design edit profile page 2024-06-19 14:51:00 +02:00
Simon Emanuelsson
5f3e417593 feat(WEB-162): final design for my profile page 2024-06-19 14:51:00 +02:00
Christel Westerberg
ceee9fd154 refactor: break out Section container 2024-06-18 16:21:06 +02:00
Simon Emanuelsson
aca9221ea6 feat: loosen up the zod validations and return null instead of throwing 2024-06-18 12:28:05 +02:00
Simon Emanuelsson
7c4b8401e9 feat(WEB-304): remaning UI from design system primitives 2024-06-13 10:00:16 +02:00
Simon Emanuelsson
de79c2dc80 feat(WEB-220): label translations 2024-06-05 13:25:10 +02:00
Michael Zetterberg
19d8b757cd feat: improve error handling 2024-05-31 09:22:17 +02:00
Michael Zetterberg
3ea53c907e feat: error handling for breadcrumbs 2024-05-31 09:07:16 +02:00