Commit Graph

68 Commits

Author SHA1 Message Date
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
Matilda Landström
3c772bfb10 Merged in feat/benefit-cards-titles (pull request #528)
fix: change to correct titles on benefit cards

Approved-by: Michael Zetterberg
2024-08-28 12:39:44 +00:00
Matilda Landström
52c0829d55 fix: change to correct titles on benefit cards 2024-08-28 12:19:41 +02:00
Matilda Landström
d5846f38f5 fix: remove mistake 2024-08-28 11:55:03 +02:00
Matilda Landström
f3a20e9a27 fix(SW-288): usage of intl 2024-08-28 11:51:08 +02:00
Matilda Landström
007b937695 chore(SW-288): update Finnish translations + date format 2024-08-28 09:54:16 +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
62310caa90 fix: make all h4 and subtitles capitalized 2024-07-15 15:07:23 +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
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
Arvid Norlin
1c76725b4c feat: add benefit translations and remove unused JSON 2024-06-26 14:57:33 +02: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
4233ecae42 fix: update ui 2024-06-19 16:15:33 +02:00
Chuma McPhoy
a7b04df7b6 fix: Remove explore all benefits link from benefits page 2024-06-19 13:09:40 +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
Arvid Norlin
8df577615a chore: remove margin 2024-06-10 15:11:40 +02:00
Chuma McPhoy
2e5f6885e0 fix(314): make scripted text bigger on desktop 2024-06-10 15:11:40 +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
766c86f522 fix(WEB-314): use correct css var naming 2024-06-10 15:11:40 +02:00
Chuma McPhoy
40b8ff9e6e fix: resolve more git conflicts after resbase 2024-06-10 15:11:33 +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
Chuma McPhoy
d6c6bbadc6 Resolve conflicts in next level cards 2024-06-10 15:05:04 +02:00
Arvid Norlin
92f5f7f7c0 add LargeTable component 2024-06-05 13:42:22 +02:00
Simon Emanuelsson
de79c2dc80 feat(WEB-220): label translations 2024-06-05 13:25:10 +02:00
Christel Westerberg
f4c58ec3ee fix: correct paths for loyalty levels 2024-05-31 09:27:56 +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
Arvid Norlin
fffee84989 chore: add icons 2024-05-23 14:40:21 +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
Christel Westerberg
d2eb2a3077 feat: add CardGrid and add style to StayCard 2024-05-15 09:43:29 +02:00
Arvid Norlin
43f10abdbc chore: rename topBenefits to benefits 2024-05-14 10:37:06 +02:00