Commit Graph

110 Commits

Author SHA1 Message Date
Tobias Johansson
84f5e74f00 Merged in feat/SW-104-add-card (pull request #410)
Feat/SW-104 add card

* feat: add api endpoints for adding and removing credit card

* feat(SW-104): Added Sonner toast lib

* feat(SW-104): Add route handlers for add card flow

* feat(SW-104): Added link to route handler and trigger toast when query params from callback is set

* feat(SW-104): Added translations for add card success toast

* feat(SW-104): Refactored to use client request for initiate save card

* fix(SW-104): Return proper status codes when initiating save card fails

* fix(SW-104): remove delete card endpoint because it was added in SW-245

* fix(SW-104): remove console.log

* fix(SW-104): Use api.post for save card request

* fix(SW-104): move function declaration above export

* fix(SW-104): handle response of save card and use Lang enum

* fix(SW-104): added comment for why setTimeout is needed for toast and also removed lang prop

* fix(SW-104): added type for AddCreditCardButton props

* feat: add toasts

* fix(SW-104): start using toasts from ToastHandler and fix problem with duplicate toasts

* fix(SW-104): remove unnecessary wrapping div


Approved-by: Michael Zetterberg
2024-08-20 15:04:02 +00:00
Fredrik Thorsson
121d3878af feat(SW-240): use caption instead of body 2024-08-19 15:50:00 +02:00
Fredrik Thorsson
8c339fa593 feat(SW-240): add basic styling 2024-08-19 15:49:59 +02:00
Arvid Norlin
da36036379 reafactor: decouple SidePeek from URL params 2024-08-16 13:30:09 +02:00
Arvid Norlin
68694ef914 refactor: update SidePeek composition 2024-08-16 13:30:09 +02:00
Arvid Norlin
04eb3c6d94 fix: enable localization of sidepeek params 2024-08-16 13:30:09 +02:00
Arvid Norlin
47c77b62d6 fix(SW-239): make contents in sidepeek component render serverside for seo 2024-08-16 13:30:09 +02:00
Arvid Norlin
b9d63d9f01 fix: make table full width of container 2024-08-16 11:14:15 +02:00
Chuma McPhoy
ebe79c43e0 feat: Add tab navigation to hotel page 2024-08-12 10:26:02 +02:00
Arvid Norlin
aefa779a17 chore: organize table exports 2024-08-06 10:52:44 +02:00
Arvid Norlin
4005701c79 feat: add RTE Table 2024-08-05 15:56:26 +02:00
Christel Westerberg
e0de68c495 fix: parse phone number when setting default values 2024-07-17 11:35:12 +02:00
Christel Westerberg
da74babef9 fix: mobile form ui and parse phone number bug 2024-07-17 09:38:30 +02:00
Christel Westerberg
09b1d322a7 feat: list credit card according to design 2024-07-16 15:50:26 +02:00
Matilda Landström
84f9668454 fix: update design tokens 2024-07-15 15:28:09 +02:00
Christel Westerberg
226d19ce5f fix: remove placeholders 2024-07-15 15:07:56 +02:00
Christel Westerberg
62310caa90 fix: make all h4 and subtitles capitalized 2024-07-15 15:07:23 +02:00
Christel Westerberg
e8b9baf99e fix: refactor link event listeners 2024-07-15 13:55:57 +02:00
Christel Westerberg
c96008fb78 fix: track user on page load 2024-07-15 13:35:36 +02:00
Christel Westerberg
edb6005a72 fix: support for tracking link clicks 2024-07-15 13:35:36 +02:00
Chuma McPhoy
9062fd124d chore: remove brackets 2024-07-15 09:47:00 +02:00
Chuma McPhoy
c6f7ead1e7 fix: make contentKey type safe 2024-07-15 09:47:00 +02:00
Chuma McPhoy
e76f613830 fix: remove custom styling, and uncessary conditional check 2024-07-15 09:47:00 +02:00
Chuma McPhoy
f83f1a66b5 chore: type reorg 2024-07-15 09:47:00 +02:00
Chuma McPhoy
f43de03d7a chore: typing for sidepeek components 2024-07-15 09:47:00 +02:00
Chuma McPhoy
f78e74d3e3 refactor: add scroll prop to Link 2024-07-15 09:47:00 +02:00
Chuma McPhoy
70e1f39f5b fix: add border bottom to headers 2024-07-15 09:47:00 +02:00
Chuma McPhoy
85aded18b4 refactor: reorganize component organization 2024-07-15 09:47:00 +02:00
Chuma McPhoy
5d23830138 fix: Use CloseIcon 2024-07-15 09:45:23 +02:00
Chuma McPhoy
6b42090160 fix: mobile first styling 2024-07-15 09:45:23 +02:00
Chuma McPhoy
c17bd782c2 fix: use new custom property for background 2024-07-15 09:45:23 +02:00
Arvid Norlin
b1698a8a2e refactor: make SidePeek more reusable and composable 2024-07-15 09:45:23 +02:00
Arvid Norlin
301de3a110 feat: add SidePeek 2024-07-15 09:45: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
Chuma McPhoy
1573722843 fix: remove placeholder and use gray custom property 2024-07-10 18:55:26 +02:00
Erik Tiekstra
68f40a144e feat: added RoomCard and CardContainer component to HotelPage 2024-07-10 18:41:48 +02:00
Christel Westerberg
6b5606fc8b fix: design review comments 2024-07-10 16:01:28 +02:00
Christel Westerberg
19bfdf67f3 fix: animation on inputs 2024-07-10 16:01:28 +02:00
Christel Westerberg
7068fb4e15 chore: update design system tokens 2024-07-10 07:57:11 +02:00
Christel Westerberg
21f07c584b chore: update design system and names of tokens 2024-07-10 07:56:38 +02:00
Niclas Edenvin
d6fe6a33b4 feat(SW-70): create base for rate selection page
This is the foundation for the rate selection. Since we don't have UX
and UI ready yet this is on a best effort basis. Things that will be
changed later includes proper API fetching, correct design,
internationalization of text and form handling.
2024-07-09 13:25:26 +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
Chuma McPhoy
3f2f435461 fix: remove custom style and add tiltedMedium variant 2024-07-08 18:01:45 +02:00
Chuma McPhoy
22647710c9 feat: add a textDecoration variant to links 2024-07-08 13:25:00 +02:00
Chuma Mcphoy (We Ahead)
295e009e77 Merged develop into feat/hotel-pages-intro-section 2024-07-08 09:35:05 +00:00
Christel Westerberg
55a71f001f fix: change name of myPages link vaariant to underscored 2024-07-08 08:06:16 +02:00
Chuma McPhoy
26815cc9bc feat: Add AmenitiesList and IntroSection components to Hotel Page 2024-07-05 19:26:34 +02:00
Erik Tiekstra
d0f4d07a0a feat: changes to variants and styling 2024-07-04 13:47:18 +02:00
Erik Tiekstra
37d91a2354 chore: cleanup 2024-07-04 13:47:18 +02:00