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-1281 ancillaries add flow
* feat(SW-1546): update design
* feat(SW-1546): show points only if logged in
* feat(SW-1546): always show points
* feat(SW-1281): ancillary add flow initial
* feat(SW-1546): add api call
* feat(SW-1281): refactor naming and break out components
* feat(SW-1281): handle back button
* feat(SW-1281): make mobile cards clickable
* feat(SW-1281): refactor spread ancillaries
* feat(SW-1281): add deliverytimes
* feat(SW-1281): rebase master
* feat(SW-1281): add design for logged in or not
* feat(SW-1281): add design
* feat(SW-1281): add mobile design
* feat(SW-1281): fix carousel
* feat(SW-1281): show deliverytime only if ancillary has not been added
* feat(SW-1281): add design
* feat(SW-1281): add translations
* feat(SW-1281): add translations
* feat(SW-1281): add translations
* feat(SW-1281): base dates on check in date only
* feat(SW-1281): fix show correct toast when no valid data
* feat(SW-1281): hande logic if deliverytime is not required
* feat(SW-1281): fix max width for mobile
* feat(SW-1281): refactor after pr comment
Approved-by: Niclas Edenvin
Approved-by: Linus Flood
Feat(SW-1677) my stay update contact user
* feat(SW-1677): Hide membersettings that doesnt match the booking
* feat(SW-1677) Edit my stay contact details as user
Approved-by: Linus Flood
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-1504): Used AncillaryCard and added to breakfast choice
* feat(SW-1504): Craeted AncillaryCard and added to breakfast choice
* feat(SW-1504): Using of AncillaryCard
* feat(SW-1504) Removed unused imports
* feat(SW-1504): Added price text
* feat(SW-1504): added /night per adult
* feat(SW-1504) Removed type prop
Approved-by: Arvid Norlin
Feat/SW-1546 list ancillaries my stay
* feat(SW-1546): foundation for listing ancillaries
* feat(SW-1546): foundation for listing ancillaries
* feat(SW-1546): refactor type
* feat(SW-1546): fix date format
* feat(SW-1546): refactor usestate
* feat(SW-1546): refactor typing
* feat(SW-1546): refactor types
* feat(SW-1546): responsive width on modal
* feat(SW-1546): update design
* feat(SW-1546): rebase master
* feat(SW-1546): show points only if logged in
* feat(SW-1546): always show points
* feat(SW-1546): small fix
* feat(SW-1546): remove spread object
* feat(SW-1546): fix import order
Approved-by: Simon.Emanuelsson
feat: initial display of linkedReservations on confirmation page
* feat: initial display of linkedReservations on confirmation page
* refactor: move notFound
Approved-by: Tobias Johansson
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: 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
feat(SW-1522): add alternative hotel link on select rate if no availability and move alert
* feat(SW-1522): add alternative hotel link on select rate and move alert
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