Commit Graph

30 Commits

Author SHA1 Message Date
Bianca Widstam c473bbc8b0 Merged in fix/BOOK-323-enter-details-scroll-error (pull request #2986)
Fix/BOOK-323 enter details scroll error

* fix(BOOK-323): scroll to invalid element on submit on enter details

* fix(BOOK-323): update error message design

* fix(BOOK-323): clean up

* fix(BOOK-323): scroll to fields in room in right order

* fix(BOOK-323): add id to translations

* fix(BOOK-323): remove undefined

* fix(BOOK-323): fix submitting state

* fix(BOOK-323): use ref in multiroom for scrolling to right element, add membershipNo

* fix(BOOK-323): fix invalid border country

* fix(BOOK-323): use error message component

* fix(BOOK-323): fix invalid focused styling on mobile

* fix(BOOK-323): remove redundant dependency in callback


Approved-by: Erik Tiekstra
2025-10-24 11:30:56 +00:00
Joakim Jäderberg 1bd6ce81b8 Merged in feature/SW-3245-move-jsontohtml (pull request #2661)
Feature/SW-3245 move jsontohtml

* wip

* Move JsonToHtml -> design-system

* Fix semantic issues within Stories

* replace imports of 'storybook/react-vite' with 'storybook/nextjs-vite'

* merge


Approved-by: Anton Gunnarsson
2025-08-18 07:46:21 +00:00
Joakim Jäderberg f531c7a49f Merged in feature/storybook-tests (pull request #2623)
Feature/storybook tests

* feature: add interaction tests for storybook and upgrade storybook@9

* add a11y testing for storybook

* Merge branch 'master' of bitbucket.org:scandic-swap/web into feature/storybook-tests

* Test and build only required packages

* .

* .

* .

* .

* .

* .

* .

* disable playwright tests in netlify ci

* .

* debug out process.env

* don't run playwright on CI

* remove unused netlify-plugin-playwright-cache

* .

* .

* .

* .

* .

* .

* remove turbo dependancy to design-system#test

* merge

* merge


Approved-by: Anton Gunnarsson
2025-08-14 06:25:08 +00:00
Joakim Jäderberg 855f795d50 Merged in feature/transpile-design-system (pull request #2621)
Feature/transpile design system

* remove example, we should use storybook instead

* remove example, we should use storybook instead

* css-modules cannot have :root, moved affected css-variables to globals.css

* .

* scandic-web no longer depends on design-system#build

* * Update readme
* Remove test code


Approved-by: Anton Gunnarsson
2025-08-12 09:07:33 +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
Christian Andolf 7dad94a046 fix(LOY-281): make entire select filter box clickable 2025-06-25 14:42:25 +02: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
Christian Andolf ce399e696d fix: consistent height and focus states 2025-06-13 13:07:39 +02: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 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
Arvid Norlin 79e669020a wip: new PhoneCountryCode Select 2025-06-03 11:54:04 +00: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 c4a02ee750 fix: use proper label component from rac for consistency 2025-05-08 16:33:50 +02:00
Simon Emanuelsson 4d41d4fd92 feat: autofill all fields on enter details and countryselector clean up 2025-05-06 10:03:24 +02:00
Christian Andolf c773dc3dfc feat(LOY-169): use new filter select for country select
standardised colors on error messages

fixed error validation on date field

removed duplicates in country list
2025-04-22 08:48:34 +02:00
Christian Andolf e04342110a feat(SW-1509): simplified date of birth component to work with new select
added animated labels to new select
2025-04-15 13:14:33 +02:00
Christian Andolf 515885ecbf fix(SW-1509): remove default max width 2025-04-11 09:24:45 +02:00
Christian Andolf c39a18ab58 fix(SW-1509): fix typing for supporting on selection change prop to be aligned between the two versions 2025-04-11 08:58:01 +02:00
Christian Andolf a93ed00ee5 fix(SW-1509): removed support for plain array items in order to handle proper props extending
various fixes for supporting default selected
2025-04-10 14:37:52 +02:00
Christian Andolf 2b6fe17c32 fix(SW-1509): add support for default selected key
fixed padding per list item
2025-04-10 13:30:49 +02:00
Christian Andolf cb344c7bcf fix(SW-1509): additional stories 2025-04-10 10:32:57 +02:00
Christian Andolf 9ef292709b feat(SW-1509): enable support for more react aria props
fix invalid border

corrected default border
2025-04-10 10:32:57 +02:00
Christian Andolf bacd57a735 fix(SW-1509): new select filter props interface 2025-04-10 10:32:56 +02:00
Christian Andolf bc7cec215c feat(SW-1509): enable filtering select 2025-04-10 10:32:56 +02:00
Christian Andolf 77e4e9d203 feat(SW-1509): new select component in design-system 2025-04-10 10:32:56 +02:00