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
Matilda Landström
801a041404
Merged in feat/best-friend-hero (pull request #338 )
...
Feat(SW-170): Update overview hero
Approved-by: Christel Westerberg
2024-07-12 06:45:44 +00:00
Matilda Landström
c6ad107e49
Merged in feat/section-header-link (pull request #314 )
...
Feat(WEB-359): Update section link for mobile
Approved-by: Chuma Mcphoy (We Ahead)
Approved-by: Arvid Norlin
2024-07-04 10:42:01 +00:00
Christel Westerberg
4233ecae42
fix: update ui
2024-06-19 16:15:33 +02:00
Christel Westerberg
ceee9fd154
refactor: break out Section container
2024-06-18 16:21:06 +02:00
Matilda Landström
9931d9edef
Merged in feat/membership-information (pull request #233 )
...
Feat(WEB-307) Display correct membership information
* fix: fix typo
* chore: update fetch of user membership
* chore: update components to use api data
* chore: remove lang as static value
* fix: adapt to dev updates
* fix: adapt to code from dev
* fix: break out MembershipLevel into its a React component
* fix: add enum to zod validation
* refactor: rename tier to level
* refactor: remove unnecessary casts
* refactor: change toString() to hideEmpty=false
* refactor: remove toString()
* refactor: remove hideEmpty from title and subtitle
* fix: update currentLevel with data
* fix: fix from rebase
Approved-by: Michael Zetterberg
2024-06-18 13:14:09 +00:00
Simon Emanuelsson
aca9221ea6
feat: loosen up the zod validations and return null instead of throwing
2024-06-18 12:28:05 +02:00
Christel Westerberg
b4f57d5ae3
refactor: breakout section header
2024-06-14 08:29:36 +02:00
Simon Emanuelsson
16b817f469
feat(WEB-250): overview hero final ui
2024-05-30 17:56:56 +02:00
Arvid Norlin
2ddcbff009
fix: move user fetch
2024-05-03 08:16:52 +02:00
Arvid Norlin
1e8f23de38
chore: clean up typings
2024-05-03 08:16:51 +02:00
Arvid Norlin
b12ccfafef
fix: align styles
2024-05-03 08:16:51 +02:00
Christel Westerberg
c00f7b78eb
feat(WEB-131): add loyalty page
2024-04-29 14:01:20 +02:00
Michael Zetterberg
14e93eba7c
chore: lint fix
2024-04-23 14:43:17 +02:00
Simon Emanuelsson
82e4d40203
feat(WEB-154): my profile view
2024-04-12 16:25:52 +02:00
Christel Westerberg
55fe30c77a
fix: add correct routing
2024-04-12 16:10:58 +02:00
Simon Emanuelsson
8f87d6368c
feat(WEB-167): update my pages layout to MVP wireframes
2024-04-05 08:43:58 +02:00
Simon Emanuelsson
8c8fa2d02c
feat: finish my pages overview page according to wireframe
2024-04-02 13:43:23 +02:00
Simon Emanuelsson
b173c2fb11
feat(WEB-128): desktop and mobile initial wireframe implemented
2024-03-19 07:40:14 +01:00