feat(LOY-188): dynamic content support in content pages headers & use in DTMC employee benefits page
* feat(LOY-188): add dynamic content handling for DTMC employee benefits page header
* fix(LOY-188): change section to div in EmployeeBenefitsCallToActions component
* refactor(LOY-188): switch to ButtonLink
* refactor(LOY-188): replace enum with as const objects in DynamicContentEnum
* chore(LOY-188): change ComponentValue type exports to internal scope in DynamicContentEnum
* fix(EmployeeBenefitsCallToActions): replace div with fragment
* chore(LOY-188): update translations
Approved-by: Christian Andolf
fix(SW-2051): add correct url to promocards on confirmation page
* fix(SW-2051): add correct url to promocards on confirmation page
Approved-by: Christian Andolf
fix(SW-2501): validation trigger
* fix(SW-2501): validation trigger
On enter details, when submitting we want to trigger the validation for
the details forms for each room. This will display error messages for
the form fields with errors if they are not already displayed, so the
user knows which fields has errors.
Approved-by: Tobias Johansson
fix(sw-2501): remove the continue buttons on enter details
This removes the continue buttons on the enter details page.
This is only that, not the refactoring of the whole enter details page with changing to one form etc. Since I just didn’t complete that refactor today I decided to do this light variant for now.
A quick explanation is that the continue buttons are removed and instead the form is submitted (meaning saving the form data to the store) on blur on the input elements IF the form is valid. If it’s invalid we change the isComplete flag in the store to false. This will hopefully also fix a bug where you were able to submit old data if the new data is invalid.
When clicking the submit button and a room is incomplete/invalid the browser scrolls to the first invalid room.
Approved-by: Erik Tiekstra
feat: SW-1355 Added points value in details page tracking
* feat: SW-1355 Added points value in details page tracking
* feat: SW-1355 Updated .flatMap to .map
* feat: SW-1355 Optimized for readability
Approved-by: Michael Zetterberg
fix(SW-1353): enter details tracking fixes
* fix(SW-1353): tracking fixes
* refactor: move code
* fix: use hasPublicPrice
* fix: update calculation for roomPrice and totalPrice
* fix: only include bedtype if it is "preselected"
Approved-by: Michael Zetterberg
SW-2527 - Fix boosted toast when tier matching
* Compare levels to ensure toast is only displayed when actually boosted
* Fix 200 name
* Update naming
Approved-by: Linus Flood
Feat/SW-2220 destination list
* fix(SW-2220): remove old hotels
* fix(SW-2220): add filtering of cities without urls
* fix(SW-2220): destinations English
* fix(SW-2220): update all country files
* refactor(SW-2220): cleanup
Approved-by: Michael Zetterberg
Approved-by: Erik Tiekstra
fix(sw-1897): show member price modal immediately
* fix(sw-1897): show member price modal immediately
* Make checkbox fully controlled
* Remove action in the store that wasn't used
Approved-by: Hrishikesh Vaipurkar
* feat(SW-2429): Removed [contentType]>[uid] and use app router based structure for content types
* feat(SW-2429): Added breadcrumbs to follow contenttype folder structure
* feat(SW-2429): Removed modal/dialog functionality from map views on hotel and destination pages
* fix(SW-2429): Fixed issue with booking widget on meeting pages. Also used same structure for content types
Approved-by: Arvid Norlin
fix(sw-1867): Don't allow same name or membno between rooms
* fix(sw-1867): Don't allow same name or membno between rooms
We don't want to allow two different rooms to have the same firstname
and lastname combination or the same membership number.
* Fine tune validation triggers
* Add comments explaining manual validation triggering
* Change to react-hook-form built-in deps instead
Approved-by: Simon.Emanuelsson
Consolidate autocomplete search SW-2253 SW-2338
* use fuse.js for fuzzy search
* Handle weird behaviour when search field loses focus on destinationPage
* Add error logging for JumpTo when no URL was provided
* Switch to use <Typography /> over <Caption />
* fix: bookingWidget search label should always be red
* fix: searchHistory can no longer add invalid items
* fix: list more hits when searching
* fix: issue when searchField value was undefined
* fix: don't show searchHistory label if no searchHistory items
* simplify skeleton for listitems in search
Approved-by: Linus Flood
* fix(SW-2247): Removed accordion like special requests block and changed button variant
* fix(SW-2247): Added additional info for bedtype selection
Approved-by: Tobias Johansson
Approved-by: Niclas Edenvin
Feat/SW-1549 map improvements
* fix: imported new icon
* refactor: rename component and set map handling to 'greedy'
* fix: show cards for 3s after hover
* refactor: update styles and added HotelPin component
* fix: change from close to back icon
* refactor: update to only use 1 state value for active pin and card
* fix: add click handler when dialog is opened
* fix: performance fixes for the dialog carousel
* fix: added border
* fix: clear timeout on mouseenter
* fix: changed to absolute import
* fix: moved hover state into the store
* fix: renamed store actions
Approved-by: Michael Zetterberg
fix(SW-2181): use fitted bounds to adapt the zooming of the map
* fix(SW-2181): use fitted bounds to adapt the zooming of the map
Approved-by: Michael Zetterberg
Feat(SW-1943): add new design for pay ancillaries with points
* fix: hide card and payment info if only quantity with points is selected
* feat(SW-1943): add new design for pay ancillaries with points
* feat(SW-1943): add missing translation
* feat(SW-1943): fix rebase
* feat(SW-1943): remove console log
Approved-by: Linus Flood
Approved-by: Matilda Landström
Feature/autocomplete search
* wip autocomplete search
* add skeletons to loading
* Using aumlauts/accents when searching will still give results
remove unused reducer
sort autocomplete results
* remove testcode
* Add tests for autocomplete
* cleanup tests
* use node@20
* use node 22
* use node22
* merge
fix: search button outside of viewport
* merge
* remove more unused code
* fix: error message when empty search field in booking widget
* fix: don't display empty white box when search field is empty and no searchHistory is present
* merge
* fix: set height of shimmer for search skeleton
* rename autocomplete trpc -> destinationsAutocomplete
* more accute cache key naming
* fix: able to control wether bookingwidget is visible on startPage
fix: sticky booking widget under alert
* remove unused code
* fix: skeletons
fix: error overlay on search startpage
* remove extra .nvmrc
* merge
Approved-by: Linus Flood