Commit Graph
100 Commits
Author SHA1 Message Date
Michael Zetterberg 2bef312a5c Merged in fix/nullable-two_column_list (pull request #686)
fix: fields from Contentstack can be null.

Approved-by: Arvid Norlin
Approved-by: Fredrik Thorsson
2024-10-14 12:43:17 +00:00
Michael Zetterberg 8ec1707fd5 fix: fields from Contentstack can be null. 2024-10-14 14:31:23 +02:00
Michael ZetterbergandPontus Dreij 194ca601b5 fix: improve error handling
- Do not throw in onError callback for server client. This lets the originating error bubble to Next.js.
- Do not log errors inside the service token procedure, server client onError callback will log all procedure errors.
- Log errors for fetching service token failure.
2024-10-11 14:54:39 +02:00
Michael Zetterberg a5d9eb43c9 Merged in fix/service-token-error-handling (pull request #673)
fix: improve error handling

Approved-by: Christel Westerberg
Approved-by: Arvid Norlin
2024-10-11 11:57:43 +00:00
Michael Zetterberg 7bbb8915b3 fix: improve error handling
- Do not throw in onError callback for server client. This lets the originating error bubble to Next.js.
- Do not log errors inside the service token procedure, server client onError callback will log all procedure errors.
- Log errors for fetching service token failure.
2024-10-11 10:42:40 +02:00
Michael Zetterberg bd2dc90f18 Merged in feat/gql-logging (pull request #668)
feat: add improved logging for graphql requests

Approved-by: Arvid Norlin
2024-10-11 08:33:46 +00:00
Michael Zetterberg 8f40d57a0f feat: add improved logging for graphql requests 2024-10-10 17:50:16 +02:00
Michael Zetterberg bb93d488bb fix: break the switch statement for proper logs 2024-09-27 08:17:54 +02:00
Michael Zetterberg 322edd1068 Merge branch 'develop' into test 2024-09-20 14:13:40 +02:00
Michael Zetterberg 00fc2af3dd Merged in develop (pull request #539)
Promote to test

Approved-by: Christel Westerberg
2024-08-29 08:24:59 +00:00
Michael Zetterberg facd6bb4ad Merged in fix/dob-edit (pull request #536)
fix: default dob in zod schema

Approved-by: Arvid Norlin
2024-08-29 07:48:04 +00:00
Michael Zetterberg b891609de6 Merged in fix/do-not-prefetch-edit-profile-link (pull request #535)
fix: don't prefetch the edit profile link
2024-08-29 07:45:27 +00:00
Michael Zetterberg 46852a36a1 fix: default dob in zod schema 2024-08-29 09:42:05 +02:00
Michael Zetterberg 64fbf2ec17 fix: don't prefetch the edit profile link 2024-08-29 09:22:54 +02:00
Michael Zetterberg 77c00c63bb Merged in feat/mask-dob (pull request #516)
feat: mask date of birth
2024-08-27 10:19:42 +00:00
Michael Zetterberg 2c5562b068 Merged in fix/editprofile-log-only-body-keys (pull request #514)
fix: only log payload keys for edit profile payload

Approved-by: Arvid Norlin
2024-08-27 09:49:42 +00:00
Michael Zetterberg ce3248562b feat: mask date of birth 2024-08-27 10:55:46 +02:00
Michael Zetterberg d76e8780de fix: only log payload keys for edit profile payload 2024-08-27 09:57:34 +02:00
Michael Zetterberg 68aa6e565d Merged in fix/profile-data-error-logging (pull request #513)
fix: log api response for profile data errors
2024-08-27 06:19:02 +00:00
Michael Zetterberg 2f628aa41f fix: log api response for profile data errors 2024-08-27 08:16:27 +02:00
Michael Zetterberg 6f98a97353 Merged in fix/string-membershiplevel (pull request #512)
fix: allow any membership level
2024-08-27 05:43:29 +00:00
Michael Zetterberg d25bf35e4f Merged in fix/da-translations (pull request #511)
fix: da translations
2024-08-27 05:42:36 +00:00
Michael Zetterberg 2ea6a2d242 fix: allow any membership level 2024-08-27 07:41:59 +02:00
Michael Zetterberg da3248041a fix: da translations 2024-08-27 07:24:18 +02:00
Michael Zetterberg fcf0f58ab8 fix: header menu blocked for bad URL 2024-08-26 17:41:31 +02:00
Michael Zetterberg 233374ca24 fix: production readiness things 2024-08-26 16:31:23 +02:00
Michael Zetterberg 6d0e01d4e4 Revert "fix: static pages changes prelaunch"
This reverts commit f0890f6cf9.
2024-08-26 16:06:50 +02:00
Michael Zetterberg f8d60afb49 debug: debug profile calls 2024-08-26 15:30:50 +02: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
Michael Zetterberg b6e22d51a5 Merged in fix/static-pages-prelaunch (pull request #462)
fix: static pages changes prelaunch

Approved-by: Chuma Mcphoy (We Ahead)
2024-08-23 05:40:02 +00:00
Michael Zetterberg f0890f6cf9 fix: static pages changes prelaunch 2024-08-23 07:32:16 +02:00
Michael Zetterberg b9668e067d Merged in fix/improve-auth-handling-and-logs (pull request #454)
fix: improve auth handling and logging

Approved-by: Hrishikesh Vaipurkar
2024-08-22 12:13:22 +00:00
Michael Zetterberg a33a69fb58 fix: improve auth handling and logging 2024-08-22 14:07:36 +02:00
Michael Zetterberg 2361ba696d fix: improve auth handling and logging 2024-08-22 07:25:22 +02:00
Michael Zetterberg 8dae837ef2 Merged in fix/SW-104-relative-url (pull request #439)
fix(SW-104): use relative url for initiation

Approved-by: Christel Westerberg
2024-08-21 13:26:34 +00:00
Michael Zetterberg 63ce8a2dfb fix(SW-104): use relative url for initiation 2024-08-21 15:25:37 +02:00
Michael Zetterberg 2282e35a71 Merged in fix/SW-236-webview-refresh-token (pull request #426)
fix(SW-236): add returnUrl to refresh

Approved-by: Pontus Dreij
2024-08-21 07:19:38 +00:00
Michael Zetterberg 32aa6cf273 fix(SW-236): add returnUrl to refresh 2024-08-20 15:02:02 +02:00
Michael Zetterberg 0c0fc1d08b Merged in fix/SW-236-webview-refresh (pull request #396)
fix(SW-236): properly handle expired token in webviews

Approved-by: Arvid Norlin
2024-08-14 07:10:59 +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 d7147bbefc Merged in fix/eslint-fn-comp-def (pull request #376)
fix: enable eslint rule "react/function-component-definition"

Approved-by: Simon.Emanuelsson
Approved-by: Hrishikesh Vaipurkar
Approved-by: Matilda Landström
2024-08-13 14:52:15 +00:00
Michael Zetterberg 52a6754a98 fix: enable eslint rule "react/function-component-definition"
Using default values for the rule:

Named components: function declaration
Unnamed components: function expression
2024-08-13 16:51:32 +02:00
Michael Zetterberg ad96c9bd30 Merged in develop (pull request #398)
Promote to test

Approved-by: Chuma Mcphoy (We Ahead)
2024-08-12 12:18:13 +00:00
Michael Zetterberg c95753d95a Merged in fix/SW-234-mobile-webview-issues (pull request #393)
fix(SW-234): better empty state message for no transactions

Approved-by: Fredrik Thorsson
2024-08-09 10:45:28 +00:00
Michael Zetterberg 49ec390599 fix(SW-234): better empty state message for no transactions 2024-08-09 12:40:29 +02:00
Michael Zetterberg fa4a7ac56b Merged in fix/safari-membershipnr-link (pull request #379)
fix(SW-230): stop Safari from parsing membership number as phone number on iOS

Approved-by: Niclas Edenvin
2024-08-01 07:17:36 +00:00
Michael Zetterberg a8d6c3790a fix(SW-230): stop Safari from parsing membership number as phone number on iOS 2024-07-30 16:44:45 +02:00
Michael Zetterberg 599540e67e Merged in refactor/tracking-rendering (pull request #377)
Refactor/tracking rendering

Approved-by: Simon.Emanuelsson
2024-07-30 14:06:50 +00: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
Michael Zetterberg 2c0116e67b fix: stricter types for adobeDataLayer 2024-07-30 15:44:38 +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
Michael Zetterberg ffa76cd8a2 feat(WEB-300): add retry for fetch calls 2024-07-24 10:56:35 +02:00
Michael Zetterberg 80c80fe1bd fix(SW-122): align loyalty level benefits to top 2024-07-24 10:29:20 +02:00
Michael Zetterberg 6db7de35ff fix(SW-122): only render My pages link in menu for authenticated users 2024-07-24 10:28:51 +02:00
Michael Zetterberg 68df666487 fix: add ctx to trpc error output. 2024-06-26 07:17:07 +02:00
Michael Zetterberg 70f0a906d3 fix: exclude inaccessible links from nav 2024-06-20 09:29:12 +02:00
Michael Zetterberg 1a6a31bfe9 fix: bg for tables 2024-06-20 08:02:09 +02:00
Michael Zetterberg 2002604711 fix: bg color on earn and burn table rows 2024-06-20 07:44:27 +02:00
Michael Zetterberg 39d0bb6259 fix: do not prefetch logout 2024-06-20 07:33:41 +02:00
Michael ZetterbergandChristel Westerberg d28cbf10c7 feat: add jest and initial tests for masking values 2024-06-19 15:17:02 +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
Michael ZetterbergandChristel Westerberg 888c33e3b3 chore(debug): auth 2024-05-28 08:28:54 +02:00
Michael Zetterberg e00da4278d Reapply "feat: use v1 profile api"
This reverts commit d7766a89de.
2024-05-23 13:18:50 +02:00
Michael Zetterberg 38872567bf chore(debug): envs in edge functions 2024-05-22 12:30:42 +02:00
Michael Zetterberg 13575376b1 chore(debug): envs in edge functions 2024-05-22 11:50:29 +02:00
Michael Zetterberg d7766a89de Revert "feat: use v1 profile api"
This reverts commit 61e6d7ee39 and 2cfdbc19a9.
2024-05-21 15:58:30 +02:00
Michael Zetterberg eb607abdf9 chore(debug): output request headers in function 2024-05-21 14:03:51 +02:00
Michael Zetterberg 61e6d7ee39 feat: use v1 profile api 2024-05-21 13:58:37 +02:00
Michael Zetterberg 2cfdbc19a9 feat: use v1 profile api 2024-05-21 13:05:29 +02:00
Michael Zetterberg 0c8fed0b37 fix(auth): enable seamless login 2024-05-20 10:31:26 +02:00
Michael Zetterberg 6d85bb5887 fix: passing headers 2024-05-20 10:21:22 +02:00
Michael Zetterberg d9ca0d7b52 Merged in feat/refresh-token (pull request #139)
Feat/refresh token
2024-05-20 07:13:41 +00:00
Michael Zetterberg 476e9f7582 fix(auth): make things work 2024-05-20 09:10:20 +02:00
Michael Zetterberg 68f1e87169 fix: clean up 2024-05-20 01:10:05 +02:00
Michael Zetterberg 6d0607a00b Merged in feat/error-handling (pull request #182)
Feat/error handling
2024-05-19 23:07:50 +00:00
Michael Zetterberg f5108d1a8e feat: improve structure and error handling 2024-05-20 00:51:16 +02:00
Michael Zetterberg 01587d7fd5 fix: do not mutate api default options 2024-05-19 20:22:05 +02:00
Michael Zetterberg 21488fec2e docs(env): document update-dotenv.mjs 2024-05-19 20:17:53 +02:00
Michael Zetterberg 8772d30b25 feat(my-pages): redirect to overview in middleware 2024-05-19 19:42:47 +02:00
Michael Zetterberg 068f19edb7 fix(auth): public url 2024-05-19 17:34:07 +02:00
Michael Zetterberg a8d685c949 fix(auth): use public url for redirect 2024-05-19 11:54:03 +02:00
Michael Zetterberg 89cc410b1d feat(env): handle dynamic env 2024-05-19 11:00:05 +02:00
Michael Zetterberg f27e105898 fix(auth): clean up 2024-05-19 09:27:56 +02:00
Michael Zetterberg b2c8a2ccaf chore(debug): envs in api functions 2024-05-19 09:21:49 +02:00
Michael Zetterberg 7db829f907 chore(debug): envs in api functions 2024-05-18 09:07:38 +02:00
Michael Zetterberg 11f3928525 chore(debug): envs in api functions 2024-05-17 15:32:01 +02:00
Michael Zetterberg f782ae796e chore(debug): envs in api functions 2024-05-17 15:26:25 +02:00
Michael Zetterberg 62a8374144 chore(debug): envs in api functions 2024-05-17 15:16:51 +02:00
Michael Zetterberg 53ffe519cd chore(debug): envs in api functions 2024-05-17 14:24:15 +02:00
Michael Zetterberg e9be5a33a9 chore(debug): envs in api functions 2024-05-17 14:17:55 +02:00
Michael Zetterberg afb27fc173 chore(debug): envs in api functions 2024-05-17 11:11:36 +02:00
Michael Zetterberg 938200128f chore(debug): envs in api functions 2024-05-17 10:57:45 +02:00
Michael Zetterberg 5e3041a73a fix: rewriting rules for my-pages 2024-05-16 15:22:47 +02:00
Michael Zetterberg f1682b5a15 fix: redirect root my pages to overview page 2024-05-16 15:22:47 +02:00
Michael Zetterberg 4493c33645 chore(debug): add breadcrumbs to bypass 2024-05-16 09:09:52 +02:00
Michael Zetterberg 1c64e2fcd3 chore(debug): add layout to bypass 2024-05-16 08:21:49 +02:00
Michael Zetterberg 3153f158a9 Revert "chore(debug): auth"
This reverts commit 2097807062.
2024-05-16 08:19:17 +02:00