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
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-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
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
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
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
feat(SW-1523): foundation for my stay page
* feat(SW-1523): foundation for my stay page
This is the base page for the my stay page. It is very much hard coded
and all components need to get a design update afterwards. But this is
to get the page going!
* fix(i18n): messages
Approved-by: Michael Zetterberg
Approved-by: Christian Andolf
feat(SW-1296): added Subpage for hotel pages and its routing
* feat(SW-1296): added Subpage for hotel pages and its routing
Approved-by: Fredrik Thorsson
feat(SW-1493): Revised SAS comparison block
* Base of new TierDetails for SAS tier comparison
* Add backgrounds and content to TierDetails
* Implement new cms schema for SasTierComparison
* Override gap in jsontohtml styling to 0
* Add animations to comparison details
* Redesign again
* Update content model to new design
* Add border to bottom item in tier match list
* Wrap interpolate-size in @supports to be safe
* Merge branch 'master' into feat/sw-1493-revised-comparison-block
Approved-by: Joakim Jäderberg
feat: adjust price detail modal to handle multi room and removed dependency of enter details store
* feat: adjust price detail modal to handle multi room and removed dependency of enter details store
* fix: remove div from table
* fix: added room translation
Approved-by: Pontus Dreij
Merged in feat/sw-397-alternative-hotels (pull request #1211)
Feat/sw 397 alternative hotels
* fix(SW-397): create alternative hotels page
* update types
* Adapt to new changes for fetching data
* Make bookingcode optional
* Code review fixes
Approved-by: Simon.Emanuelsson
feat(SW-1450): added components in destination pages from cs
* feat(SW-1450): added components in destination pages from cs
* feat(SW-1450): added correct refs and removed classNames
Approved-by: Fredrik Thorsson
Added siteversion to all events and fixed payment status
* Added siteversion to all events and fixed payment status
* Fixed bug
Approved-by: Erik Tiekstra