fix(LOY-606): breakfast price now considers number of nights in MyStay/ChangeDates
* fix(LOY-606): breakfast price now considers number of nights in MyStay/ChangeDates
Approved-by: Linus Flood
feat(BOOK-750): refactor booking endpoints
* WIP
* wip
* wip
* parse dates in UTC
* wip
* no more errors
* Merge branch 'master' of bitbucket.org:scandic-swap/web into chore/refactor-trpc-booking-routes
* .
* cleanup
* import named z from zod
* fix(BOOK-750): updateBooking api endpoint expects dateOnly, we passed ISO date
Approved-by: Anton Gunnarsson
actively fetch and push tags when syncing master -> test
* actively fetch and push tags when syncing master -> test
* git fetch --all --tags
Approved-by: Anton Gunnarsson
Wrap material icon in a empty suspense boundary
* Wrap material icon in a empty suspense boundary
* skip lazy loading icons
* remove suspense boundary
* Don't import lazy from react when generating icon file
Approved-by: Linus Flood
Feature/SW-3616 partner points my stay
* feat(SW-3616): display partner points in my stays
* null check roomPointType
* Lowercase POINTS in my stay
* include other than Scandic points when displaying price details modal
Approved-by: Anton Gunnarsson
Include more details when throwing errors for debugging in Sentry
* WIP throw errors with more details for debugging in Sentry
* Fix throwing response-data
* Clearer message when a response fails
* Add message to errors
* better typings
* .
* Try to send profileID and membershipNumber to Sentry when we fail to parse the apiResponse
* rename notFound -> notFoundError
* Merge branch 'master' of bitbucket.org:scandic-swap/web into chore/add-error-details-for-sentry
Approved-by: Linus Flood
Add release version meta tag + preview environment
* include release version in meta tag
do polyfills in one place
* fix: add preview as a named sentry environment
Approved-by: Linus Flood
fix: don't send expected errors to Sentry
* fix: don't send expected errors to Sentry
* remove BAD_REQUEST from ignore-list for TRPC errors due to BAD_REQUEST being used improperly
Approved-by: Anton Gunnarsson
fix(redis-api): logs were no longer sent to Sentry
* fix(redis-api): logs were no longer sent to Sentry
* revert @elysia/server-timing pin
* .
Approved-by: Linus Flood
fix(BOOK-672): remove unused relationsships that threw when missing
* fix(BOOK-672): remove unused relationsships that threw when missing
Approved-by: Linus Flood
Replace deprecated <Body> with <Typography>
* chore: replace deprecated body component
* refactor: replace Body component with Typography across various components
* merge
Approved-by: Bianca Widstam
Approved-by: Matilda Landström
chore: add ai instruction files
* chore: add ai instruction files
* let the instruction file apply to all files, not only ts files
Approved-by: Linus Flood
Counter name is now searchable and add counter for redirects
* refactor: createCounter() only takes one argument, the name of the counter. Makes it easier to search for
* feat: add counter when we do a redirect from redirect-service
Approved-by: Linus Flood
Fix/redis api package mismatch
* Migrate scandic-web
* Migrate partner-sas
* Enable any rule in partner-sas
* fix: redis-api package version mismatch
* Merge branch 'master' of bitbucket.org:scandic-swap/web into fix/redis-api-package-mismatch
Approved-by: Anton Gunnarsson
Chore/remove enrichHotel call
* chore: remove enrichHotel api call
* include cityId when errors happen
* remove unused funciton and cleanup code
* tests no longer expect us to have called a function that is not used
* remove commented code
Approved-by: Linus Flood
fix: dont remove cache entries when unable to parse api response
* fix: dont remove cache entries when unable to parse api response
Approved-by: Linus Flood
Feat/redis fix
* feat(redis): delete multiple keys in one partition scan
* fix(BOOK-603): make it possible to do multiple deletes in redis at once using one partition scan
* filter out invalid keys
* fix: if no valid keys are present return early
* .
* fix: do redis deletes after scanning through all keys
* fix: do redis deletes after scanning through all keys
Approved-by: Linus Flood
Feat/redis fix
* feat(redis): delete multiple keys in one partition scan
* fix(BOOK-603): make it possible to do multiple deletes in redis at once using one partition scan
Approved-by: Linus Flood
fix(sas auth): remove session when we get a RefreshAccessTokenError
* fix(sas auth): remove session when we get a RefreshAccessTokenError
Approved-by: Linus Flood
reorder trpc middlewares so that Sentry understands where errors occur
* reorder trpc middlewares so that Sentry understands where errors occur
Approved-by: Linus Flood
Feature/SW-3595 Add info boxes to SAS start page & Eurobonus alert to select-hotel page on SAS
* wip
* feat(SW-3595): Add info boxes to SAS start page
* Add InfoBox to design-system
* Add background gradient to SAS start page
* update variable naming and conditionalize the eurobonus message on select-hotel
* SAS startpage update default message
* make select-hotel a bit more generic with slot={} instead of alert={}
Approved-by: Anton Gunnarsson
feature(SAS): add simple url for entering the booking flow /[lang]/book-hotel/[city]
* Merged in fix/book-115-hidden-focus-indicators (pull request #2925)
Fix/book 115 hidden focus indicators
* added focus ring to "how it works" text and close button in modal
* fix(BOOK-115): added focus ring to Hotel Sidepeek close button
* fix(BOOK-115): enabled selecting ancillaries with keyboard nav
* fix(BOOK-115): added focus indicator to "View and print receipt" in Manage Stay
* fix(BOOK-105 & BOOK-115): combined the two radio groups in payment selection to one, fixes focus indicator issue
* fix(BOOK-115): added focus indicator to shortcut links
* fix(BOOK-115): updated ancillaries keyboard selection
* fix(BOOK-115): removed tabIndex from Link component
* fix(BOOK-115): fixed single payment radio button not focusable
* fix(BOOK-115): updated to onKeyDown
* added id to "credit card"
* removed toUpperCase() on lables
* removed brackets
* moved the focus indicator to the DS Button component
* removed !important from ButtonLink css
* changed <label> to <fieldset> and <legend> and added aria…
* Merged in feat/sw-3596-console (pull request #3100)
feat(SW-3596): added lint rule for no console.log. Use logger instead.
* feat(SW-3596): added lint rule for no console.log. Use logger instead.
Approved-by: Joakim Jäderberg
* Merged in fix/BOOK-457-select-rate-lowestroomprice- (pull request #3061)
* Fix(BOOK-457): Reduced lowestRoomPrice tracking call from multiple times to one
* fix(BOOK-457): feat(SW-3590): Included RoomsLoadedEvent on select-rate page
Approved-by: Linus Flood
* Merged in feature/SW-3506-refresh-tokens (pull request #3064)
feature(SW-3506): refresh-tokens setup for SAS Eurobonus
* feature(SW-3506): refresh-tokens setup for SAS Eurobonus
* Merge branch 'master' of bitbucket.org:scandic-swap/web into feature/SW-3506-refresh-tokens
Approved-by: Anton Gunnarsson
* Merged in feat/BOOK-434-users-should-redirect-to- (pull request #3087)
* feat(BOOK-434): Redirect user to city/country page if wrong filter url
* feat(BOOK-434): Handled map view
Approved-by: Erik Tiekstra
* Merged in fix/SW-3553-logged-in-details- (pull request #3073)
* fix(SW-3553): Fixed screen scolled & locked on click of menu
Approved-by: Joakim Jäderberg
* Merged in feat/book-522-align (pull request #3101)
feat(BOOK-522): align items in topmenu, header and booking widget
* feat(BOOK-522): align items in topmenu, header and booking widget
* Delete old css variable and use new
* Fixed underline on icons
Approved-by: Erik Tiekstra
* Merged in fix/LOY-444-points-to-keep-left-text (pull request #3086)
fix(LOY-444): fix markerLabel text when left aligned
* fix(LOY-444): fix markerLabel text when left aligned
Approved-by: Matilda Landström
* Merged in chore/replace-graphql-tag/loader (pull request #3096)
Use turbopack for dev builds.
Remove graphql-tag/loader, replaced by gql`` tag literals instead.
Approved-by: Linus Flood
* Merged in fix/system-fragment (pull request #3102)
fix: faulty system fragment
* fix: faulty system fragment
Approved-by: Linus Flood
* fix(BOOK-498): removed and changed z-index values to have booking widget overlapping correctly on mobile.
Approved-by: Bianca Widstam
Approved-by: Hrishikesh Vaipurkar
* Merged in revert-gql (pull request #3104)
Revert gql
* Revert "Merged in fix/system-fragment (pull request #3102)"
This reverts commit 0d479eb337.
* Revert "Merged in chore/replace-graphql-tag/loader (pull request #3096)"
This reverts commit e9bd159e98.
* Merged in fix/BOOK-438-breadcrumbs-seo-filter (pull request #3103)
feat(BOOK-438): add breadcrumbs on seofilter pages
* feat(BOOK-438): add breadcrumbs on seofilter pages
* feat(BOOK-438): remove unused function
Approved-by: Hrishikesh Vaipurkar
* Merged in chore/regular-price-tests (pull request #3075)
chore: Add tests for regular price calculations
* Add tests for calculateRegularPrice
* Add tests for getRegularPrice
* Add multiroom test
Approved-by: Joakim Jäderberg
Approved-by: Linus Flood
* Merged in fix/wrap-webviews-with-sessionprovider (pull request #3111)
Wrap webviews with SessionProvider
* wrap webviews with sessionprovider
Approved-by: Linus Flood
* feat(BOOK-488): Trimming booking code before validating
Approved-by: Bianca Widstam
* feat(BOOK-472): Different placement of no availability alert on mobile viewports
Approved-by: Bianca Widstam
* Merged in feat/sw-3601-hookfix (pull request #3113)
Feat(SW-3601): useIsUserLoggedIn needs to check webview token
* fix(SW-3601): useIsUserLoggedIn needs to check webview token
* Check if we have webview token as well
* .
Approved-by: Joakim Jäderberg
* Merged in fix/add-missing-partner-data (pull request #3116)
fix: Add param to getScandicUser for extended data
* Add param to getScandicUser for extended data
Approved-by: Linus Flood
* Merged in feat/sw-3596-cache (pull request #3106)
feat(SW-3598): Don't call redis api if cachetime=0
* feat(SW-3596): no cache if ttl=0
* Fixed on set as well
* No cache if redemption
* Revert no cache if redemption
Approved-by: Joakim Jäderberg
* feat(BOOK-212): Refactored LoginButton and added successful tracking functionality
Approved-by: Linus Flood
* Merged in fix/document-undefined (pull request #3118)
Fix/document undefined
* fix: check if document is undefined
* fix: check if document is undefined
Approved-by: Linus Flood
* Merged in feat/sw-3604-webviews (pull request #3123)
feat(SW-3604): wrap mystay with bookingflowconfig
* feat(SW-3604): wrap mystay with bookingflowconfig
Approved-by: Joakim Jäderberg
* Merged in feature/turbopack (pull request #3117)
Feature/turbopack
* .
* .
* pin import-in-the-middle
* update marker
* revert back to using *.graphql.ts
Approved-by: Linus Flood
* Merge branch 'master' of bitbucket.org:scandic-swap/web into feature/simple-sas-book-url
fix(SW-3608): make user properties, that are based on audience, optional
* fix(SW-3608): make user properties, that are based on audience, optional
* fix(SW-3608): make user properties, that are based on audience, optional
* .
Approved-by: Anton Gunnarsson
feature(SW-3506): refresh-tokens setup for SAS Eurobonus
* feature(SW-3506): refresh-tokens setup for SAS Eurobonus
* Merge branch 'master' of bitbucket.org:scandic-swap/web into feature/SW-3506-refresh-tokens
Approved-by: Anton Gunnarsson
chore: No need to sort dictionary files anymore now that we have man-made IDs
* No need to sort dictionary files anymore now that we have man-made IDs
Approved-by: Erik Tiekstra
Approved-by: Linus Flood
Use tsgo for typechecking
* switch to tsgo for type-checking
* Merged in chore/remove-cypress (pull request #3066)
chore: remove unused dependencies
* chore: remove cypress
* remove unused deps
* update yarn.lock after removing unused deps
Approved-by: Anton Gunnarsson
* use tsgo for typechecking
* use tsgo for type-checking
* yarn install
* fix(BOOK-496): Slowed down the MarqueeText component animation
Approved-by: Matilda Landström
* switch to tsgo for type-checking
* use tsgo for typechecking
* use tsgo for type-checking
* yarn install
* Merge branch 'feature/tsgo' of bitbucket.org:scandic-swap/web into feature/tsgo
* switch to use yarn check-types in lint-staged
* Merge branch 'master' of bitbucket.org:scandic-swap/web into feature/tsgo
Approved-by: Linus Flood
feat(LOY-415): Add SJ widget
* feat(LOY-415): Add SJ widget
can be added as dynamic content to Content Pages
* feat(LOY-415): init SJ widget with a useEffect instead due to onLoad only being called the first time
* make sure to only initialize the SJ widget once and handle navigation
Approved-by: Erik Tiekstra
SW-3572 API route for listing hotels per city or country
* wip hotel data endpoint
* Correct route params type
* wip
* skip static paths call
* timeout when getting destinations take too long
* call noStore when we get a timeout
* add cache-control headers
* .
* .
* .
* wip
* wip
* wip
* wip
* add route for getting hotels per country
* include city when listing by country
* fix distance SI unit
* fix sorting
* Merge branch 'master' of bitbucket.org:scandic-swap/web into feature/SW-3572-hotel-data-endpoint
* packages/tracking passWithNoTests
* revalidate must be static value
* remove oxc reference
* cleanup
* cleanup hotel api route
* feat(SW-3572): cleanup error handling
Approved-by: Anton Gunnarsson
Sync defaultMessage from lokalise
* Enhance translation sync functionality and tests
- Added logging for found component files during sync.
- Introduced tests for handling complex components with replacements.
- Updated regex in syncIntlFormatMessage to support optional second arguments.
- Removed unused test files.
* feat(syncDefaultMessage): add script for syncing default message with lokalise
* feat(syncDefaultMessage): add script for syncing default message with lokalise
Approved-by: Matilda Landström
fix(SW-3549): update social session management functions for clarity and consistency
* refactor(SW-3549): rename session management functions for clarity and consistency
* merge
Approved-by: Hrishikesh Vaipurkar
fix: wrap MyStay component in BookingFlowConfig to handle RSC problem where config is not set
* fix: wrap MyStay component in BookingFlowConfig to handle RSC problem where config is not set
Approved-by: Bianca Widstam
feat(SW-3541): Do social login after login to SAS
* feat(auth): wip social login via curity
* Setup social login auth flow
* Merge branch 'master' of bitbucket.org:scandic-swap/web into feature/curity-social-login
* Added support for getting scandic tokens and refresh them
* feat: Enhance social login and session management with auto-refresh and improved error handling
* Merge branch 'master' of bitbucket.org:scandic-swap/web into feature/curity-social-login
* wrap layout in suspense
* revert app/layout.tsx
* fix import
* cleanup
* merge
* merge
* dont pass client_secret in the url to curity
* add state validation when doing social login through /authorize
* remove debug logging
Approved-by: Anton Gunnarsson
feat(BOOK-401): Add support for new-url -> new-url in the redirect-service
* Switch to typescript
* add new dependencies for tests and typescript
* Switch to typescript
* add new dependencies for tests and typescript
* rewrite to typescript and include tests
* rewrite to typescript and include tests
* refactor: update README and scripts for CSV handling; rename update script to generate
* include csv-data folder
* feat(BOOK-401): Add support for new-url -> new-url in the redirect-service
* Add errors when given unsupported URLs
* merge
Approved-by: Linus Flood
feat(BOOK-401): redirect-service with tests and typings
* Switch to typescript
* add new dependencies for tests and typescript
* Switch to typescript
* add new dependencies for tests and typescript
* rewrite to typescript and include tests
* rewrite to typescript and include tests
* refactor: update README and scripts for CSV handling; rename update script to generate
* include csv-data folder
Approved-by: Linus Flood
* feat(SW-3516): Include partnerLoyaltyNumber on bookings
- Added user context to BookingFlowProviders for user state management.
- Updated booking input and output schemas to accommodate new user data.
- Refactored booking mutation logic to include user-related information.
- Improved type definitions for better TypeScript support across booking components.
Approved-by: Anton Gunnarsson
fix: include service token in the debug route
* fix: include service token in the debug route
Approved-by: Bianca Widstam
Approved-by: Hrishikesh Vaipurkar