SW-3396 move my saved cards to design system
* Move PaymentOption, PaymentOptionsGroup, PaymentIcons and MySavedCards (renamed SelectPaymentMethod) to design-system
* Remove unused svg payment icons
* cleanu
* cleanup
* trackUpdatePaymentMethod: remove hotelId argument that was never passed
Approved-by: Anton Gunnarsson
Feature/SW-3365 reduce upscaling of images (fix blurry images)
* fix: handle when images are wider than 3:2 but rendered in a 3:2 container
* use dimensions everywhere applicable
* fall back to using <img sizes='auto' /> if possible
* imageLoader: never nest
* remove empty test file
Approved-by: Anton Gunnarsson
Approved-by: Matilda Landström
Feature/SW-3327 move hotel info card to design system
* wip
* wip
* wip
* wip moving hotelinfocard
* add controls for HotelInfoCard in storybook
* merge
Approved-by: Anton Gunnarsson
SW-3317 move toast to design system
* chore: Move toast to design-system and add interaction tests
* Move toast to design-system and add storybook tests
* Merge branch 'master' of bitbucket.org:scandic-swap/web into SW-3317-move-toast-to-design-system
* merge
* move sonner dependency to @scandic-hotels/design-system
Approved-by: Anton Gunnarsson
Fix/linting booking flow
* fix import issues and add lint check no-extraneous-dependencies
* fix use type HotelType instead of string
* add no-extraneous-dependencies lint check to booking-flow
Approved-by: Anton Gunnarsson
SW-3270 move interactive map to design system or booking flow
* wip
* wip
* merge
* wip
* add support for locales in design-system
* add story for HotelCard
* setup alias
* .
* remove tracking from design-system for hotelcard
* pass isUserLoggedIn
* export design-system-new-deprecated.css from design-system
* Add HotelMarkerByType to Storybook
* Add interactive map to Storybook
* fix reactintl in vitest
* rename env variables
* .
* fix background colors
* add storybook stories for <Link />
* merge
* fix tracking for when clicking 'See rooms' in InteractiveMap
* Merge branch 'master' of bitbucket.org:scandic-swap/web into SW-3270-move-interactive-map-to-design-system-or-booking-flow
* remove deprecated comment
Approved-by: Anton Gunnarsson
Feature/select rate vertical data flow
* add fix from SW-2666
* use translations for room packages
* move types to it's own file
* Merge branch 'master' of bitbucket.org:scandic-swap/web into feature/select-rate-vertical-data-flow
* merge
* feature/select-rate: double rate for campaing rates
* revert NODE_ENV check in Cookiebot script
* revert testing values
* fix(SW-3171): fix all filter selected in price details
* fix(SW-3166): multiroom anchoring when changing filter
* fix(SW-3172): check hotelType, show correct breakfast message
* Merge branch 'feature/select-rate-vertical-data-flow' of bitbucket.org:scandic-swap/web into feature/select-rate-vertical-data-flow
* fix: show special needs icons for subsequent roomTypes SW-3167
* fix: Display strike through text when logged in SW-3168
* fix: Reinstate the scrollToView behaviour when selecting a rate SW-3169
* merge
* .
* PR fixes
* fix: don't return notFound()
* .
* always include defaults for room packages
* merge
* merge
* merge
* Remove floating h1 for new select-rate
Approved-by: Anton Gunnarsson
Feature/transpile design system
* remove example, we should use storybook instead
* remove example, we should use storybook instead
* css-modules cannot have :root, moved affected css-variables to globals.css
* .
* scandic-web no longer depends on design-system#build
* * Update readme
* Remove test code
Approved-by: Anton Gunnarsson
Feature/wrap logging
* feat: change all logging to go through our own logger function so that we can control log levels
* move packages/trpc to using our own logger
* merge
Approved-by: Linus Flood
fix: as a temporary fix hide booking code switcher and add a way to do a search without bookingcode
* fix: as a temporary fix hide booking code switcher and add a way to do a search without bookingcode
Approved-by: Linus Flood
Feature: Use hash of query+variables for graphql cache instead of gitsha
* feature: use a hash of query+variables as part of the cache key instead of gitsha
* .
* Merge branch 'master' of bitbucket.org:scandic-swap/web into feat/use-hash-for-graphql-cache
* use correct json stringify
* merge
* remove edgeRequest in favor of request
* add more indicative logging
Approved-by: Linus Flood
Fix/SW-2945 cache timings for resolve entry
* fix: cache resolveentry() harder and revalidate on publish instead
* logging: use debug logging for requests and add logging when tll is invalid
Approved-by: Linus Flood
don't use rateCode to determine if bookingCode should come from the room or the 'big' input
* don't use rateCode to determine if bookingCode should come from the room or the 'big' input
Approved-by: Linus Flood
fix: handle when content has copied divs from episervers RTE
* fix: handle when content has copied divs from episervers RTE
Approved-by: Matilda Landström
fix: select-rate didn't update results when switching back to a recent search SW-2890
* fix: select-rate didn't update results when switching back to a recent search
Approved-by: Linus Flood
fix: add error handling for hotel room availability
* fix: add error handling for hotel room availability
* fix: update error codes
* fix: have one error message to rule them all. them as in permutations of invalid dates
Approved-by: Linus Flood
fix: return [] when we get a 404 for meeting rooms for a hotel
* fix: return [] when we get a 404 for meeting rooms for a hotel
Approved-by: Linus Flood
fix: default page settings when invalid or missing
* fix: default page settings when invalid or missing since most pages don't have pageSettings
Approved-by: Anton Gunnarsson
fix: add noindex+nofollow to contentpages
* fix: add noindex+nofollow to contentpages
* fix: move no-index/no-follow to the shared generateMetadata function instead
* remove comment
Approved-by: Erik Tiekstra
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