Migrate to a monorepo setup - step 1
* Move web to subfolder /apps/scandic-web
* Yarn + transitive deps
- Move to yarn
- design-system package removed for now since yarn doesn't
support the parameter for token (ie project currently broken)
- Add missing transitive dependencies as Yarn otherwise
prevents these imports
- VS Code doesn't pick up TS path aliases unless you open
/apps/scandic-web instead of root (will be fixed with monorepo)
* Pin framer-motion to temporarily fix typing issue
https://github.com/adobe/react-spectrum/issues/7494
* Pin zod to avoid typ error
There seems to have been a breaking change in the types
returned by zod where error is now returned as undefined
instead of missing in the type. We should just handle this
but to avoid merge conflicts just pin the dependency for
now.
* Pin react-intl version
Pin version of react-intl to avoid tiny type issue where formatMessage
does not accept a generic any more. This will be fixed in a future
commit, but to avoid merge conflicts just pin for now.
* Pin typescript version
Temporarily pin version as newer versions as stricter and results in
a type error. Will be fixed in future commit after merge.
* Setup workspaces
* Add design-system as a monorepo package
* Remove unused env var DESIGN_SYSTEM_ACCESS_TOKEN
* Fix husky for monorepo setup
* Update netlify.toml
* Add lint script to root package.json
* Add stub readme
* Fix react-intl formatMessage types
* Test netlify.toml in root
* Remove root toml
* Update netlify.toml publish path
* Remove package-lock.json
* Update build for branch/preview builds
Approved-by: Linus Flood
feat(SW-1452): Added filtering and sorting to destination city pages
* feat(SW-1452): Added filtering and sorting to destination city pages
* feat(SW-1452): Added temporary component for country pages to avoid Context issues
Approved-by: Matilda Landström
feat: my profile - removed all parallel routes
* Removed all parallel routes on my-profile
* Fixed suspense
* Moved components into myprofile folder
* Turn off browser cache on myprofile
* Clear router cache when editing profile
* Clear route cache when adding new credit card
* PR fixes
Approved-by: Joakim Jäderberg
Implement API call to link SAS account
* Add endpoint to actually link SAS account linking
* add logging of error
* Refactor tocDate to getCurrentDateWithoutTime
Approved-by: Joakim Jäderberg
Feat/SW-1077 enter details edit room
* feat(SW-1077): persist state when changing rooms
* fix: issue with step state when closing accordion and transition to correct room when modifying step
Approved-by: Pontus Dreij
* 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
Refactor: removed parallel routes for header, footer and sidewidealert. Langswitcher and sidewidealert now client components
* feat - removed parallel routes and made sidepeek and sitewidealerts as client components
* Langswitcher as client component
* Fixed lang switcher for current header
* Passing lang when fetching siteconfig
* Merge branch 'master' into feat/refactor-header-footer-sitewidealert
* Refactor
* Removed dead code
* Show only languages that has translation
* Refetch sitewidealert every 60 seconds
* Merge branch 'master' into feat/refactor-header-footer-sitewidealert
* Removed sidepeek parallel route from my-stay
* Added missing env.var to env.test
* Removed console.log
Approved-by: Joakim Jäderberg
feat(SW-550): added sync functionality and sitemap generation
* feat(SW-550): added sync functionality and sitemap generation
* feat(SW-550): Added support for splitting and saving multiple sitemaps when there are 50000+ urls
* feat(SW-550): Updates after PR
* feat(SW-550): Added locale to sitemap data
* feat(SW-550): Added support for locale based sitemapData
* feat(SW-550): Saving alternates of sitemap entries
* feat(SW-550): Refactoring to use sitemap utils file
* feat(SW-550): Using Netlify.env to get environment variables
* feat(SW-550): clarify use of functions
Approved-by: Michael Zetterberg
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
Feat/SW-965 select rate modify room
* feat(SW-965): added new state for modify room and smaller fixes
* feat(SW-965): update state handling of modifyRateIndex
* fix: adjust scroll animation to handle modifyRateIndex
* fix: room state logic and removed unused css class
Approved-by: Pontus Dreij
Approved-by: Arvid Norlin
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
feat: getHotel - unify input to make sure we can use the same cache response
* feat: getHotel - unify input to make sure we can use the same cache response
Approved-by: Simon.Emanuelsson
feat(SW-1540): Fetch data from API for MyStay
* feat(SW-1540): Fetch data from API for MyStay
* feat(SW-1540): Moved myStaySkeleton
* feat(SW-1540) used memoized getBookingConfirmation instead
Approved-by: Michael Zetterberg
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
feat(SW-1259): Enter details multiroom
* refactor: remove per-step URLs
* WIP: map multiroom data
* fix: lint errors in details page
* fix: made useEnterDetailsStore tests pass
* fix: WIP refactor enter details store
* fix: WIP enter details store update
* fix: added room index to select correct room
* fix: added logic for navigating between steps and rooms
* fix: update summary to work with store changes
* fix: added room and total price calculation
* fix: removed unused code and added test for breakfast included
* refactor: move store selectors into helpers
* refactor: session storage state for multiroom booking
* feat: update enter details accordion navigation
* fix: added room index to each form component so they select correct room
* fix: added unique id to input to handle case when multiple inputs have same name
* fix: update payment step with store changes
* fix: rebase issues
* fix: now you should only be able to go to a step if previous room is completed
* refactor: cleanup
* fix: if no availability just skip that room for now
* fix: add select-rate Summary and adjust typings
Approved-by: Arvid Norlin
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
Feat/SW-1055 Accordion for summary bar in mobile on Select Rate
* feat(SW-1055) created mobile summary for select rate
* feat(SW-1055) Added summary for mobile (accordion)
Approved-by: Tobias Johansson
feat:hotel info card - pass hoteldata since we already fetching it on page level
* feat:hotel info card - pass hoteldata since we already fetching it on page level
feat: skeleton key bullet proof. 10 min cache on city search response
* feat: skeleton key bullet proof. 10 min cache on city search response
* Refactor server.ts
Approved-by: Michael Zetterberg
Fix/hotelreservation skeletons
* fix: skeletons in hotelreservation key includes all search params
* fix: skeletons in hotelreservation key includes all search params
* fix: skeletons in hotelreservation key includes all search params
fix: skeletons in hotelreservation key includes all search params
* fix: skeletons in hotelreservation key includes all search params
Approved-by: Joakim Jäderberg