Commit Graph

103 Commits

Author SHA1 Message Date
Christian Andolf
e08e960209 chore: add consistent type imports 2024-12-12 11:47:44 +01:00
Christel Westerberg
4210218852 fix: persist selection of bed and breakfast if same room 2024-12-10 15:42:44 +01:00
Tobias Johansson
b341c96838 Merged in fix/revert-breakfast-price-change (pull request #1064)
fix: revert price removal of "no breakfast" option


Approved-by: Simon.Emanuelsson
2024-12-10 13:24:29 +00:00
Arvid Norlin
e885b76a12 fix: add regex validation of membership no 2024-12-10 11:51:33 +00:00
Arvid Norlin
d67a2919bf fix: limit first/lastname inputs to 30 characters 2024-12-10 10:30:55 +01:00
Arvid Norlin
a5a99c1432 fix: replace enter details first-/lastname regex 2024-12-10 10:30:55 +01:00
Tobias Johansson
9b1d70b3be Merged in feat/SW-1026-breakfast-for-kids (pull request #1038)
feat(SW-1026): added info regarding children breakfast

* feat(SW-1026): added info regarding children breakfast

* fix: remove hardcoded currency

* fix(SW-1026): remove price for no breakfast

* fix: missing translation


Approved-by: Christian Andolf
Approved-by: Arvid Norlin
2024-12-09 14:58:54 +00:00
Tobias Johansson
af3c68e464 fixes 2024-12-06 09:13:36 +01:00
Tobias Johansson
6cb4c63b2e fix: reduce transition duration 2024-12-06 09:13:36 +01:00
Tobias Johansson
eb92beacaf fix(SW-1043): set overflow when active section to enable dropdowns to overflow 2024-12-06 09:13:36 +01:00
Tobias Johansson
d9f1f6f1ab fix(SW-1043): complete booking button styling 2024-12-06 09:13:36 +01:00
Tobias Johansson
930f666d07 fix(SW-1043): prevent scrolling while bottom sheet is open 2024-12-06 09:12:13 +01:00
Tobias Johansson
f7cf1e9a2b fix(SW-1043): styling fixes 2024-12-06 09:12:13 +01:00
Tobias Johansson
6f9fb4b620 fix(SW-1043): wrong font size/styling on prices in summary 2024-12-06 09:12:13 +01:00
Tobias Johansson
c354fbe434 fix(SW-1043): added hook with the scroll logic 2024-12-06 09:12:13 +01:00
Tobias Johansson
92db90502c fix: added event listener to scroll when transition ends 2024-12-06 09:12:13 +01:00
Tobias Johansson
d3dad4c73d wip 2024-12-06 09:12:13 +01:00
Christel Westerberg
2c7842f79a fix: validation in details form 2024-12-06 08:05:38 +01:00
Arvid Norlin
083ba28f9e feat: add SignupPromo component 2024-12-05 15:33:25 +01:00
Christel Westerberg
528107e0ef fix: change euro price to user's currency + merge state correctly 2024-12-03 15:17:01 +01:00
Christel Westerberg
4288e643c6 fix: pass lang to create booking 2024-12-03 09:32:43 +00:00
Christel Westerberg
f896f8df76 fix: translations and double currencies 2024-12-02 16:23:57 +01:00
Simon Emanuelsson
ed1574838a feat: new booking confirmation page 2024-11-29 15:55:30 +01:00
Christel Westerberg
329d762917 fix: normalize page width 2024-11-29 14:58:27 +01:00
Christel Westerberg
bdccce1d70 fix: header width and clamping 2024-11-29 14:58:27 +01:00
Tobias Johansson
9b90e99adf Merged in feat/SW-1007-saved-cards-filtering (pull request #980)
Feat/SW-1007 saved payment cards now shown based on supported cards by hotel

* fix(SW-1007): refactored savedCards to only show supported payment cards

* fix(SW-1007): show error message even if metadata is null

* fix: merge changes that were missed

* fix: remove use server


Approved-by: Christel Westerberg
2024-11-28 08:08:39 +00:00
Linus Flood
267a47c61a Merge branch 'master' into feat/sw-929-release-preps 2024-11-27 19:13:21 +01:00
Christel Westerberg
f5990998db fix: add hotel header to enter details flow 2024-11-27 15:59:12 +01:00
Christel Westerberg
439bc13e65 fix: close summary sheet 2024-11-27 13:39:09 +01:00
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
Tobias Johansson
d6cff63c5e Merged in feat/SW-999-visual-fixes (pull request #976)
Feat/SW-999 visual fixes in enter details

* fix(SW-999): accordion title font sizes fix and alignment of change room button

* fix(SW-999): added scroll if content cannot fit inside popover


Approved-by: Christel Westerberg
2024-11-26 08:11:50 +00:00
Arvid Norlin
ac0d671811 fix(SW-957 SW-958): Make selected EnterDetailsCards clickable 2024-11-21 15:34:44 +01:00
Simon Emanuelsson
1aeed2e9ca fix: make sure session storage is cleaner whenever user is no longer in the booking flow 2024-11-21 14:54:08 +01:00
Christel Westerberg
3a6cfcfe5c fix: avoid sending query params to planet 2024-11-21 10:18:36 +01:00
Tobias Johansson
7221e77fa0 Merged in fix/SW-933-incorrect-ratecode (pull request #947)
Fix/SW-933 incorrect ratecode when creating booking as a member

* fix(SW-933): Added check if member to select correct rate code in create booking

* fix(SW-933): set member price in summary when "join" is true

* fix(SW-933): change "price" -> "amount" and fix bool expression

* fix(SW-933): added check for membership number in summary


Approved-by: Christel Westerberg
2024-11-21 09:00:06 +00:00
Christel Westerberg
d43c29e394 fix: disable button on not isComplete 2024-11-19 14:10:57 +01:00
Christel Westerberg
c2ef7f7074 fix: padding issues 2024-11-19 14:09:50 +01:00
Simon Emanuelsson
744af22b08 fix: make sure all searchparams are used in redirect 2024-11-19 11:19:44 +00:00
Christel Westerberg
bd0720dc0f fix: break out css variables 2024-11-19 08:49:26 +01:00
Christel Westerberg
d5c6b6809c fix: responsivity of fields and order of signup form 2024-11-19 08:49:26 +01:00
Christel Westerberg
4c9e9de113 fix: add mobile design for details form 2024-11-19 08:49:26 +01:00
Christel Westerberg
117cbcd20d feat: add new design for join scandic friends checkbox 2024-11-19 08:49:26 +01:00
Arvid Norlin
e18a2fdc44 feat: add useSetOverflowVisibleOnRA hook 2024-11-19 08:08:08 +01:00
Arvid Norlin
17df6d6c47 feat(SW-612): Add popover component 2024-11-19 08:08:08 +01:00
Simon Emanuelsson
94f693c4f0 feat: make steps of enter details flow dynamic depending on data 2024-11-18 16:30:09 +01:00
Bianca Widstam
3c4907efce fix/SW-902-update-response-city-availability (pull request #917)
Fix/SW-902 update response city availability

* fix(SW-902): update response for API changes

* fix(SW-902): add total row for pricePerStay

* fix(SW-902): fix optional requestedPrice

* fix(SW-902): fix bookingCode output

* feat(SW-903): fix sorting


Approved-by: Pontus Dreij
Approved-by: Niclas Edenvin
2024-11-18 15:08:12 +00:00
Tobias Johansson
a70f8a3b97 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-18 14:10:11 +00:00
Christel Westerberg
f0c7aa349c fix: update booking service schemas 2024-11-18 10:54:57 +01:00
Tobias Johansson
ce453d8b1d feat(SW-817): hide apple pay if not supported 2024-11-18 08:52:12 +00:00