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
This changes the behavior of Link prop `keepSearchParams`. Previously it got
implicitly merged. Now, any search params in the given `href` prop to Link will
override any current search params available on the current page.
Handle the merging use case (if there is any) in the components that passes the
href to render Link.
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(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
Fix(SW-1467): Remove translation of hotel page sidepeek slugs
* fix(SW-1467): remove translation of sidepeek slugs
* fix: update enums
Approved-by: Erik Tiekstra
Approved-by: Fredrik Thorsson
Feat(SW-1469): Add check if we should create facility cards
* fix(SW-1469): only create facility cards if supposed to
Approved-by: Erik Tiekstra
Approved-by: Fredrik Thorsson
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
Fix(SW-1693): Don't render hotel subpages if not supposed to
* fix(SW-1693): don't render hotel subpage if not supposed to
Approved-by: Erik Tiekstra
Approved-by: Fredrik Thorsson
feat(SW-1697): more tilted scripted text for FullWidthCampaign component
* feat(SW-1697): more tilted scripted text for FullWidthCampaign component
* feat(SW-1697): add text transform to FullWidthCampaign title
Approved-by: Christian Andolf
fix: langswitcher - remove check if lang exists since it's handled already
* fix: langswitcher - remove check if lang exists since it's handled already
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
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
feat: auth - changed the time left before we trying to refresh the token
* feat: auth - changed the time left before we trying to refresh the token
Approved-by: Joakim Jäderberg