Commit Graph

230 Commits

Author SHA1 Message Date
Chuma McPhoy
1ff6cd267d feat: update getHotel to use real hotel api endpoint, support for service tokens, type modifications 2024-08-21 10:31:52 +02:00
Arvid Norlin
7e719bc475 chore: move typings 2024-08-21 09:44:28 +02:00
Arvid Norlin
8c75b9bcd7 wip: initial stab trpc pagination 2024-08-21 09:44:25 +02:00
Arvid Norlin
6f293be3a7 feat(SW-164): Add pagination for friendship transactions 2024-08-21 09:43:51 +02:00
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
00a5465485 feat(SW-240): refactor booking widget 2024-08-19 15:49:59 +02:00
Hrishikesh Vaipurkar
cdd83a4346 feat: SW-158 Tracking support 2024-08-19 12:02:06 +02:00
Niclas Edenvin
819ac454b0 Merged in feature/refresh-token (pull request #401)
feat: SW-101 Proactively refresh tokens

Approved-by: Michael Zetterberg
2024-08-16 13:56:09 +00:00
Erik Tiekstra
1721f09ebb fix(SW-203): removed hidden prop inside RoomCard and added logic to parent 2024-08-15 07:53:07 +02:00
Erik Tiekstra
dc38b5f71a feat(SW-203): added show more functionality to rooms inside the hotel page 2024-08-15 07:53:07 +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
Hrishikesh Vaipurkar
51df6bfd34 feat(SW-162): Used token instead of cookie 2024-08-14 10:44:14 +02:00
Hrishikesh Vaipurkar
8ab77a5522 feat: SW-162 Updated as per review comments 2024-08-14 10:44:11 +02:00
Hrishikesh Vaipurkar
dde2b828cb feat: SW-162 MFA for Profile implemented 2024-08-14 10:44:10 +02:00
Chuma Mcphoy (We Ahead)
242d604308 Merged develop into feat/hotel-page-tab-navigation 2024-08-13 07:03:40 +00:00
Fredrik Thorsson
4c0c90a0f0 feat(SW-68): add static map component 2024-08-13 08:52:54 +02:00
Chuma McPhoy
b19dbf0664 refactor(feat-SW-94): use enum for HotelHashValues and move to types/components dir 2024-08-12 13:51:05 +02:00
Hrishikesh Vaipurkar
f35edcd6cb feat(SW-65): Updated zod infer to output 2024-08-07 14:46:00 +02:00
Hrishikesh Vaipurkar
1dfcd144fb SW-65 Moved type to /types 2024-08-07 14:02:39 +02:00
Hrishikesh Vaipurkar
fb5ba552e9 SW-65 Removed action used onSubmit and dt lib 2024-08-07 14:02:38 +02:00
Hrishikesh Vaipurkar
2afab6a33d feat: SW-65 Working on booking widget wrapper component 2024-08-07 14:02:37 +02:00
Simon.Emanuelsson
461df11e62 Merged in fix/SW-113 (pull request #385)
fix(SW-113): add colors to negative and positive point transactions

Approved-by: Michael Zetterberg
2024-08-07 08:52:25 +00:00
Simon Emanuelsson
c94b83464f fix(SW-113): add colors to negative and positive point transactions 2024-08-06 14:11:10 +02:00
Fredrik Thorsson
798d19d3c8 feat: filter route changes 2024-08-06 13:12:22 +02:00
Fredrik Thorsson
a48019a6a0 feat: pass filters as prop 2024-08-06 13:12:22 +02:00
Fredrik Thorsson
ebfe4d45dc feat: add router for filters 2024-08-06 13:12:22 +02:00
Michael Zetterberg
2c0116e67b fix: stricter types for adobeDataLayer 2024-07-30 15:44:38 +02:00
Christel Westerberg
d8f7e4157a fix: add correct properties to tracking 2024-07-16 10:39:22 +02:00
Christel Westerberg
c7446032fe fix: handle webviews 2024-07-15 13:35:36 +02:00
Christel Westerberg
73cea4ba51 fix: add channel and pageType 2024-07-15 13:35:36 +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
Christel Westerberg
a8a67d5e35 feat: add tracking events for loyalty pages 2024-07-15 13:35:36 +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
96b2be6ea1 fix: remove undefined type from badgeTextTransKey prop 2024-07-11 14:39:01 +02:00
Chuma Mcphoy (We Ahead)
d26e856c47 Merged develop into feat/SW-92-room-card 2024-07-11 08:06:59 +00:00
Chuma McPhoy
0697c8d9ef feat: add included param to hotel call, fetch room data, setup schema, use in hotelpage 2024-07-10 18:55:22 +02:00
Chuma McPhoy
f71d0a07d5 feat: add textTransform prop to section headers 2024-07-10 18:47:45 +02:00
Erik Tiekstra
ea8165bec9 fix: moved typings to typings folder and removed fallback variable values. Also fixed so only RoomCard is client component 2024-07-10 18:47:45 +02:00
Erik Tiekstra
68f40a144e feat: added RoomCard and CardContainer component to HotelPage 2024-07-10 18:41:48 +02:00
Niclas Edenvin
3374505aee feat(SW-72): Add flexibility selection 2024-07-10 16:04:25 +02:00
Niclas Edenvin
8e94c92c70 feat(SW-72): move the room selection to its own component 2024-07-10 16:04:25 +02:00
Fredrik Thorsson
286d772de1 feat: use getHotel data 2024-07-10 11:31:46 +02:00
Niclas Edenvin
c5473f477e feat(SW-70): Move RoomCard types to /types 2024-07-09 13:28:44 +02:00
Chuma Mcphoy (We Ahead)
0f0678e829 Merged develop into feat/hotel-pages-intro-section 2024-07-08 15:55:01 +00:00
Christel Westerberg
da343f45da feat: new "safe" procedure without unauth throwing 2024-07-08 14:56:11 +02:00
Chuma McPhoy
aff27f64a7 chore: create a IntroSectionProps type 2024-07-08 12:36:38 +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
17bc18ce2b fix: add stylings for list 2024-07-08 10:17:35 +02:00
Christel Westerberg
6184662caa fix: add imageContainer reference in rte 2024-07-08 08:06:16 +02:00