Commit Graph

18 Commits

Author SHA1 Message Date
Simon Emanuelsson
ccb15593ea feat: merge stores, fix auto navigation, split summary 2024-11-27 10:20:14 +01: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
Christel Westerberg
3a6cfcfe5c fix: avoid sending query params to planet 2024-11-21 10:18:36 +01:00
Tobias Johansson
293800f024 Merged in feat/SW-618-payment-non-happy-path (pull request #874)
Feat/SW-618 payment non happy path

* feat(SW-618): filter out expired saved cards

* feat(SW-618): Added payment error codes and way of showing messages based on code

* feat(SW-618): show error message if max retries has been reached and remove search param after showing toast

* fix(SW-618): move fallback error codes

* fix(SW-618): remove ref from stopping useEffect to run twice

* fix(SW-618): refactored logic for toast message and minor fixes

* fix(SW-618): remove error message enum due to static analysis problems


Approved-by: Christian Andolf
Approved-by: Arvid Norlin
2024-11-19 08:05:14 +01:00
Christel Westerberg
d67affd677 fix: update booking service schemas 2024-11-19 08:05:13 +01:00
Christel Westerberg
dc3516f4e1 feat: add packages info to summary 2024-11-15 16:32:08 +01:00
Christel Westerberg
06da80c9f0 fix: conditionally use user token or service token for booking 2024-11-15 10:23:56 +01:00
Simon Emanuelsson
0897a398ee feat(SW-791): make confirmation page dynamic 2024-11-08 09:47:35 +01:00
Christel Westerberg
560fb25aee fix: send totalPrice to create booking 2024-11-07 13:53:24 +01:00
Christel Westerberg
f4f771ec70 fix: rename BedTypeEnums 2024-11-07 13:53:24 +01:00
Christel Westerberg
6d051629d3 fix: send correct values to create booking 2024-11-07 13:53:24 +01:00
Christel Westerberg
644ce369aa fix: booking confirmation validation 2024-11-01 10:25:40 +01:00
Simon Emanuelsson
62f549e85d feat: get breakfast package from API 2024-10-29 15:39:21 +01:00
Simon Emanuelsson
2d23f9bbf3 feat: booking confirmation page with hardcoded data 2024-10-23 11:56:02 +02:00
Tobias Johansson
740419bad2 Merged in feat/SW-459-payment-flow-ui-ux (pull request #657)
Feat/SW-459 payment flow ui ux

* feat(SW-431): List payment methods and handle booking status and redirection

* feat(SW-431): small fix

* fix(SW-431): Added intl string and sorted dictionaries

* fix(SW-431): add todo comments

* feat(SW-459): Added payment method icons

* feat(SW-459): refactored into new component and added form

* feat(SW-459): Localized strings

* feat(SW-459): added checkbox

* feat(SW-459): Refactored payment options and updated payment form

* feat(SW-459): update input bg color

* feat(SW-459): add current web links and style fixes

* fix(SW-459): fix issue with booking confirmation not being accessible

* feat(SW-459): style changes

* feat(SW-459): update max width of payment container

* feat(SW-459): update create booking schema

* feat(SW-459): fixes from PR


Approved-by: Arvid Norlin
2024-10-10 12:20:41 +00:00
Christel Westerberg
71b03143ce fix: refactor scopes for service token 2024-10-09 16:46:53 +02:00
Tobias Johansson
4103e3fb37 Merged in feat/SW-431-payment-flow (pull request #635)
Feat/SW-431 payment flow

* feat(SW-431): Update mock hotel data

* feat(SW-431): Added route handler and trpc routes

* feat(SW-431): List payment methods and handle booking status and redirection

* feat(SW-431): Updated booking page to poll for booking status

* feat(SW-431): Updated create booking contract

* feat(SW-431): small fix

* fix(SW-431): Added intl string and sorted dictionaries

* fix(SW-431): Changes from PR

* fix(SW-431): fixes from PR

* fix(SW-431): add todo comments

* fix(SW-431): update schema prop


Approved-by: Simon.Emanuelsson
2024-10-04 09:37:09 +00: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