Anton Gunnarsson
e5f8394f50
Merged in chore/move-checkbox-component (pull request #2501 )
...
chore(SW-3145): Move checkbox component to design-system
* Inline type
* Remove error handling from Checkbox internals
* Move Form/Checkbox
* Fix self referencing imports
Approved-by: Joakim Jäderberg
2025-07-03 08:37:01 +00:00
Anton Gunnarsson
a7ac79e429
Merged in chore/sw-3145-move-caption (pull request #2503 )
...
chore(SW-3145): Move Caption to design-system
* Move Caption to design-system
* Mark Caption as deprecated
Approved-by: Linus Flood
Approved-by: Joakim Jäderberg
2025-07-03 07:48:24 +00:00
Anton Gunnarsson
be25be7bb5
Merged in feat/sw-3125-move-client-trpc-setup (pull request #2493 )
...
feat(SW-3125): Move client trpc setup
* Move client trpc to package
* Client setup in partner-sas
* Add todo
Approved-by: Linus Flood
2025-07-01 12:41:28 +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
Tobias Johansson
8272327993
Merged in fix/SW-2801-correct-date-formats (pull request #2400 )
...
fix(SW-2801): Added lang specific date formats
* fix(SW-2801): Added lang specific date formats
* fix: wrong type import
Approved-by: Michael Zetterberg
2025-06-25 11:12:28 +00:00
Linus Flood
7a56d21a3e
Merged in feat/SW-3050-webviews (pull request #2429 )
...
Feat/SW-3050 webviews
Approved-by: Anton Gunnarsson
2025-06-25 07:44:33 +00:00
Bianca Widstam
5c3b30ea93
Merged in fix/SW-3020-paymentInfo-tracking (pull request #2403 )
...
fix(SW-3020): add correct paymentInfo in booking flow and ancillary flow
* fix(SW-3020): add correct paymentInfo in booking flow and ancillary flow
* fix(SW-3020): fix pr comments
Approved-by: Tobias Johansson
2025-06-24 13:38:30 +00:00
Anton Gunnarsson
846fd904a6
Merged in feat/sw-2859-set-up-shared-trpc-package (pull request #2319 )
...
feat(SW-2859): Create trpc package
* Add isEdge, safeTry and dataCache to new common package
* Add eslint and move prettier config
* Clean up tests
* Create trpc package and move initialization
* Move errors and a few procedures
* Move telemetry to common package
* Move tokenManager to common package
* Add Sentry to procedures
* Clean up procedures
* Fix self-referencing imports
* 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
* Fix lang imports
Approved-by: Linus Flood
2025-06-18 12:14:20 +00:00
Tobias Johansson
002d5f9c68
Merged in fix/SW-3078-wrong-dates-time-zones (pull request #2388 )
...
fix(SW-3078): change to string instead of Date in Zod schema
* fix(SW-3078): change to string instead of Date in Zod schema
Approved-by: Michael Zetterberg
Approved-by: Linus Flood
2025-06-18 10:55:05 +00:00
Christian Andolf
6ca79d6bab
chore: replace old primary background token with new one
2025-06-17 15:37:26 +02:00
Christian Andolf
9551a629fa
refactor: move divider to design system
...
remove not used variants and duplicate colors
2025-06-13 11:27:50 +02:00
Hrishikesh Vaipurkar
e8408b4fb2
Merged in fix/SW-2555-bookings-voucher-unable-date (pull request #2305 )
...
Fix: SW-2555 Fixed change date for voucher bookings
* Fix: SW-2555 Fixed change date for voucher bookings
Approved-by: Tobias Johansson
2025-06-09 12:27:10 +00:00
Christian Andolf
b3b3704c86
feat: update links default color to match design documents
2025-06-02 15:34:40 +02:00
Anton Gunnarsson
7e97b74c18
Merged in chore/remove-unused-code (pull request #2229 )
...
Remove unused code
* Remove unused scandic-web files
* Remove unused exports
Approved-by: Joakim Jäderberg
2025-05-30 12:41:18 +00:00
Linus Flood
ad5ec80645
Merged in feat/sw-2855-urls (pull request #2177 )
...
feat: sw-2855 urls
* feat: sw-2855 urls
Approved-by: Joakim Jäderberg
2025-05-21 09:11:02 +00:00
Simon Emanuelsson
ca29237f2e
feat: add no breakfast message to price details modal and to conf page receipt
2025-05-14 11:12:24 +02:00
Simon Emanuelsson
2adb0e92eb
fix: re-add tracking my-stay
2025-05-09 14:53:51 +00:00
Bianca Widstam
343caed40c
Merged in fix/SW-2402-hide-gla-rewardNight (pull request #1983 )
...
fix(SW-2042): hide guarantee late arrival on my stay for rewardNight
* fix(SW-2042): hide guarantee late arrival on my stay for rewardNight
Approved-by: Niclas Edenvin
2025-05-06 14:16:34 +00:00
Michael Zetterberg
1679e1d65d
feat(SW-2622): pass refId to guarantee booking
2025-05-06 15:13:49 +02:00
Niclas Edenvin
e0fe5ff0d5
fix(SW-2614): send language to API
...
We were missing the language param on some endpoints. We are still
missing it on some, but I left those without when we don't need it, e.g.
when only caring about the IDs in the response.
2025-05-06 10:17:05 +00:00
Michael Zetterberg
b910b6a313
feat(SW-2116): Use refId instead of confirmationNumber
2025-05-05 12:26:37 +00:00
Christian Andolf
d6b70edfa3
chore: replace old border-radius variables with new tokens
2025-05-05 11:11:37 +02:00
Simon Emanuelsson
db289b80b1
feat: refactor NewDates, clean up legacy code
...
This reverts commit 0c7836fa59 .
2025-05-03 21:45:45 +02:00
Niclas Edenvin
c6a0b4ee30
Merged in fix/terms-and-conditions-link (pull request #1933 )
...
Don't check checkbox when clicking link inside the label
* Don't check checkbox when clicking link inside the label
2025-05-03 14:51:06 +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
Niclas Edenvin
d7708b682a
Merged in fix/sw-2543-toc-text (pull request #1921 )
...
fix(SW-2543): Change terms and conditions text for flex
* fix(SW-2543): Change terms and conditions text for flex
Approved-by: Michael Zetterberg
2025-05-02 07:45:37 +00:00
Christian Andolf
43bdd80dff
Merged in fix/SW-2508-new-api-cancel-booking-contract (pull request #1906 )
...
Ending up doing some extra things:
Consolidated booking queries: We had both cancel and cancelMany, but functionally they’re the same, only one accepts an array and the other doesn’t. Didn’t see much point in keeping the single cancel as it wasn’t used anywhere. Thus, I could rename cancelMany to be the one stop method.
remove method for API now properly supports body so we don’t have to hijack the typing in certain places
* fix(SW-2508): now sending additional params to cancel api for new contract
Approved-by: Niclas Edenvin
2025-05-02 07:37:23 +00:00
Michael Zetterberg
efb7219b6d
fix: copy fixes for English labels
2025-04-30 09:37:54 +00:00
Joakim Jäderberg
c1505ce50e
Merged in feature/warmup (pull request #1887 )
...
* unified warmup function
Approved-by: Linus Flood
2025-04-29 06:18:14 +00:00
Bianca Widstam
bfc25453c7
Merged in fix/SW-1415-my-stay-tracking-hotelId (pull request #1880 )
...
fix(SW-1415): add hotelId in tracking for my stay
* fix(SW-1415): add hotelId in tracking for my stay
* fix: remove toast if cancel guarantee
* fix(SW-1415): rebase master
* fix(SW-1415): fix comment shorthand hotelId
Approved-by: Christian Andolf
2025-04-28 13:20:18 +00:00
Simon Emanuelsson
ec087a3d15
feat: refactor of my stay
2025-04-28 12:40:52 +00:00
Michael Zetterberg
440e1f92df
feat(SW-706): make eslint rule 'formatjs/no-literal-string-in-jsx' pass
2025-04-14 11:30:06 +00:00
Simon Emanuelsson
afb37d0cc5
feat: bedtypes is selectable again
2025-04-12 08:32:42 +00:00
Hrishikesh Vaipurkar
73cb423c95
Merged in feat/SW-2078-update-confirmation-page-vouchers (pull request #1731 )
...
Feat/SW-2078 update confirmation page vouchers and Corp Cheques rate
* feat: SW-2078 Tablet bookingCode ref forward issue fix
(cherry picked from commit 16a6a00fd99b6b6220a98ad74de062d67d35e1c0)
* feat: SW-2078 Display Vouchers and Cheques prices on confirmation page
(cherry picked from commit a76494de497a7d5e7641cb0036bd7055acf875c1)
* feat: SW-2078 Rebase issue fix
* feat: SW-2079 Updated rate title in terms modal
* feat: SW-2078 Optimized code
* feat: SW-2078 Removed extra tags
Approved-by: Christian Andolf
2025-04-08 07:27:40 +00:00
Matilda Landström
1239f0c662
Merged in feat/SW-1711-SW-2077-icons (pull request #1709 )
...
Fix(SW-1711)/(SW-2077): Export icons individually
* fix(SW-1711): export icons individually
Approved-by: Michael Zetterberg
Approved-by: Erik Tiekstra
2025-04-07 07:25:25 +00:00
Simon Emanuelsson
2abd4c5c12
fix: display modify dates for already guaranteed changeable rates
2025-04-04 08:46:47 +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
Matilda Landström
5de2a993a7
Merged in feat/SW-1711-switch-icons (pull request #1558 )
...
Switches out all the old icons to new ones, and moves them to the design system. The new icons are of three different types: Materialise Symbol, Nucleo, and Customized. Also adds further mapping between facilities/amenities and icons.
Approved-by: Michael Zetterberg
Approved-by: Erik Tiekstra
2025-03-27 09:42:52 +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
Pontus Dreij
fb321cdb13
Merged in feat(SW-1274)-modify-date-my-stay (pull request #1528 )
...
Feat(SW-1274) modify date my stay
* feat(SW-1676): Modify guest details step 1
* feat(SW-1676) Integration to api to update guest details
* feat(SW-1676) Reuse of old modal
* feat(SW-1676) updated modify guest
* feat(SW-1676) cleanup
* feat(SW-1274) modify stay modal and datepicker
* feat(SW-1274) DatePicker from modify dates
* feat(SW-1274) Modify dates fixes and merge conflicts
* feat(SW-1274) handle modify for multiroom
* feat(SW-1274) update manage stay
* feat(SW-1274) fixed some comments
* feat(SW-1274) use Modal instead
* feat(SW-1274) fixed formatChildBedPreferences
* feat(SW-1274) removed any as prop
* feat(SW-1274) fix rebase conflicts
* feat(SW-1274) fix flicker on modify modal
* feat(SW-1274) CalendarButton
* feat(SW-1274) fixed gap variable
* feat(SW-1274) simplified code
* feat(SW-1274) Split up DatePicker on mode
* feat(SW-1274) Updated file structure for datepicker
Approved-by: Arvid Norlin
2025-03-19 13:11:03 +00:00
Bianca Widstam
abd401c4f4
Merged in feat/SW-1368-1369-Guarantee-late-arrival (pull request #1512 )
...
Feat/SW-1368 1369 Guarantee late arrival
* feat(SW-1368-SW-1369): guarantee late arrival for confirmation page and my stay
* feat(SW-1368-SW-1369): guarantee late arrival updated design
* feat(SW-1368-SW-1369): add translations
* feat(SW-1368-SW-1369): add translations
* feat(SW-1368-SW-1369): fix merge with master
* feat(SW-1368-SW-1369): add translations
* feat(SW-1368-SW-1369): add redirect with refId
* feat(SW-1368-SW-1369): if booking completed redirect to confirmation page
* feat(SW-1368-SW-1369): fix comments pr
* feat(SW-1368-SW-1369): fix comments pr
* feat(SW-1368-SW-1369): fix rebase master
* feat(SW-1368-SW-1369): fix duplicate flex rate check
* feat(SW-1368-SW-1369): if any room is flex, card must be used
* feat(SW-1368-SW-1369): move callback route
* feat(SW-1368-SW-1369): top align checkbox
* feat(SW-1368-SW-1369): top align checkbox
Approved-by: Tobias Johansson
Approved-by: Niclas Edenvin
2025-03-14 10:43:14 +00:00
Michael Zetterberg
91c36ee41c
fix: clean up dictionaries
2025-03-13 08:29:48 +00:00
Pontus Dreij
2509794d0c
Merged in feat/SW-1676-modify-contact-details-my-stay-anonymous (pull request #1468 )
...
Feat/SW-1676 modify contact details my stay anonymous
* feat(SW-1676): Modify guest details step 1
* feat(SW-1676) Integration to api to update guest details
* feat(SW-1676) Reuse of old modal
* feat(SW-1676) updated modify guest
* feat(SW-1676) cleanup
* feat(SW-1676) updated myStayReturnRoute to sessionStorage
Approved-by: Niclas Edenvin
2025-03-07 13:41:25 +00:00
Hrishikesh Vaipurkar
c88b178392
feat: SW-963 Optimized code
2025-03-06 12:41:11 +00:00
Bianca Widstam
4fc25e42b5
Merged in feat/SW-1648-booking-code-my-stay (pull request #1447 )
...
feat(SW-1648): add booking code on my stay
* feat(SW-1648): add booking code on my stay
Approved-by: Niclas Edenvin
2025-02-28 14:09:23 +00:00
Pontus Dreij
69139c5230
Merged in feat(SW-1279)-mystay-multirum-cancelling (pull request #1443 )
...
Feat(SW-1279) mystay multirum cancelling
* feat(SW-1279) Cancelation text if non-user on room 2-4
* feat(SW-1279) cancel mystay multiroom
* feat(SW-1279): Added cancellation for multiroom on mystay
Approved-by: Niclas Edenvin
2025-02-28 07:17:25 +00:00
Pontus Dreij
31a536b1f7
Merged in feat(SW-1722)-mystay-multiroom-view (pull request #1396 )
...
Feat(SW-1722) mystay multiroom view
* feat(SW-1722) View all rooms on my stay
* feat(sW-1722) Show linked reservation
* feat(SW-1722) merged monorepo
* feat(SW-1722) yarn install
* feat(SW-1722) removed unused data
* feat(SW-1722) Streaming data from the server to the client
Approved-by: Niclas Edenvin
2025-02-27 07:24:56 +00:00