Commit Graph

57 Commits

Author SHA1 Message Date
Simon Emanuelsson
051bc54e6c chore: cleaning up select-rate 2025-02-14 14:20:54 +01:00
Tobias Johansson
b394d54c3f Merged in feat/enter-details-multiroom (pull request #1280)
feat(SW-1259): Enter details multiroom

* refactor: remove per-step URLs

* WIP: map multiroom data

* fix: lint errors in details page

* fix: made useEnterDetailsStore tests pass

* fix: WIP refactor enter details store

* fix: WIP enter details store update

* fix: added room index to select correct room

* fix: added logic for navigating between steps and rooms

* fix: update summary to work with store changes

* fix: added room and total price calculation

* fix: removed unused code and added test for breakfast included

* refactor: move store selectors into helpers

* refactor: session storage state for multiroom booking

* feat: update enter details accordion navigation

* fix: added room index to each form component so they select correct room

* fix: added unique id to input to handle case when multiple inputs have same name

* fix: update payment step with store changes

* fix: rebase issues

* fix: now you should only be able to go to a step if previous room is completed

* refactor: cleanup

* fix: if no availability just skip that room for now

* fix: add select-rate Summary and adjust typings


Approved-by: Arvid Norlin
2025-02-11 14:24:24 +00:00
Pontus Dreij
c863294919 Merged in feat/SW-1055-Accordion-for-summary-bar-in-mobile-on-Select-Rate (pull request #1283)
Feat/SW-1055 Accordion for summary bar in mobile on Select Rate

* feat(SW-1055) created mobile summary for select rate

* feat(SW-1055) Added summary for mobile (accordion)


Approved-by: Tobias Johansson
2025-02-10 15:11:31 +00:00
Michael Zetterberg
1d822dad5a Merged in fix/labels-english (pull request #1249)
fix(i18n): validated English messages

Approved-by: Bianca Widstam
Approved-by: Christian Andolf
2025-02-06 20:54:25 +00:00
Tobias Johansson
f82de5aad7 Merged in feat/price-details-modal-multiroom (pull request #1232)
feat: adjust price detail modal to handle multi room and removed dependency of enter details store

* feat: adjust price detail modal to handle multi room and removed dependency of enter details store

* fix: remove div from table

* fix: added room translation


Approved-by: Pontus Dreij
2025-01-31 09:13:21 +00:00
Tobias Johansson
a7468cd958 Merged in feat/SW-1379-multiroom-summary (pull request #1198)
Feat/SW-1379 multiroom summary

* fix: added early return in hotel query and added missing type annotations

* feat(SW-1379): update summary to support multiple rooms and add tests

* fix: added check for room number when using isMember for member prices

* fix: remove mocked array

* fix: minor bug fixes in rate details popup

* fix: translation key


Approved-by: Pontus Dreij
Approved-by: Arvid Norlin
2025-01-29 09:25:43 +00:00
Arvid Norlin
cb0dfcecad fix (SW-1352): update PriceDetailsTable with avarage price per night 2025-01-14 14:24:06 +01:00
Christel Westerberg
bcae63e3fc fix: rename children to childrenInRoom 2025-01-14 12:25:17 +01:00
Arvid Norlin
39ebfe50c9 fix: adjust modal padding-bottom 2025-01-13 14:53:48 +00:00
Michael Zetterberg
d2ce9c0d7c fix(i18n): prepare for Lokalise 2025-01-13 13:35:03 +01:00
Hrishikesh Vaipurkar
7baae05655 feat: SW-1182 Moved modal to components folder 2025-01-09 12:28:15 +01:00
Hrishikesh Vaipurkar
9a25b3569d feat: SW-1182 Implntd rate terms modal in confirmation page and Updated styles 2025-01-09 12:28:15 +01:00
Hrishikesh Vaipurkar
61bd3a2c3e SW-1182 Updated popover to modal 2025-01-09 12:28:15 +01:00
Tobias Johansson
6ca56f3138 Merged in feat/SW-822-handle-breakfast-included (pull request #1138)
Feat/SW-822 handle breakfast included

* feat(SW-822): Added flag for breakfast included and hide breakfast step if included

* fix: check if window is defined to avoid error during SSR

* fix: remove return if rate definition is not found because its expected if input is undefined


Approved-by: Christel Westerberg
Approved-by: Arvid Norlin
2025-01-08 12:34:20 +00:00
Christel Westerberg
5901cab440 fix: refactor breadcrumbs to take page type variants to better match margins 2025-01-07 11:41:39 +01:00
Christel Westerberg
139accb8ed fix: align price formatting 2025-01-02 13:46:51 +01:00
Arvid Norlin
0c7c6ea21a feat: add Price details modal 2024-12-20 09:28:06 +01:00
Tobias Johansson
118f1afafa Merged in feat/SW-1023-bed-type-information (pull request #1056)
Feat/SW-1023 bed type information

* feat(SW-1023): add bed type info

* fix: formatting of bed type string

* fix(SW-1023): refactored bed type info and added default value to children beds

* fix(SW-1023): fixes from PR


Approved-by: Christel Westerberg
Approved-by: Simon.Emanuelsson
2024-12-18 09:47:06 +00:00
Christian Andolf
42bb71cf2f feat(SW-1063): add member price modal 2024-12-17 10:58:44 +01:00
Christel Westerberg
658afd0327 fix: handle cases with counterRateCode missing 2024-12-13 08:20:36 +01:00
Christian Andolf
e08e960209 chore: add consistent type imports 2024-12-12 11:47:44 +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
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
6f9fb4b620 fix(SW-1043): wrong font size/styling on prices in summary 2024-12-06 09:12:13 +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
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
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
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
Simon Emanuelsson
744af22b08 fix: make sure all searchparams are used in redirect 2024-11-19 11:19:44 +00: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
Christel Westerberg
dc3516f4e1 feat: add packages info to summary 2024-11-15 16:32:08 +01:00
Christel Westerberg
060f6b6a82 fix: breakout selector for enter details in summary 2024-11-12 10:09:59 +01:00
Christel Westerberg
32d12bae58 fix: refacotr away optional pricing 2024-11-12 09:05:08 +01:00
Christel Westerberg
daed74481e fix: handle submit from summary bottom sheet 2024-11-12 08:58:02 +01:00
Christel Westerberg
ee6aa8d188 feat: add mobile design to accordions 2024-11-12 08:58:02 +01:00
Christel Westerberg
66b2dc0c78 feat: add mobile summary 2024-11-12 08:58:02 +01:00
Christian Andolf
28c30b2416 fix(SW-315): formatting numbers via locale, fixed a few padding issues 2024-11-08 09:25:28 +01:00
Christel Westerberg
a708eedfd4 fix: extend bedType to include discription and roomTypeCode 2024-11-07 13:53:24 +01:00
Christel Westerberg
fb76c67cee fix: calc total price for summary 2024-11-07 11:31:21 +01:00
Christel Westerberg
8bd43aebf8 fix: summarize prices 2024-11-07 09:56:10 +01:00
Tobias Johansson
0cbffc7904 Merged in feat/SW-613-refactor-hotelreservation-sidepeek (pull request #805)
Feat/SW-613 refactor hotelreservation sidepeek

* feat(SW-613): move sidepeek paralell route to apply for all of hotelreservation

* feat(SW-613): refactor sidepeek logic to a unified approach for hotelreservation flow

* feat(SW-613): fix issue where room was not selected properly in sidepeek

* fix(SW-613): move back preload to layout

* fix(SW-613): move preload to dedicated file

* fix(SW-613): refactor sidepeek to work with hotel page

* feat(SW-613): added sidepeek button for room card


Approved-by: Simon.Emanuelsson
2024-11-06 12:09:27 +00:00
Pontus Dreij
9ab0789795 feat(sw-697): removed ? 2024-11-04 16:38:22 +01:00
Pontus Dreij
04df824ea1 feat(697): Made new fields optional 2024-11-04 16:09:31 +01:00