Bianca Widstam
d9b858c823
Merged in feat/SW-3289-replace-sidepeek-hotel-reservation (pull request #2686 )
...
feat(SW-3289): replace sidepeek
* fix(SW-3289): replace sidepeek
* fix(SW-3289): add wrapping prop and change prop name to buttonVariant
* fix(SW-3289): replace body with typography
* fix(SW-3289): fix intl message
Approved-by: Joakim Jäderberg
2025-08-22 11:43:39 +00:00
Hrishikesh Vaipurkar
706f2d8dfe
Merged in fix/SW-3208-webviews-change-dates-on-my- (pull request #2638 )
...
fix(SW-3208): Fixed webview for change date in MyStay
* fix(SW-3208): Fixed webview for change date in MyStay
Approved-by: Linus Flood
2025-08-13 12:37:04 +00:00
Anton Gunnarsson
a2213d0169
Merged in feat/sw-3228-move-image-to-design-system (pull request #2616 )
...
feat(SW-3228): Move Image to design-system
* Move Image to design-system
* Merge branch 'master' into feat/sw-3228-move-image-to-design-system
Approved-by: Linus Flood
2025-08-12 12:58:05 +00:00
Anton Gunnarsson
800dc5c3c1
Merged in feat/sw-3225-move-parking-information-to-booking-flow (pull request #2614 )
...
feat(SW-3225): Move ParkingInformation to design-system
* Inline ParkingInformation types to remove trpc dependency
* Move ParkingInformation to design-system
* Move numberFormatting to common package
* Add deps to external
* Fix imports and i18n script
* Add common as dependency
* Merge branch 'master' into feat/sw-3225-move-parking-information-to-booking-flow
Approved-by: Linus Flood
2025-08-12 12:36:31 +00:00
Simon Emanuelsson
59f4a27cb1
feat: translate Voucher everywhere during booking flow
2025-06-30 10:57:00 +00:00
Anton Gunnarsson
e572d9e7e9
Merged in feat/sw-2862-move-booking-router-to-trpc-package (pull request #2421 )
...
feat(SW-2861): Move booking router to trpc package
* Use direct imports from trpc package
* Add lint-staged config to trpc
* Move lang enum to common
* Restructure trpc package folder structure
* WIP first step
* update internal imports in trpc
* Fix most errors in scandic-web
Just 100 left...
* Move Props type out of trpc
* Fix CategorizedFilters types
* Move more schemas in hotel router
* Fix deps
* fix getNonContentstackUrls
* Fix import error
* Fix entry error handling
* Fix generateMetadata metrics
* Fix alertType enum
* Fix duplicated types
* lint:fix
* Merge branch 'master' into feat/sw-2863-move-contentstack-router-to-trpc-package
* Fix broken imports
* Move booking router to trpc package
* Move partners router to trpc package
* Move autocomplete router to trpc package
* Move booking router to trpc package
* Merge branch 'master' into feat/sw-2862-move-booking-router-to-trpc-package
Approved-by: Linus Flood
2025-06-26 13:21:16 +00:00
Anton Gunnarsson
002d093af4
Merged in feat/sw-2863-move-contentstack-router-to-trpc-package (pull request #2389 )
...
feat(SW-2863): Move contentstack router to trpc package
* Add exports to packages and lint rule to prevent relative imports
* Add env to trpc package
* Add eslint to trpc package
* Apply lint rules
* Use direct imports from trpc package
* Add lint-staged config to trpc
* Move lang enum to common
* Restructure trpc package folder structure
* WIP first step
* update internal imports in trpc
* Fix most errors in scandic-web
Just 100 left...
* Move Props type out of trpc
* Fix CategorizedFilters types
* Move more schemas in hotel router
* Fix deps
* fix getNonContentstackUrls
* Fix import error
* Fix entry error handling
* Fix generateMetadata metrics
* Fix alertType enum
* Fix duplicated types
* lint:fix
* Merge branch 'master' into feat/sw-2863-move-contentstack-router-to-trpc-package
* Fix broken imports
* Merge branch 'master' into feat/sw-2863-move-contentstack-router-to-trpc-package
Approved-by: Linus Flood
2025-06-26 07:53:01 +00:00
Simon Emanuelsson
0b960200b9
fix: make sure ancillaries also listen to invalidate requests
2025-05-15 07:49:28 +00:00
Simon Emanuelsson
a99e434d84
feat: move room charge to top in price details modal
2025-05-08 10:38:44 +00:00
Michael Zetterberg
b910b6a313
feat(SW-2116): Use refId instead of confirmationNumber
2025-05-05 12:26:37 +00:00
Simon Emanuelsson
db289b80b1
feat: refactor NewDates, clean up legacy code
...
This reverts commit 0c7836fa59 .
2025-05-03 21:45:45 +02:00
Arvid Norlin
0c7836fa59
Merged in fix/SW-2553-sidepeeks (pull request #1919 )
...
Fix/SW-2553 sidepeeks
* fix(SW-2553): apply sidepeek display logic
* chore: move convertToChildType and getPriceType utils
* fix: apply PR requested changes
* fix(SW-2553): fix roomNumber for multiroom
* fix(SW-2553): fix sidepeek for my-stay page
Approved-by: Michael Zetterberg
Approved-by: Bianca Widstam
Approved-by: Matilda Landström
2025-05-02 15:10:34 +00:00
Linus Flood
6979ac0c3b
Merged in revert-pr-1925 (pull request #1927 )
...
Revert "Feat/sw 2323 find booking (pull request #1925 )"
Approved-by: Anton Gunnarsson
2025-05-02 13:05:42 +00:00
Arvid Norlin
74d37dad93
feat(SW-2116): RefId instead of confirmationNumber
2025-05-02 12:44:07 +02:00
Bianca Widstam
7070770581
Merged in fix/SW-2406-update-modal-ancillaries (pull request #1911 )
...
fix(SW-2406): update modal for ancillaries
* fix(SW-2406): update modal for ancillaries
* fix(SW-2406): revert translations
Approved-by: Niclas Edenvin
Approved-by: Erik Tiekstra
2025-04-30 08:20:57 +00:00
Simon Emanuelsson
ec087a3d15
feat: refactor of my stay
2025-04-28 12:40:52 +00:00
Simon Emanuelsson
722d4505ba
fix: always use totalPrice to display roomCharge
2025-04-23 11:50:44 +02:00
Simon Emanuelsson
1f94c581ae
fix: unite all price details modals to one and align on ui
2025-04-23 08:45:50 +00:00
Hrishikesh Vaipurkar
ae1010bfce
Merged in feat/SW-2079-update-booking-page-to-show-points- (pull request #1683 )
...
feat: SW-2079 Show points in confirmation page
* feat: SW-2079 Show points in confirmation page
* feat: SW-2079 Optimized code
* feat: SW-2079 Updated Body to Typography
* feat: SW-2079 Multi-room total cost display
* feat: SW-2079 Add reward nights condition rate title
* feat: SW-2079 Removed extra checks
* feat: SW-2079 Optimmized formatPrice function
* feat: SW-2079 Typo fix
Approved-by: Christian Andolf
2025-04-04 09:39:55 +00:00
Simon Emanuelsson
2abd4c5c12
fix: display modify dates for already guaranteed changeable rates
2025-04-04 08:46:47 +00:00
Niclas Edenvin
a34951e075
Merged in fix/add-multinight-breakfast (pull request #1705 )
...
The number of breakfasts and total sums weren’t correctly calculated. This fixes that.
Also changes display logic of when the ancillaries sections are shown
Approved-by: Bianca Widstam
2025-04-02 16:03:50 +00:00
Hrishikesh Vaipurkar
96fd0b73e4
feat: SW-2028 Fixed review comments
2025-04-01 08:18:22 +00:00
Niclas Edenvin
dff67ea568
Merged in feat/sw-1839-show-added-breakfast (pull request #1673 )
...
Feat/sw-1839 show added breakfast
* Fix wrong space character
* Change to correct CSS variable
* Show added breakfast ancillary in the "My add-ons" section
* Show breakfast info in room card
* Show breakfast in price details table
* Format price
Approved-by: Pontus Dreij
2025-03-31 13:43:39 +00:00
Pontus Dreij
b48053b8b4
Merged in feat(SW-2083)-missing-booking-codes-scenarios-my-stay (pull request #1680 )
...
Feat(SW-2083) missing booking codes scenarios my stay
* feat(SW-2083) Show points instead of reward nights
* feat(SW-2083) added support for cheque and voucher for totalPrice
Approved-by: Niclas Edenvin
2025-03-31 11:42:47 +00:00
Pontus Dreij
a8358de04a
Merged in feat(SW-2084)-disable-options-modify-my-stay (pull request #1662 )
...
feat(SW-2084) logic to disable Manage stay options
* feat(SW-2084) logic to disable Manage stay options
* feat(SW-2084) cleanup logic for checks
* feat(SW-2084) check if date has passed
* feat(SW-2084) change to datetimeIsInThePast
Approved-by: Niclas Edenvin
2025-03-31 07:44:46 +00:00
Niclas Edenvin
8eec465afa
Merged in feat/sw-1681-add-breakfast (pull request #1635 )
...
Feat/sw-1681 add breakfast
This implements the add breakfast flow
Approved-by: Pontus Dreij
2025-03-27 12:40:54 +00:00
Pontus Dreij
74c5b47319
Merged in feat/SW-1737-design-mystay-multiroom (pull request #1565 )
...
Feat/SW-1737 design mystay multiroom
* feat(SW-1737) Fixed member view of guest details
* feat(SW-1737) fix merge issues
* feat(SW-1737) Fixed price details
* feat(SW-1737) removed unused imports
* feat(SW-1737) removed true as statement
* feat(SW-1737) updated store handling
* feat(SW-1737) fixed bug showing double numbers
* feat(SW-1737) small design fixed
* feat(SW-1737) fixed rebase errors
* feat(SW-1737) fixed create booking error with dates
* feat(SW-1737) fixed view multiroom as singleroom
* feat(SW-1737) fixes for multiroom
* feat(SW-1737) fixed bookingsummary
* feat(SW-1737) dont hide modify dates
* feat(SW-1737) updated breakfast to handle number
* feat(SW-1737) Added red color if member rate
* feat(SW-1737) fix PR comments
* feat(SW-1737) updated member tiers svg
* feat(SW-1737) updated how to handle paymentMethodDescription
* feat(SW-1737) fixes after testing mystay
* feat(SW-1737) updated Room type to just use whats used
* feat(SW-1737) fixed access
* feat(SW-1737) refactor my stay after PR comments
* feat(SW-1737) fix roomNumber translation
* feat(SW-1737) removed log
Approved-by: Arvid Norlin
2025-03-24 09:30:10 +00:00
Bianca Widstam
3c1eee88b1
Merged in feat/SW-1370/Guarantee-my-stay-ancillaries (pull request #1545 )
...
Feat/SW-1370/Guarantee my stay ancillaries
* feat(SW-1370): guarantee for ancillaries
* feat(SW-1370): remove console log
* feat(SW-1370): add translations
* feat(SW-1370): small fix
* feat(SW-1370): fix must be guaranteed
* feat(SW-1370): fix logic and comments pr
* feat(SW-1370): fix comments pr
* feat(SW-1370): fix comments pr
* feat(SW-1370): add translation
* feat(SW-1370): add translation and fix pr comment
* feat(SW-1370): fix pr comment
* feat(SW-1370): fix encoding path refId issue
* feat(SW-1370): refactor AddAncillaryStore usage and introduce context provider
* feat(SW-1370): refactor
* feat(SW-1370): refactor ancillaries
* feat(SW-1370): fix merge
Approved-by: Simon.Emanuelsson
2025-03-21 07:29:04 +00:00
Anton Gunnarsson
80100e7631
Merged in monorepo-step-1 (pull request #1080 )
...
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
2025-02-26 10:36:17 +00:00