Commit Graph

116 Commits

Author SHA1 Message Date
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
Tobias Johansson
450a1d4adc Merged in fix/reverse-date-input-fix (pull request #1294)
Revert "Merged in fix/remove-test-warnings (pull request #1267)"

* Revert "Merged in fix/remove-test-warnings (pull request #1267)"

This reverts commit c62ebb83bb.


Approved-by: Michael Zetterberg
2025-02-10 13:30:03 +00:00
Tobias Johansson
c62ebb83bb Merged in fix/remove-test-warnings (pull request #1267)
fix: change from undefined to empty string to get rid of uncontrolled input warnings in tests

* fix: change from undefined to empty string to get rid of uncontrolled input warnings in tests


Approved-by: Michael Zetterberg
2025-02-06 12:39:32 +00:00
Hrishikesh Vaipurkar
63f456da5a feat: SW-1422 Updated UX for booking code desktop and mobile 2025-02-05 16:18:28 +01:00
Hrishikesh Vaipurkar
6741a0a21c feat: SW-1422 Implemented Switch/Toggle component 2025-02-05 16:16:45 +01:00
Simon Emanuelsson
1deab000bd fix: cache hotel response 2025-01-30 13:51:47 +01: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
Michael Zetterberg
d2ce9c0d7c fix(i18n): prepare for Lokalise 2025-01-13 13:35:03 +01:00
Tobias Johansson
1018b3ebcd Merged in feat/SW-1169-map-bedtype-icons (pull request #1113)
Feat/SW-1169 map bedtype icons

* feat(SW-1169): Added bed icons

* fix(SW-1169): update fill rule property

* fix(SW-1169): update clip rule prop

* feat(SW-1169): Added way of rendering bed type icons with extra beds

* feat(SW-1169): update room schema to map mainBed to enum

* feat(SW-1169): update bedtype icon color

* feat(SW-1169): transform unknown bed types to BedTypeEnum.Other

* test: update mock data with new schema


Approved-by: Christel Westerberg
2025-01-08 13:26:56 +00:00
Tobias Johansson
18dd08f10e Merged in feat/SW-619-signup-non-happy (pull request #1083)
Feat/SW-619 signup non happy

* feat(SW-619): Added tests for Date input

* feat(SW-619): Updated date input to not allow date below 18 years old, also added form validation and tests to cover this change

* fix

* feat(SW-619): add info banner if membership verification fails

* fix(SW-619): update test description


Approved-by: Christel Westerberg
Approved-by: Arvid Norlin
2025-01-08 12:31:30 +00:00
Chuma McPhoy
528652d603 fix(LOY-90): remove duplicate country value 2024-12-18 17:52:43 +01:00
Chuma McPhoy
dddd93a98a fix(LOY-90): use double qutes for object keys + country fixes 2024-12-18 14:43:08 +01:00
Christel Westerberg
4872847ecb fix: add special requests to store 2024-12-17 09:44:58 +00:00
Christel Westerberg
ed3879f6d2 fix: update design for select component and remove placeholders 2024-12-17 09:44:58 +00:00
Christel Westerberg
241e354fc5 fix: special requests 2024-12-17 09:44:58 +00:00
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
Arvid Norlin
d67a2919bf fix: limit first/lastname inputs to 30 characters 2024-12-10 10:30:55 +01:00
Christel Westerberg
100adc8266 fix: remove red border on valid country select 2024-12-10 10:30:55 +01:00
Tobias Johansson
15552a4cb6 fix(SW-1043): added input required messages 2024-12-06 09:13:36 +01:00
Tobias Johansson
b58c1adb46 fix(SW-1043): updated country input so whole field is clickable 2024-12-06 09:12:13 +01:00
Tobias Johansson
f7cf1e9a2b fix(SW-1043): styling fixes 2024-12-06 09:12:13 +01:00
Christel Westerberg
403e1e7cf8 fix: handle default values in date select 2024-12-02 13:54:40 +01:00
Chuma McPhoy
b80d75a63a fix(SW-1095): default to swedish country code if page in english 2024-11-29 12:18:24 +01:00
Chuma McPhoy
da824ee2b4 fix(SW-1095): add type to imports 2024-11-29 10:39:10 +01:00
Chuma McPhoy
4da0918469 fix(SW-1095): set country code based on url lang when phone input empty 2024-11-29 10:34:07 +01:00
Simon Emanuelsson
ccb15593ea feat: merge stores, fix auto navigation, split summary 2024-11-27 10:20:14 +01:00
Chuma McPhoy
c14fe6bc86 refactor(SW-360): extract password validation outside main NewPassword component to minimize re-renders. 2024-11-26 10:30:24 +01:00
Chuma McPhoy
3967ec6040 chore(SW-360): proper formatting of AriaInputWithLabel 2024-11-26 10:30:24 +01:00
Chuma McPhoy
0d972367df fix(SW-360): remove container queries to fix stacking context bug affecting dropdowns in signup 2024-11-26 10:30:24 +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
Arvid Norlin
ac0d671811 fix(SW-957 SW-958): Make selected EnterDetailsCards clickable 2024-11-21 15:34:44 +01:00
Pontus Dreij
37098d23cf fix(SW-925) disable filter if there are no availablePackages 2024-11-20 14:41:48 +01: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
Simon Emanuelsson
94f693c4f0 feat: make steps of enter details flow dynamic depending on data 2024-11-18 16:30:09 +01:00
Niclas Edenvin
18d40120b9 Merged in feat/SW-338-filter-sort-ui (pull request #896)
Feat/SW-338 design filters and sorting on select hotel

* feat(SW-338): design hotel sort dropdown

* Translations

* feat(SW-338): style filters

* Bold

* Import type

* Translations

* Rename and add translation

* Rename translation


Approved-by: Bianca Widstam
2024-11-15 07:18:30 +00:00
Pontus Dreij
9ec366a500 feat(SW-892) Show toolTip on button hover 2024-11-14 14:52:30 +01:00
Pontus Dreij
87713d1332 feat(SW-892) Fixed active state on info icon 2024-11-14 14:42:45 +01:00
Pontus Dreij
354e455684 feat(SW-892): Moved Pet Room Info Tooltip inside filter button 2024-11-14 14:42:45 +01:00
Pontus Dreij
cf8585a3df fix(SW-449): Re-added YYYY-MM-DD 2024-11-13 08:30:43 +01:00
Erik Tiekstra
fe6582ccbb fix(SW-812): styling fixes for the header and related components 2024-11-11 07:48:47 +01:00
Pontus Dreij
42e5da1ee0 fix(SW-449): Updated next.config date rule 2024-11-08 15:13:24 +01:00
Christian Andolf
f6b3cf8b92 chore: replace function expression with inline statement
replace destructuring for better static analysis

remove unused variables
2024-11-08 09:25:28 +01:00
Chuma McPhoy
246c26ca85 feat: display months with text instead of number 2024-11-05 15:47:28 +01:00
Chuma McPhoy
1b7106deef fix(SW-649): move getDaysInMonth outside component function scope 2024-11-05 15:47:28 +01:00
Chuma McPhoy
8763346f9d fix(SW-649): let react-hook-form do date state handling 2024-11-05 15:47:28 +01:00
Chuma McPhoy
7ed2e1d5d0 refactor(SW-649): reusable getDaysInMonth function 2024-11-05 15:47:28 +01:00