We were missing the language param on some endpoints. We are still
missing it on some, but I left those without when we don't need it, e.g.
when only caring about the IDs in the response.
fix(LOY-235): update pagination params for getPreviousStays and getUpcomingStays
* fix(LOY-235): update pagination parameters for getPreviousStays and getUpcomingStays functions
Approved-by: Erik Tiekstra
Ending up doing some extra things:
Consolidated booking queries: We had both cancel and cancelMany, but functionally they’re the same, only one accepts an array and the other doesn’t. Didn’t see much point in keeping the single cancel as it wasn’t used anywhere. Thus, I could rename cancelMany to be the one stop method.
remove method for API now properly supports body so we don’t have to hijack the typing in certain places
* fix(SW-2508): now sending additional params to cancel api for new contract
Approved-by: Niclas Edenvin
Handle invalid tier expiry 1900-01-01 from SAS
* Handle invalid tier expiry 1900-01-01 from SAS
* Set correct sasTierExpirationDate
Approved-by: Linus Flood
* feat(SW-2152): Added improved meta descriptions for hotel pages
* feat(SW-2152): Added improved meta descriptions for destination pages
* feat(SW-2152): Refactoring metadata description functionality
* feat(SW-2152): Improved truncate function and added cities check to country page description
Approved-by: Michael Zetterberg
Approved-by: Matilda Landström
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(LOY-222): Find my booking url handling
* fix(LOY-222): adapt findMyBooking url based on HIDE_FOR_NEXT_RELEASE
* feat(LOY-222): add current web paths for findMyBooking in multiple languages
* refactor(LOY-222): better env and new url constructions
* refactor(LOY-222): decouple env var handling from getCurrentWebUrl
* fix(LOY-222): update findMyBooking URL construction to use baseUrl
* fix(LOY-222): simplify findMyBooking URL handling for new web urls
* fix(LOY-222): Update Finnish path for hotel reservation lookup
* refactor(LOY-222): rename PUBLIC_URL to NEXT_PUBLIC_PUBLIC_URL for consistency
Approved-by: Christian Andolf
Approved-by: Linus Flood
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
SW-2232 Adapt SAS router to API changes
* Adapt sas procedures to api changes
* Remove debug logs
* Capture performLevelUpgrade error
* More sentry logging
* Merge branch 'master' into feat/sw-2232-sas-api-updates
Approved-by: Joakim Jäderberg
Show boosted by scandic in SAS Linked Accounts
* Add boostedByScandic property to SAS membership
* Use get profile with extended partner data
* Display correct tier when EB is boosted by SF
Approved-by: Joakim Jäderberg
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
fix: site-config - use correct cache keys and invalidate them
* fix: site-config - use correct cache keys and invalidate them
Approved-by: Joakim Jäderberg