Commit Graph

29 Commits

Author SHA1 Message Date
Anton Gunnarsson
340f6d1714 Merged in feat/SW-1488-unlink-sas-account (pull request #1349)
Implement unlink SAS flow

Approved-by: Joakim Jäderberg
2025-02-20 15:09:06 +00:00
Anton Gunnarsson
7155165360 Merged in feat/SW-1266-implement-sas-link-account-endpoint (pull request #1332)
Implement API call to link SAS account

* Add endpoint to actually link SAS account linking

* add logging of error

* Refactor tocDate to getCurrentDateWithoutTime

Approved-by: Joakim Jäderberg
2025-02-20 08:55:10 +00:00
Hrishikesh Vaipurkar
eabe45b73c Merged in feat/SW-1557-implement-booking-code-select (pull request #1304)
feat: SW-1577 Implemented booking code city search

* feat: SW-1577 Implemented booking code city search

* feat: SW-1557 Strict comparison

* feat: SW-1557 Review comments fix


Approved-by: Michael Zetterberg
Approved-by: Pontus Dreij
2025-02-13 09:24:47 +00:00
Niclas Edenvin
ef22fc4627 This creates the alternative hotels page. It is mostly a copy of the select hotel page, and most of the contents of the pages lives under the same component in /components.
Merged in feat/sw-397-alternative-hotels (pull request #1211)

Feat/sw 397 alternative hotels

* fix(SW-397): create alternative hotels page

* update types

* Adapt to new changes for fetching data

* Make bookingcode optional

* Code review fixes


Approved-by: Simon.Emanuelsson
2025-01-28 12:08:40 +00:00
Matilda Landström
577a4ca35e Merged in feat/SW-1333-hotel-endpoint (pull request #1206)
Feat(SW-133): Add additionalData endpoint

Approved-by: Erik Tiekstra
Approved-by: Fredrik Thorsson
2025-01-27 11:39:13 +00:00
Tobias Johansson
70000afe1f Merged in feat/SW-755-price-change-non-happy (pull request #957)
Feat/SW-755 price change non happy

* fix(SW-755): dont show field error if checkbox has no children

* feat(SW-755): Price change route + dialog WIP

* fix(SW-755): minor refactoring

* fix(SW-755): added logging to price change route

* fix(SW-755): remove redundant search param logic

* fix(SW-755): moved enum cast to zod instead

* fix(SW-755): move prop type to types folder

* fix(SW-755): Added suspense to Payment and refactored payment options hook

* fix(SW-755): seperated terms and conditions copy from the checkbox label

* fix(SW-755): add currency format and fixed wrong translation

* fix(SW-755): change from undefined to null

* fix(SW-755): added extra type safety to payment options


Approved-by: Christian Andolf
Approved-by: Simon.Emanuelsson
2024-11-26 09:06:41 +00:00
Chuma McPhoy
876370e817 fix(SW-739): pr review fixes 2024-11-13 10:21:07 +01:00
Chuma McPhoy
48af26a772 feat(SW-739): use new allTiers endpoint and add feature flag 2024-11-13 10:21:07 +01:00
Simon Emanuelsson
62f549e85d feat: get breakfast package from API 2024-10-29 15:39:21 +01:00
Pontus Dreij
7b36139684 feat(sw-453): implemented filter from packages 2024-10-29 11:10:27 +01:00
Niclas Edenvin
baf6ed9f2b SW-454 Use the API on select room page 2024-10-08 15:24:01 +02:00
Niclas Edenvin
6e6d14875d Merged in feat/SW-454-select-room-api (pull request #648)
Feat/SW-454 Create select rate page foundation

* Extract select-rate page to its own, fixed route

* Rename availability to hotelsAvailability

* Update availability hotels response

* Number to string


Approved-by: Pontus Dreij
2024-10-08 09:10:06 +00:00
Christel Westerberg
44747058d0 fix: loyalty levels fetch in rsc for mobile menu
fix: get loyalty level in rsc

fix: typo
2024-10-08 08:25:44 +02:00
Christel Westerberg
2886084a82 feat: add communication preferences
feat: add generatePreferencesLink

feat: add subscriberId endpoint
2024-10-08 08:25:44 +02:00
Niclas Edenvin
2d25496d79 Update availability endpoint to v1 2024-09-27 14:23:49 +02:00
Christel Westerberg
56cd02f90b feat(SW-353): dynamic rewards 2024-09-26 11:52:07 +02:00
Simon Emanuelsson
af850c90e7 feat(SW-66, SW-348): search functionality and ui 2024-09-24 09:47:31 +02:00
Niclas Edenvin
b9dbcf7d90 Merged in feat/booking-flow-submit (pull request #580)
This implements the actual call to the API to create a booking. That’s the only thing it does, it doesn’t handle the response in any way.

This PR is just to get it there and the new booking sub team will handle it further, with payment etc.

Approved-by: Michael Zetterberg
Approved-by: Fredrik Thorsson
Approved-by: Simon.Emanuelsson
2024-09-20 13:05:23 +00:00
Fredrik Thorsson
deb3151edc feat(SW-176): add schemas 2024-09-04 09:44:03 +02:00
Tobias Johansson
e9a6499086 feat(SW-245): Delete credit card 2024-08-21 16:24:39 +02:00
Chuma McPhoy
ed379202c8 refactor(SW-188): replace anon or auth procedure with serviceProcedure 2024-08-21 10:31:52 +02:00
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
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
Chuma McPhoy
9413739f17 feat: Add Hotel endpoint and TRPC query 2024-07-01 13:53:07 +02:00
Matilda Landström
fa5638aaed feat: add credit cards endpoint 2024-06-18 15:48:50 +02:00
Arvid Norlin
9ef9de840c feat: add data handling to EarnAndBurn 2024-05-23 14:59:26 +02:00
Michael Zetterberg
476e9f7582 fix(auth): make things work 2024-05-20 09:10:20 +02:00
Christel Westerberg
661a8019d3 feat: enhance stays with api data 2024-05-14 10:33:15 +02:00
Simon Emanuelsson
55794034c5 feat(WEB-169): get profile data from API 2024-04-18 13:53:49 +02:00