Hrishikesh Vaipurkar
1804f7b7cd
Merged in chore/SW-3356-move-textarea-from-tempds-to-ds (pull request #2745 )
...
chore(SW-3356): Moved TextArea to design system
* chore(SW-3356): Moved TextArea to design system
Approved-by: Joakim Jäderberg
2025-09-02 07:39:20 +00:00
Bianca Widstam
75ffd5d10b
Merged in fix/SW-2188-disabled-state (pull request #2597 )
...
fix(SW-2188): readonly for input fields
* fix(SW-2188): readonly for input fields
Approved-by: Anton Gunnarsson
2025-08-06 07:14:28 +00:00
Bianca Widstam
5f2e215508
Merged in fix/SW-2188-disable-fields-logged-in-user-enter-details (pull request #2595 )
...
fix(SW-2188): disable enter details fields when logged in
* fix(SW-2188): disable enter details fields when logged in
Approved-by: Anton Gunnarsson
2025-08-05 11:54:41 +00:00
Hrishikesh Vaipurkar
5ff4234552
Merged in chore/SW-3145-move-date-to-design-system (pull request #2556 )
...
feat: SW-3145 Moved date component to design system
* chore: SW-3145 Moved date component to design system
Approved-by: Anton Gunnarsson
Approved-by: Matilda Landström
2025-07-28 09:05:25 +00:00
Hrishikesh Vaipurkar
42ab6e58b3
Merged in chore/SW-3145-move-phone (pull request #2549 )
...
chore/SW-3145 Moved Phone to design system
* chore/SW-3145 Moved Phone to design system
* chore: SW-3145 Moved phone and removed intl direct dependency
Approved-by: Anton Gunnarsson
2025-07-28 08:28:07 +00:00
Hrishikesh Vaipurkar
2f72a0437b
Merged in chore/SW-3145-move-country (pull request #2545 )
...
chore: SW-3145 Moved country into design system
* chore: SW-3145 Moved country into design system
Approved-by: Anton Gunnarsson
2025-07-10 12:20:49 +00:00
Hrishikesh Vaipurkar
8ae251635d
Merged in chore/SW-3145-move-radio-card (pull request #2533 )
...
chore: SW-3145 Moved RadioCard to design system
* chore: SW-3145 Moved RadioCard to design system
* chore: SW-3145 Optimized code
* chore: SW-3145 Optimized code
Approved-by: Anton Gunnarsson
2025-07-08 08:25:00 +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
Anton Gunnarsson
d7981eae42
Merged in chore/sw-3145-move-switch (pull request #2521 )
...
Move Switch to design-system
* Move Switch to design-system
* Fix Icon import
* Fix Caption import...
Approved-by: Joakim Jäderberg
2025-07-04 08:33:04 +00:00
Anton Gunnarsson
9e1cc66f95
Merged in chore/sw-3145-move-deprecated-select (pull request #2518 )
...
chore(SW-3145): Move DeprecatedSelect to design-system
* Move DeprecatedSelect to design-system
Approved-by: Linus Flood
2025-07-04 06:34:18 +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
Tobias Johansson
f0701d6e20
Merged in fix/SW-3111-mismatch-password-rules (pull request #2482 )
...
fix(SW-3111): Added test for passwordValidator and updated pw validation
* fix(SW-3111): Added test for passwordValidator and updated pw validation
* fix: make sure regex is matching Curity
* Added error message to input field and changed message
* Fixed text
Approved-by: Christian Andolf
2025-07-01 05:51:31 +00:00
Christian Andolf
ff40ef72c4
chore: fix and migrate unit tests to vitest
2025-06-30 09:49:30 +02: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
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
Simon Emanuelsson
64b3bd71dc
feat: add translations for countrycode selector (phone)
2025-06-25 11:15:52 +00:00
Arvid Norlin
438de66a1f
Merged in feat/SW-3076 (pull request #2416 )
...
feat(SW-3076: change phone country code on country select)
* feat(SW-3076: change phone country code on country select)
Approved-by: Simon.Emanuelsson
2025-06-24 09:47:18 +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
Hrishikesh Vaipurkar
698c424f21
Merged in fix/SW-2950-validation-rule-for-zipcode- (pull request #2360 )
...
Fix: SW-2950 Updated zip code validation rule with regex
* Fix: SW-2950 Updated zip code validation rule with regex
* fix: SW-2950 Removed non-english characters from postal code regex
Approved-by: Christian Andolf
2025-06-16 08:32:46 +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
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
Christian Andolf
8b5e8aecae
Merged in fix/phone-country-code-fix (pull request #2357 )
...
fix: remove country code from prefilled phone input
Approved-by: Simon.Emanuelsson
2025-06-13 11:01:40 +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
Christian Andolf
9da986f554
fix: extrapolate phone number parsing for re-usage in edit profile
...
move error messages to message handler
2025-06-13 10:46:15 +02:00
Bianca Widstam
5b90e15746
Merged in fix/SW-2626-error-message-multiroom-reward (pull request #2299 )
...
fix(SW-2626): add multiroom reward error message for mobile
* fix(SW-2626): add multiroom reward error message for mobile
* fix(SW-2626): error message to red color
* fix(SW-2626): fix errorContainer
* fix(SW-2626): fix button fullwidth
* fix(SW-2626): fix button fullwidth
* fix(SW-2626): add design
* fix(SW-2626): add new colors for checkbox
* fix(SW-2626): new color for input
* fix(SW-2626): fix pr comment
* fix(SW-2626): final ui for desktop and mobile
Approved-by: Hrishikesh Vaipurkar
2025-06-12 12:51:37 +00:00
Christian Andolf
2dd07eb6b8
Merged in fix/LOY-260-use-same-phone-component (pull request #2336 )
...
fix(LOY-260): use same phone component in signup and edit profile as enter details
Approved-by: Chuma Mcphoy (We Ahead)
2025-06-12 12:40:36 +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
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
Tobias Johansson
65e2ee47a5
Merged in feat/SW-1684-wrong-font-countrycode-dropdown (pull request #2331 )
...
fix(SW-1684): set font family phone input dropdown
* fix: set font family phone input dropdown
* fix: phone input styling
Approved-by: Christian Andolf
2025-06-12 10:51:32 +00:00
Christian Andolf
d01db033ae
fix(LOY-251): numeric inputmode on inputs for mobile numeric keyboard
2025-06-12 11:10:27 +02:00
Christian Andolf
5d89f6c465
fix: update password and deprecated phone inputs to be consistent with other existing inputs in signup
2025-06-05 10:33:10 +02:00
Christian Andolf
752a93012e
fix: more input fixes for various states: placeholder shown, focus, value, error, disabled
2025-06-05 09:57:33 +02: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
afd3a7d9ca
fix: date and country selects now still uses the filtering in desktop
2025-06-04 12:00:49 +02:00
Christian Andolf
7497203df2
fix: remove filtering from date and country select for better mobile experience
2025-06-04 09:19:35 +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
Simon Emanuelsson
9580281421
fix: allow any type of phone number
2025-06-03 11:54:05 +00:00
Arvid Norlin
79e669020a
wip: new PhoneCountryCode Select
2025-06-03 11:54:04 +00:00
Christian Andolf
5877a9d228
fix: open country select dropdown on focus
2025-06-03 11:56:26 +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
Simon Emanuelsson
39855d3c8a
fix: trigger memberPrice modal for membership number too
2025-05-27 10:22:31 +02:00
Anton Gunnarsson
41aa4f26ad
Update libphonenumber-js
2025-05-22 14:00:38 +02: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