Commit Graph

45 Commits

Author SHA1 Message Date
Matilda Landström
52c0829d55 fix: change to correct titles on benefit cards 2024-08-28 12:19:41 +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
Christel Westerberg
21f07c584b chore: update design system and names of tokens 2024-07-10 07:56:38 +02:00
Matilda Landström
bb422f804d Merged in feat/card-grid-ui (pull request #332)
Feat/card grid ui

Approved-by: Simon.Emanuelsson
2024-07-09 11:16:44 +00:00
Matilda Landström
ada65b8612 Merged in feat/benefit-cards (pull request #334)
feat: update benefit cards ui

Approved-by: Simon.Emanuelsson
2024-07-09 11:14:30 +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
Matilda Landström
469f97dee5 chore: update background color for shortcuts and current level benefits 2024-06-19 17:49:11 +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
Fredrik Thorsson
991ae0135f feat: resolve rebase 2024-06-13 15:08:30 +02:00
Fredrik Thorsson
6c0cbd1de7 feat: remove char in comment 2024-06-13 14:21:49 +02:00
Fredrik Thorsson
e677079cae feat: design changes 2024-06-13 14:21:49 +02:00
Fredrik Thorsson
c45a239005 feat: change grid logic 2024-06-13 14:13:51 +02:00
Fredrik Thorsson
8b25d1cbf4 feat: add biro script component 2024-06-13 14:12:50 +02:00
Fredrik Thorsson
9284d66975 feat: change css variables 2024-06-13 14:11:35 +02:00
Fredrik Thorsson
09797ceb22 feat: implement ui on benefits card 2024-06-13 14:11:35 +02:00
Simon Emanuelsson
7c4b8401e9 feat(WEB-304): remaning UI from design system primitives 2024-06-13 10:00:16 +02:00
Chuma McPhoy
3fb01237aa fix(WEB-314): Wrap title explanation output in ternary operator 2024-06-10 15:11:40 +02:00
Chuma McPhoy
720ec213fe feat(WEB-314): render current benefit cards with carousel on mobile 2024-06-10 15:10:41 +02:00
Chuma McPhoy
952d254250 fix: resolve conflicts in current level cards 2024-06-10 15:10:20 +02:00
Simon Emanuelsson
de79c2dc80 feat(WEB-220): label translations 2024-06-05 13:25:10 +02:00
Simon Emanuelsson
00f99912fc feat(WEB-249): first iteration design system primitives (typography, grid) 2024-05-30 18:17:03 +02:00
Simon Emanuelsson
16b817f469 feat(WEB-250): overview hero final ui 2024-05-30 17:56:56 +02:00
Christel Westerberg
1bc8753649 feat: implement new design for button 2024-05-21 15:23:06 +02:00
Christel Westerberg
30b94b05f6 fix: make loading spinner smaller 2024-05-15 09:43:29 +02:00
Christel Westerberg
51287c11df fix: breakout header component to blocks header 2024-05-15 09:43:29 +02:00
Christel Westerberg
5d15e5605f feat: add two and three column grid variants 2024-05-15 09:43:29 +02:00
Arvid Norlin
43f10abdbc chore: rename topBenefits to benefits 2024-05-14 10:37:06 +02:00
Arvid Norlin
7dd60576cc feat: use hardcodded benefits data 2024-05-14 10:37:06 +02:00
Arvid Norlin
9cec1e26d7 fix: align styles with wireframes 2024-05-14 10:37:06 +02:00
Arvid Norlin
a1e474073e chore: align styles 2024-05-03 08:16:52 +02:00
Arvid Norlin
265f55ca9a fix: correct conditional header content styles 2024-05-03 08:16:52 +02:00
Arvid Norlin
e3d3fa5528 chore: remove unused type 2024-05-03 08:16:51 +02:00
Arvid Norlin
b12ccfafef fix: align styles 2024-05-03 08:16:51 +02:00
Arvid Norlin
7b92be973c fix: move typings 2024-05-03 08:16:51 +02:00
Arvid Norlin
dff21b33cd feat: add SoonestStays 2024-05-03 08:16:51 +02:00
Arvid Norlin
990b84e0cb feat: add mapping of benefits AccountPage 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
Christel Westerberg
3b05b9f205 fix: cleanup 2024-04-12 16:10:58 +02:00
Christel Westerberg
a99b2d3f08 fix: add intents for buttons 2024-04-12 16:10:58 +02:00
Christel Westerberg
85b83bc58b fix: add next level perks block 2024-04-12 16:10:58 +02:00