-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade storybook to v7.x #3620
Comments
sergei-maertens
added a commit
that referenced
this issue
Nov 17, 2023
* Updated the reactIntl configuration * Updated the MSW configuration
sergei-maertens
added a commit
that referenced
this issue
Nov 17, 2023
sergei-maertens
added a commit
that referenced
this issue
Nov 17, 2023
sergei-maertens
added a commit
that referenced
this issue
Nov 18, 2023
sergei-maertens
added a commit
that referenced
this issue
Nov 18, 2023
This is because we manually tweak the storybook webpack config for our own SCSS processing pipeline. TODO: investigate if https://storybook.js.org/recipes/sass could be a suitable replacement.
sergei-maertens
added a commit
that referenced
this issue
Nov 18, 2023
sergei-maertens
added a commit
that referenced
this issue
Nov 18, 2023
* Story nesting inside Canvas is deprecated * ArgsTable is deprecated, use ArgTypes or Control instead.
sergei-maertens
added a commit
that referenced
this issue
Nov 20, 2023
* Updated the reactIntl configuration * Updated the MSW configuration
sergei-maertens
added a commit
that referenced
this issue
Nov 20, 2023
sergei-maertens
added a commit
that referenced
this issue
Nov 20, 2023
sergei-maertens
added a commit
that referenced
this issue
Nov 20, 2023
This is because we manually tweak the storybook webpack config for our own SCSS processing pipeline. TODO: investigate if https://storybook.js.org/recipes/sass could be a suitable replacement.
sergei-maertens
added a commit
that referenced
this issue
Nov 20, 2023
sergei-maertens
added a commit
that referenced
this issue
Nov 20, 2023
* Story nesting inside Canvas is deprecated * ArgsTable is deprecated, use ArgTypes or Control instead.
sergei-maertens
added a commit
that referenced
this issue
Nov 20, 2023
sergei-maertens
added a commit
that referenced
this issue
Nov 21, 2023
sergei-maertens
added a commit
that referenced
this issue
Nov 21, 2023
sergei-maertens
added a commit
that referenced
this issue
Nov 21, 2023
The form builder requires additional context for available file types, confidentiality levels and callbacks to retrieve the available document types for registration. All the configuration is readily available in the DOM already, and the custom options for the formio component implementation is broken out into a function shared between the new and old form builder. It's also been refactored to use async/await as much as possible and type information is added via JSDoc annotations for improved readability. Note that the Django templates are updated to ensure the configuration script tags are emitted *before* the Javascript modules are loaded/executed, so that the configuration is picked up and we don't need an additional callable indirection to query the DOM at runtime - which is best avoided inside React components anyway.
sergei-maertens
added a commit
that referenced
this issue
Nov 21, 2023
The formio builder ships its own translation files, which we included when compiling the ICU message AST.
sergei-maertens
added a commit
that referenced
this issue
Nov 21, 2023
sergei-maertens
added a commit
that referenced
this issue
Nov 21, 2023
The form builder requires additional context for available file types, confidentiality levels and callbacks to retrieve the available document types for registration. All the configuration is readily available in the DOM already, and the custom options for the formio component implementation is broken out into a function shared between the new and old form builder. It's also been refactored to use async/await as much as possible and type information is added via JSDoc annotations for improved readability. Note that the Django templates are updated to ensure the configuration script tags are emitted *before* the Javascript modules are loaded/executed, so that the configuration is picked up and we don't need an additional callable indirection to query the DOM at runtime - which is best avoided inside React components anyway.
sergei-maertens
added a commit
that referenced
this issue
Nov 21, 2023
The formio builder ships its own translation files, which we included when compiling the ICU message AST.
sergei-maertens
added a commit
that referenced
this issue
Nov 21, 2023
Found the config options via the TypeScript definitions :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We should tackle this before we prepare to upgrade to React 18 and for consistency in all other projects.
MDX files to update:
src/openforms/js/components/admin/form_design/logic/actions/Action.stories.mdx
src/openforms/js/components/admin/form_design/LanguageTabs.stories.mdx
src/openforms/js/components/admin/form_design/Warnings/Warnings.stories.mdx
src/openforms/js/components/admin/form_design/variables/ServiceFetchConfigurationForm.stories.mdx
src/openforms/js/components/admin/form_design/variables/ServiceFetchConfigurationPicker.stories.mdx
src/openforms/js/components/admin/form_design/FormLogic.stories.mdx
src/openforms/js/components/admin/tables/Tables.stories.mdx
src/openforms/js/components/admin/forms/RadioList.stories.mdx
src/openforms/js/components/admin/forms/Inputs.stories.mdx
src/openforms/js/components/admin/forms/Fieldset.stories.mdx
src/openforms/js/components/admin/forms/ErrorList.stories.mdx
src/openforms/js/components/admin/forms/JsonWidget.stories.mdx
src/openforms/js/components/admin/forms/ActionButton.stories.mdx
src/openforms/js/components/admin/forms/MappingArrayInput.stories.mdx
src/openforms/js/components/admin/forms/FormRow.stories.mdx
src/openforms/js/components/admin/forms/Select.stories.mdx
src/openforms/js/components/admin/forms/SubmitRow.stories.mdx
src/openforms/js/components/admin/forms/ComponentSelection.stories.mdx
src/openforms/js/components/admin/forms/ArrayInput.stories.mdx
src/openforms/js/components/admin/forms/VariableSelection.stories.mdx
src/openforms/js/components/admin/forms/ButtonContainer.stories.mdx
src/openforms/js/components/admin/forms/Field.stories.mdx
src/openforms/js/components/admin/modals/Modal.stories.mdx
src/openforms/js/components/admin/modals/FormModal.stories.mdx
The text was updated successfully, but these errors were encountered: