Anton Gunnarsson
5f8ac8cdeb
Merged in feat/sw-2861-move-autocomplete-router-to-trpc-package (pull request #2417 )
...
feat(SW-2861): Move autocomplete router 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
* Move partners router to trpc package
* Move autocomplete router to trpc package
* Merge branch 'master' into feat/sw-2861-move-autocomplete-router-to-trpc-package
Approved-by: Linus Flood
2025-06-26 12:40:45 +00:00
Anton Gunnarsson
f9c719ff4b
Merged in feat/sw-2866-move-partners-router-to-trpc-package (pull request #2414 )
...
feat(sw-2866): Move partners router 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
* Move partners router to trpc package
* Merge branch 'master' into feat/sw-2866-move-partners-router-to-trpc-package
Approved-by: Linus Flood
2025-06-26 09:44:13 +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
Christian Andolf
53447794dd
Merged in fix/LOY-281-make-entire-select-filter-box-clickable (pull request #2424 )
...
fix(LOY-281): make entire select filter box clickable
Approved-by: Michael Zetterberg
2025-06-25 14:31:35 +00:00
Bianca Widstam
169d7fa7ea
Merged in fix/SW-2991-logged-in-ui-campaign-rate-card (pull request #2394 )
...
fix(SW-2991): new rate card for logged in users
* fix(SW-2991): new rate card for logged in users
Approved-by: Simon.Emanuelsson
2025-06-25 14:18:39 +00:00
Christian Andolf
7dad94a046
fix(LOY-281): make entire select filter box clickable
2025-06-25 14:42:25 +02:00
Christian Andolf
bb459937a6
Merged in fix/pixel-push-input-select-label (pull request #2369 )
...
fix: make use of design system label component in select
Approved-by: Arvid Norlin
2025-06-23 07:20:49 +00:00
Erik Tiekstra
891108791c
feat(SW-2264): Added campaign overview page
...
Approved-by: Matilda Landström
2025-06-19 15:19:56 +00:00
Christian Andolf
c476f29512
fix: use exported variable for input height
2025-06-19 12:44:19 +02:00
Christian Andolf
603c7dd2bf
fix: make use of design system label component in select
...
minor tweaks to make sure input and select behaves consistently
2025-06-19 12:38:30 +02:00
Erik Tiekstra
af92f7183c
feat(SW-2278): Added hotel listing to campaign page
...
Approved-by: Matilda Landström
2025-06-19 09:36:28 +00:00
Matilda Landström
61317e0c94
Merged in feat/SW-2266-campaign-hero (pull request #2344 )
...
Feat/SW-2266 campaign hero
Approved-by: Erik Tiekstra
2025-06-18 13:35:38 +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
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
Anton Gunnarsson
e1ede52014
Merged in fix/common-package-fix (pull request #2355 )
...
fix: Tiny fixes in common package
* Fix self-referencing and circular imports
* Fix env isServer
Approved-by: Joakim Jäderberg
2025-06-13 11:36:40 +00:00
Christian Andolf
ce399e696d
fix: consistent height and focus states
2025-06-13 13:07:39 +02:00
Christian Andolf
73884aa428
fix: restore old select selectors for label to still support the temp design select
...
deprecated the temp design select in favor of the new one
2025-06-13 13:07:38 +02:00
Christian Andolf
7ee711bb43
fix: use typography variables instead
...
explicit since composing is not allowed in nested selectors
2025-06-13 13:07:38 +02:00
Christian Andolf
f6be4f275e
refactor: move input and label to design system
...
correct variables according to design system spec
various cleanup
2025-06-13 13:07:38 +02:00
Anton Gunnarsson
0788a57adc
Merged in feat/add-no-relative-packages-rule (pull request #2356 )
...
Add eslint rule no-relative-packages
* Add eslint rule no-relative-packages
Approved-by: Christian Andolf
2025-06-13 10:36:11 +00:00
Christian Andolf
c545ed2fe2
Merged in refactor/design-system-divider (pull request #2354 )
...
refactor: move divider to design system
Approved-by: Arvid Norlin
2025-06-13 09:38:10 +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
Joakim Jäderberg
180a100140
Merged in fix/SW-2964-hide-booking-code-switcher (pull request #2345 )
...
fix: as a temporary fix hide booking code switcher and add a way to do a search without bookingcode
* fix: as a temporary fix hide booking code switcher and add a way to do a search without bookingcode
Approved-by: Linus Flood
2025-06-13 07:07:22 +00:00
Christian Andolf
8c6f659f8f
Merged in fix/LOY-251-numeric-inputmode (pull request #2346 )
...
fix(LOY-251): numeric inputmode on inputs for mobile numeric keyboard
Approved-by: Chuma Mcphoy (We Ahead)
2025-06-12 12:39:24 +00:00
Christian Andolf
7cd46bbdd6
fix: add private to package to prevent publishing
2025-06-12 11:19:17 +02:00
Christian Andolf
920b8124de
fix: add type module to common package to fix commonjs parsing warning
2025-06-12 11:16:40 +02:00
Christian Andolf
d01db033ae
fix(LOY-251): numeric inputmode on inputs for mobile numeric keyboard
2025-06-12 11:10:27 +02:00
Anton Gunnarsson
048a477e52
Merged in feat/common-package (pull request #2333 )
...
feat: Add common package
* Add isEdge, safeTry and dataCache to new common package
* Add eslint and move prettier config
* Fix yarn lock
* Clean up tests
* Add lint-staged config to common
* Add missing dependencies
Approved-by: Joakim Jäderberg
2025-06-11 13:08:39 +00:00
Christian Andolf
f292cc7922
fix(LOY-128): add rounded filter chip variant
2025-06-11 14:25:52 +02:00
Linus Flood
9eb15e232b
Merged in feat/sw-2998-font-optimization (pull request #2323 )
...
feat(SW-2998) - Optimize font loading
* feat(SW-2998) - Optimize font loading
* display swap on fonts
Approved-by: Anton Gunnarsson
2025-06-10 12:21:55 +00:00
Matilda Landström
f45782f423
Merged in feat/SW-2851-the-doc-logo (pull request #2293 )
...
Feat/SW-2851: Add The Dock Signature hotel logo and marker
* feat(SW-2851): Add The Doc as signature hotel
* chore(SW-2851): add logo
* chore(SW-2851): add marker
Approved-by: Erik Tiekstra
2025-06-05 07:20:17 +00:00
Christian Andolf
45d1155054
fix(LOY-252): add height to input elements to make iOS scroll to focused inputs
...
fixed incorrect html with multiple interactive elements inside label
fixed inconsistent placeholder attribute handling between browsers
removed active state so not to prevent iOS from focusing inputs
2025-06-04 13:37:15 +02:00
Christian Andolf
8dbd36bdbd
Merged in fix/remove-filtering-date-country (pull request #2278 )
...
fix: remove filtering from date and country select for better mobile experience
Approved-by: Linus Flood
Approved-by: Chuma Mcphoy (We Ahead)
2025-06-04 11:36:17 +00:00
Christian Andolf
afd3a7d9ca
fix: date and country selects now still uses the filtering in desktop
2025-06-04 12:00:49 +02:00
Christian Andolf
0b339e52a6
fix(LOY-245): close dropdown when selecting value
2025-06-04 09:22:53 +02:00
Anton Gunnarsson
dd4ef527df
Merged in chore/eslint9 (pull request #2029 )
...
chore: Update to ESLint 9
* wip: apply codemod and upgrade swc plugin
* Update eslint to 9 in scandic-web
apply code mod to config
fix existing lint issues
* Remove uneccessary fixupConfigRules
* Update eslint to 9 in design-system
* Add lint turbo dependency
* Move redis-api to eslint and prettier instead of biome
* Simplify eslint configs
* Clean up
* Apply linting
Approved-by: Linus Flood
2025-06-03 14:26:44 +00:00
Anton Gunnarsson
91278feb40
Merged in fix/popover-with-design-system-trigger-not-showing (pull request #2276 )
...
Fix popovers using triggers from design-system not working
* Fix peer dependency in design-system package
Approved-by: Joakim Jäderberg
Approved-by: Linus Flood
2025-06-03 12:53:33 +00:00
Arvid Norlin
79e669020a
wip: new PhoneCountryCode Select
2025-06-03 11:54:04 +00:00
Christian Andolf
13136509b6
fix: replace old spacing variables with new matching ones
2025-06-02 15:34:42 +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
Michael Zetterberg
32cc0cbe88
fix: preselect combobox on focus
2025-05-27 07:46:53 +00:00
Christian Andolf
502ffa449d
Merged in fix/SW-2170-outline-for-chip (pull request #2199 )
...
fix(SW-2170): add outline for chip for keyboard focus
Approved-by: Erik Tiekstra
2025-05-23 07:19:27 +00:00
Matilda Landström
14ca1775d8
Merged in fix/SW-2796-ice-machine-icon (pull request #2198 )
...
fix(SW-2796): update ice machine icon
* fix(SW-2796): update ice machine icon
Approved-by: Christian Andolf
Approved-by: Erik Tiekstra
2025-05-23 07:03:36 +00:00
Christian Andolf
16efce3a43
fix(SW-2170): add outline for chip for keyboard focus
...
add nonmodal prop to booking code rates dropdown to ensure booking widgets stays sticky when opened
2025-05-22 16:28:58 +02:00
Anton Gunnarsson
48b6774675
Update framer-motion
2025-05-22 14:00:39 +02:00
Anton Gunnarsson
7e098d291c
Remove material-symbols from design-system
2025-05-22 14:00:39 +02:00
Anton Gunnarsson
4f9c69628b
Update minor versions in design-system
2025-05-22 14:00:39 +02:00
Anton Gunnarsson
a2e43844df
Update patch versions in design-system
2025-05-22 14:00:39 +02:00