Commit Graph

45 Commits

Author SHA1 Message Date
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
Tobias Johansson
e092631c4d fix: issue with name not being center aligned 2024-08-27 11:40:51 +02:00
Michael Zetterberg
2ea6a2d242 fix: allow any membership level 2024-08-27 07:41:59 +02:00
Arvid Norlin
8109148bc5 fix(SW287): update translation regarding current level 2024-08-21 14:29:51 +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
Arvid Norlin
8592d7004b fix(SW-248): update spendable points texts 2024-08-10 08:23:42 +02:00
Simon Emanuelsson
be620f18ba feat(SW-207): add expiring points and date when they will expire 2024-08-06 15:59:40 +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
Niclas Edenvin
39f2b88088 bug: SW-233 Fix wrong padding on membership number 2024-07-31 13:37:42 +02: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
Matilda Landström
b67c4c7684 fix: update grids to dynamically adapt number of columns + aligned rows 2024-07-15 15:28:09 +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
Matilda Landström
edb45b4ac7 chore: update colors to new design 2024-06-19 17:52:19 +02: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
7c4b8401e9 feat(WEB-304): remaning UI from design system primitives 2024-06-13 10:00:16 +02:00
Arvid Norlin
24810eaee6 implement logic to select compared levels based on membershipLevel 2024-06-10 10:49:57 +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
Michael Zetterberg
476e9f7582 fix(auth): make things work 2024-05-20 09:10:20 +02:00
Christel Westerberg
d2eb2a3077 feat: add CardGrid and add style to StayCard 2024-05-15 09:43:29 +02:00
Arvid Norlin
a1e474073e chore: align styles 2024-05-03 08:16:52 +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
fc0e5aed02 feat: create blocks component for loyalty 2024-04-29 14:02:03 +02:00
Christel Westerberg
c00f7b78eb feat(WEB-131): add loyalty page 2024-04-29 14:01:20 +02:00
Matilda Landström
902284bae3 refactor: update import 2024-04-26 16:49:01 +02:00
Matilda Landström
7480b212e2 chore: add load more functionality, with refactored css 2024-04-26 16:06:41 +02:00
Michael Zetterberg
14e93eba7c chore: lint fix 2024-04-23 14:43:17 +02:00
Michael Zetterberg
2f6500f46d feat: static my stays 2024-04-20 07:24:54 +02:00
Simon Emanuelsson
55794034c5 feat(WEB-169): get profile data from API 2024-04-18 13:53:49 +02:00
Michael Zetterberg
d2372b4377 fix: change icon paths to _static 2024-04-17 17:29:24 +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