Commit Graph

114 Commits

Author SHA1 Message Date
Michael Zetterberg
63ce8a2dfb fix(SW-104): use relative url for initiation 2024-08-21 15:25:37 +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
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
Hrishikesh Vaipurkar
e264e4d2e2 feat: SW-162 Updated redirect to rewrite reducing unnecessary redirects for user 2024-08-14 10:44:13 +02:00
Hrishikesh Vaipurkar
8ab77a5522 feat: SW-162 Updated as per review comments 2024-08-14 10:44:11 +02:00
Hrishikesh Vaipurkar
77feefb1dd feat: SW-162 Optimized code and updated scope 2024-08-14 10:44:11 +02:00
Hrishikesh Vaipurkar
dde2b828cb feat: SW-162 MFA for Profile implemented 2024-08-14 10:44:10 +02: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
Michael Zetterberg
1e319fb756 fix: encode redirect url 2024-05-31 08:41:34 +02:00
Matilda Landström
0ab35679f8 fix: move logic to middleware 2024-05-31 08:18:37 +02:00
Matilda Landström
6211eda353 fix: remove clean up cookie 2024-05-31 08:18:37 +02:00
Matilda Landström
3ebe79b3c5 refactor: update logging 2024-05-31 08:18:37 +02:00
Matilda Landström
956178e6f2 chore: add redirect to Curity logout endpoint 2024-05-31 08:18:37 +02:00
Matilda Landström
9c1a24835d fix: switching null check 2024-05-31 08:18:37 +02:00
Matilda Landström
6e94d28073 fix: add back clean cookie 2024-05-31 08:18:37 +02:00
Matilda Landström
b9c642a35b fix: remove returnurl since not used, remove double redirect when request coming from current web 2024-05-31 08:18:37 +02:00
Simon Emanuelsson
08e7eb2fca feat(WEB-250): overview hero final ui 2024-05-30 17:58:21 +02:00
Simon Emanuelsson
16b817f469 feat(WEB-250): overview hero final ui 2024-05-30 17:56:56 +02:00
Matilda Landström
c24f9026f7 fix: linting 2024-05-30 16:01:04 +02:00
Christel Westerberg
cd3c5491ec fix: move fonts and refactor headers in middleware 2024-05-28 12:15:40 +02:00
Christel Westerberg
9b295d0126 fix: move fonts 2024-05-28 08:30:20 +02:00
Christel Westerberg
158b5a5dbb fix: rebase issues 2024-05-28 08:30:20 +02:00
Michael Zetterberg
888c33e3b3 chore(debug): auth 2024-05-28 08:28:54 +02:00
Arvid Norlin
675228e4e9 chore: remove logs 2024-05-24 13:01:40 +02:00
Arvid Norlin
c45380d8e2 debug: add logging 2024-05-24 11:36:00 +02:00
Matilda Landström
93cb383220 refactor: cleanup 2024-05-23 14:05:03 +02:00
Matilda Landström
e3e4d6c1c8 fix: cleanup logs 2024-05-23 14:05:03 +02:00
Matilda Landström
e65145687d chore: add back language specific routes 2024-05-23 14:05:03 +02:00