Linus Flood
b35ceafc00
Merged in feat/SW-2903-tokens (pull request #2508 )
...
feat(SW-2358): Use personal token if logged in
* feat(SW-2903): Use personal token if logged in
* Avoid encoding values in cookie
* Fix tests
Approved-by: Anton Gunnarsson
2025-07-08 11:24:31 +00:00
Hrishikesh Vaipurkar
d8f9376cd7
Merged in chore/SW-3145-move-button (pull request #2531 )
...
chore: SW-3145 Moved Button component from TempDS to Design System package
* chore: SW-3145 Moved Button compoenent from TempDS to Design System package
Approved-by: Anton Gunnarsson
2025-07-07 11:13:44 +00:00
Hrishikesh Vaipurkar
71c6f4cab3
Merged in chore/SW-3145-move-button (pull request #2527 )
...
chore: SW-3145 Moved tempdesign button to design-system
* chore: SW-3145 Moved tempdesign button to design-system
Approved-by: Anton Gunnarsson
2025-07-07 07:11:18 +00:00
Bianca Widstam
ef40d16a2f
Merged in fix/SW-2418-tracking-booking-cancellations (pull request #2500 )
...
fix(SW-2418): add duration and price to booking cancellations tracking
* fix(SW-2418): add duration and price to booking cancellations tracking
* fix(SW-2418): move sessionId and siteVersion inside the pageInfo object
Approved-by: Matilda Landström
2025-07-07 06:02:12 +00:00
Erik Tiekstra
903f419729
fix(SW-3081): Removed color option from hotel logos to avoid wrong colors
...
Approved-by: Matilda Landström
2025-07-04 11:40:09 +00:00
Anton Gunnarsson
923206ee4c
Merged in chore/sw-3145-move-subtitle (pull request #2516 )
...
chore(SW-3145): Move Title and Subtitle to design-system
* Move Title and Subtitle to design-system
* Fix export
Approved-by: Linus Flood
2025-07-04 06:22:28 +00:00
Anton Gunnarsson
7ff8fee20e
Merged in chore/sw-3145-move-skeleton-shimmer (pull request #2509 )
...
chore(SW-3145): Move SkeletonShimmer to design-system
* Move SkeletonShimmer to design-system
Approved-by: Joakim Jäderberg
2025-07-03 13:10:23 +00:00
Joakim Jäderberg
daf765f3d5
Merged in feature/wrap-logging (pull request #2511 )
...
Feature/wrap logging
* feat: change all logging to go through our own logger function so that we can control log levels
* move packages/trpc to using our own logger
* merge
Approved-by: Linus Flood
2025-07-03 12:37:04 +00:00
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
75a377b59e
Merged in chore/sw-3145-move-body (pull request #2505 )
...
chore(SW-3145): Move Body component to design-system
* Move Body component to design-system
Approved-by: Joakim Jäderberg
2025-07-03 08:04:36 +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
Chuma Mcphoy (We Ahead)
7eb8deb208
Merged in feat/LOY-232-DTMC-API-INTEGRATION (pull request #2454 )
...
feat(LOY-232): DTMC API Integration
* feat(LOY-232): DTMC API Integration
* feat(LOY-232): use employment data in team member card
* refactor(LOY-232): remove static data, return employment details in parsed response & fix tests
* refactor(LOY-232): improve DTMC API Linking error control flow + make res type safe
* fix(LOY-232): remove unused utils
* fix(LOY-232): error vars
Approved-by: Christian Andolf
Approved-by: Erik Tiekstra
2025-07-01 07:03:59 +00:00
Simon Emanuelsson
59f4a27cb1
feat: translate Voucher everywhere during booking flow
2025-06-30 10:57:00 +00:00
Christian Andolf
ff40ef72c4
chore: fix and migrate unit tests to vitest
2025-06-30 09:49:30 +02:00
Anton Gunnarsson
f0def99425
Merged in chore/remove-unused-env-vars (pull request #2463 )
...
chore: Remove unused env vars and feature toggles
* Remove unused env vars and feature toggles
Approved-by: Joakim Jäderberg
2025-06-30 07:48:05 +00:00
Anton Gunnarsson
01ca2b4897
Merged in feat/sw-2867-move-user-router-to-trpc-package (pull request #2428 )
...
Move user router to trpc package
* 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
* Remove translations from My Pages navigation trpc procedure
* Move navigation router to trpc package
* Move user router to trpc package
* Merge branch 'master' into feat/sw-2862-move-booking-router-to-trpc-package
* Merge branch 'feat/sw-2862-move-booking-router-to-trpc-package' into feat/sw-2865-move-navigation-router-to-trpc-package
* Merge branch 'master' into feat/sw-2865-move-navigation-router-to-trpc-package
* Merge branch 'master' into feat/sw-2865-move-navigation-router-to-trpc-package
* Merge branch 'master' into feat/sw-2865-move-navigation-router-to-trpc-package
* Merge branch 'feat/sw-2865-move-navigation-router-to-trpc-package' into feat/sw-2867-move-user-router-to-trpc-package
* Merge branch 'master' into feat/sw-2867-move-user-router-to-trpc-package
Approved-by: Linus Flood
2025-06-27 07:07:49 +00:00
Anton Gunnarsson
00bcdaaa28
Merged in feat/sw-2865-move-navigation-router-to-trpc-package (pull request #2427 )
...
feat(SW-2862): Move navigation router to trpc package
* 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
* Remove translations from My Pages navigation trpc procedure
* Move navigation router to trpc package
* Merge branch 'master' into feat/sw-2862-move-booking-router-to-trpc-package
* Merge branch 'feat/sw-2862-move-booking-router-to-trpc-package' into feat/sw-2865-move-navigation-router-to-trpc-package
* Merge branch 'master' into feat/sw-2865-move-navigation-router-to-trpc-package
* Merge branch 'master' into feat/sw-2865-move-navigation-router-to-trpc-package
* Merge branch 'master' into feat/sw-2865-move-navigation-router-to-trpc-package
Approved-by: Linus Flood
2025-06-27 06:54:49 +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
bbcabfa0ba
Merged in feat/sw-2864-move-hotels-router-to-trpc-package (pull request #2410 )
...
feat (SW-2864): Move booking router to trpc package
* 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
* Move booking router to trpc package
* Merge branch 'master' into feat/sw-2864-move-hotels-router-to-trpc-package
Approved-by: Linus Flood
2025-06-26 09:02:59 +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
Arvid Norlin
1802a391ec
Merged in fix/SW-2899 (pull request #2433 )
...
fix (SW-2899): correct VAT calculations
* fix (SW-2899): correct VAT calculations
* refactor: add calculateVat util
Approved-by: Christian Andolf
2025-06-25 11:56:30 +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
Tobias Johansson
8c4715dd24
Merged in feat/SW-2680-tracking-fixes (pull request #2373 )
...
fix(SW-2680): Added new properties used for tracking
* fix(SW-2680): Added new properties used for tracking
Approved-by: Michael Zetterberg
2025-06-25 08:56:37 +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
Simon.Emanuelsson
85acd3453d
Merged in feat/SW-1719-strikethrough-rates (pull request #2266 )
...
Feat/SW-1719 strikethrough rates
* feat(SW-1719): Strikethrough rate if logged in on regular rate cards
* feat(SW-1719): Strikethrough rate if logged in on rate summary
* feat(SW-1719): Strikethrough rate if logged in on mobile rate summary
* feat(SW-1719): Strikethrough rate if logged in on enter details
* feat(SW-1719): Strikethrough rate support for multiple rooms
* feat(SW-1719): booking receipt fixes on confirmation page
* feat(SW-1719): improve initial total price calculation
* feat: harmonize enter details total price to use one and the same function
Approved-by: Michael Zetterberg
2025-06-13 12:01:16 +00: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
Christian Andolf
6a0ce38f79
fix(LOY-260): use same phone component in signup and edit profile as enter details
...
remove old select from edit profile
update typography
2025-06-12 14:30:02 +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
Simon Emanuelsson
9580281421
fix: allow any type of phone number
2025-06-03 11:54:05 +00:00
Michael Zetterberg
17f1a59e97
fix: sync English labels
2025-06-03 12:02:49 +02:00
Christian Andolf
b3b3704c86
feat: update links default color to match design documents
2025-06-02 15:34:40 +02:00
Anton Gunnarsson
cbf9e7b7c2
Merged in chore/next15 (pull request #1999 )
...
chore (SW-834): Upgrade to Next 15
* wip: apply codemod and upgrade swc plugin
* wip: design-system to react 19, fix issues from async (search)params
* wip: fix remaining issues from codemod
serverClient is now async because context use headers()
getLang is now async because it uses headers()
* Minor cleanup
* Inline react-material-symbols package
Package is seemingly not maintained any more and doesn't support
React 19. This copies the package source into `design-system`,
makes the necessary changes for 19 and export it for others to use.
* Fix missing awaits
* Disable modal exit animations
Enabling modal exit animations via isExiting prop is causing
modals to be rendered in "hidden" state and never unmount.
Seems to be an issue with react-aria-components,
see https://github.com/adobe/react-spectrum/issues/7563 .
Can probably be fixed by rewriting to a solution similar to
https://react-spectrum.adobe.com/react-aria/examples/framer-modal-sheet.html
* Remove unstable cache implementation and use in memory cache locally
* Fix ref type in SelectFilter
* Use cloneElement to add key prop to element
Approved-by: Linus Flood
2025-06-02 11:11:50 +00: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
Hrishikesh Vaipurkar
e2c1b066be
Merged in feat/SW-2407-mystay-tc-to-modal (pull request #2082 )
...
Feat/SW-2407 mystay tc to modal
* feat: SW-2407 Moved terms in modal view for my stay
* feat: SW-2407 Updated modal to show terms for reward nights and corporate cheque stay
* feat: SW-2407 Optimised code
* feat: SW-2407 Optimised code
Approved-by: Niclas Edenvin
2025-05-27 07:00:02 +00:00
Tobias Johansson
f77202f58b
Merged in fix/SW-2249-missing-currency (pull request #2159 )
...
fix(SW-2249): Added default currency to summary and price details modal
* fix(SW-2249): Added default currency to summary and price details modal
Approved-by: Hrishikesh Vaipurkar
2025-05-26 06:51:57 +00:00
Bianca Widstam
fed24b9012
Merged in SW-2728-mystay-totalpoints (pull request #2201 )
...
fix(SW-2728): add totalpoints to mystay
* fix(2728): add totalpoints to mystay
* fix(SW-2728): add totalPoints everywhere
Approved-by: Anton Gunnarsson
2025-05-23 13:46:27 +00:00
Anton Gunnarsson
f46bc8f920
Update @hookform/resolvers
...
In v5 the zod resolver will automatically infer the type for `useForm`.
It's not recommended to manually specify types.
See https://github.com/react-hook-form/resolvers/releases/tag/v5.0.0
2025-05-22 14:00:39 +02:00
Bianca Widstam
c4229c2dd2
Merged in fix/SW-2853-tracking-breakfast-ancillaries (pull request #2188 )
...
fix(SW-2853): tracking for breakfast ancillaries
* fix(SW-2853): tracking for breakfast ancillaries
* fix(SW-2853): viewAncillary event fix for breakfast
* fix(SW-2853): pr comment spread room facilities
Approved-by: Tobias Johansson
2025-05-22 10:05:54 +00:00
Linus Flood
2ec309354e
Merged in fix/my-stay-webview-2 (pull request #2191 )
...
fix: webview - mystay - check if we have webviewToken
* fix: webview - mystay - check if we have webviewToken
* Cleanup
Approved-by: Joakim Jäderberg
2025-05-22 08:38:20 +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
Michael Zetterberg
f3936f41d8
Merged in fix/label-sync (pull request #2163 )
...
fix: english label sync
* fix: english label sync
* fix: sync from Lokalise
Approved-by: Linus Flood
2025-05-21 04:11:22 +00:00
Erik Tiekstra
7fe25f7eca
fix(SW-2376): Vertically centered previous/next buttons inside carousel cards
...
Approved-by: Matilda Landström
2025-05-19 09:13:23 +00:00
Hrishikesh Vaipurkar
2cc5574f52
Merged in feat/SW-2340-aa-tracking-my-stay-pageview- (pull request #2133 )
...
feat: SW-2340 Implemented tracking on my-stay, webview my-stay and receipt page
* feat: SW-2340 Implemented tracking on my-stay, webview my-stay and receipt page
* feat: SW-2340 Updated webview tracking
* feat: SW-2340 Updated receipt tracking
Approved-by: Linus Flood
2025-05-19 08:05:43 +00:00
Linus Flood
96821c7a6f
Merged in feat/my-stay-masking (pull request #2116 )
...
Mask values on my-stay and receipt pages SW-2788
* Mask values on my-stay and receipt pages
Approved-by: Joakim Jäderberg
2025-05-16 09:30:04 +00:00
Hrishikesh Vaipurkar
fa7d94093e
Merged in feat/SW-2612-mystay-breakfast-buffet-u (pull request #2059 )
...
Feat: SW-2612 Updated breakfast ancillary UI and Optimised code
* Feat: SW-2612 Updated breakfast ancillary UI and Optimised code
* feat: SW-2612 Updated UI as per figma
* feat: SW-2612 Optimised code
* feat: SW-2612 Optimised code
Approved-by: Tobias Johansson
2025-05-16 08:32:54 +00:00