Fix/redis shutdown graceful
* fix: shutdown redis gracefully when container restarts
* throttle scans to redis to avoid overwhelming it
Approved-by: Anton Gunnarsson
Feature/SW-2538 redis api sentry
* Add fingerprint to be able to differentiate JSON.parse errors
* update deploy script
* use status over deprecated error function in elysia
* use t3-env createFinalSchema for extra validation
Approved-by: Anton Gunnarsson
fix: colors of the search field on <JumpTo/> had inverted behaviour
* fix: colors of the search field on <JumpTo/> had inverted behaviour
Approved-by: Linus Flood
Fix/SW-2401 share cache in prod
* fix: reuse cache between prod and pre-prod
* tests: add tests for generating cachePrefix
* tests: remove unnecessary reset of process.env
* tests: add tests for generateCacheKey
* fix: make sure that we don't get invalid cacheKeys
* fix: make sure that we don't get invalid cacheKeys
Approved-by: Linus Flood
fix: when floating booking widget is sticky let it have white background all the way out. SW-2427
* fix: when floating booking widget is sticky let it have white background all the way out.
Resolves SW-2427
* pr: move styling variants to it's own file
Approved-by: Christian Andolf
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
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
Upgrade to node@22
* Upgrade to node@22
* Upgrade to node@22
* update required node engine in scandic-web
Approved-by: Michael Zetterberg
Approved-by: Linus Flood
Feature/SW-1736 floating booking widget
* feature: Add floating booking widget on start page SW-1736
* fix: Make sure we don't try to use IntersectionObserver on the server
* fix: make sure that we disconnect the intersectionobserver when dismounting
* fix: pass searchparams to floating bookingwidget
Approved-by: Michael Zetterberg
fix: switch to using useQuery over useSuspenseQuery for booking widget
* fix: switch to using useQuery over useSuspenseQuery for booking widget
Approved-by: Linus Flood
Move more of BookingWidget to client SW-1639
* feat: move getLocations in booking widget to client side so that it's also cached on the client reducing the blinking when switching urls (and reducing duplicate calls)
Approved-by: Linus Flood
Fix/ci build
* fix: use explicit ci:build command since pre-scripts don't work in yarn
* fix: don't remove .next-folder on dev
* revert change to netlify.toml
Approved-by: Anton Gunnarsson
fix: different packageManager versions in different package.json's caused issues when installing
* fix: different packageManager versions in different package.json's caused issues when installing
* fix: build error
Approved-by: Anton Gunnarsson
fix: was unable to fetch hotel subpage data, now uses the same function as when fetching a 'normal' hotel page
* fix: was unable to fetch hotel subpage data, now uses the same function as when fetching a 'normal' hotel page
Approved-by: Linus Flood
* fix: findLang only returns acceptable languages
* fix: fallback to use header x-lang if we haven't setLang yet
* fix: languageSchema, allow uppercase
Approved-by: Linus Flood
Fix/mypages clientside menu
* feat: move mypages menu to client side
* Merge branch 'master' of bitbucket.org:scandic-swap/web into fix/mypages-clientside-menu
* wip
* wip
* wip
* refactor: reorganize MyPages navigation logic and improve type definitions
* refactor: enhance MyPagesMobileDropdown with loading states and skeletons
* refactor: clean up header component and improve myPagesNavigation query structure
* Merge branch 'master' of bitbucket.org:scandic-swap/web into fix/mypages-clientside-menu
Approved-by: Linus Flood
Feature/hardcoded mypages links
* feat: wip use hardcoded links
* Merge branch 'master' of bitbucket.org:scandic-swap/web into feature/hardcoded-mypages-links
* feat: use hardcoded links for my pages to support dynamic links
* cleanup
* code fixes
* refactor: restructure MyPagesMobileDropdown component for improved readability
* use util timeout function
Approved-by: Christian Andolf
Approved-by: Linus Flood
SAS Handle redirects from server actions on the client
* fix: return values instead of doing redirect in server action
* Merge branch 'master' of bitbucket.org:scandic-swap/web into fix/sas-link
* fix: SAS use client side redirects since netlify doesn't seem to support redirects inside server actions
Approved-by: Linus Flood
Feature/sas mypages
* feat: Add SAS partner page under my pages
* fix: feature toggle SAS Partner page in my pages
* add translations for SAS account page
* use 'flex-start' instead of 'start'
* fix: flatten css
* fix: don't use <SectionContainer /> on linkedAccounts page
First steps towards the SAS partnership
* otp flow now pretends to do the linking
* Update LinkAccountForm header
* Update redirect times
* Clean up comments
* Set maxAge on sas cookies
* make all SAS routes protected
* Merge remote-tracking branch 'refs/remotes/origin/feature/sas-login' into feature/sas-login
* Require auth for sas link flow
* Fix resend otp
* Add error support to OneTimePasswordForm
* Add Sentry to SAS error boundary
* Move SAS_REQUEST_OTP_STATE_STORAGE_COOKIE_NAME
* Add missing translations
* Merge branch 'master' of bitbucket.org:scandic-swap/web into feature/sas-login
* Merge branch 'feature/sas-login' of bitbucket.org:scandic-swap/web into feature/sas-login
* Add TooManyCodesError component
* Refactor GenericError to support new errors
* Add FailedAttemptsError
* remove removed component <VWOScript/>
* Merge branch 'feature/sas-login' of bitbucket.org:scandic-swap/web into feature/sas-login
* remove local cookie-bot reference
* Fix sas campaign logo scaling
* feature toggle the SAS stuff
* Merge branch 'feature/sas-login' of bitbucket.org:scandic-swap/web into feature/sas-login
* fix: use env vars for SAS endpoints
Approved-by: Linus Flood
fix: reduce the need for multiple SEAMLESS_LOGIN/SEAMLESS_LOGOUT
* fix: reduce the need for multiple SEAMLESS_LOGIN/SEAMLESS_LOGOUT
* fix: reduce the need for multiple SEAMLESS_LOGIN/SEAMLESS_LOGOUT
* fix: defaulted values that are the same in each environment
Approved-by: Christian Andolf
Approved-by: Linus Flood