Skip to content
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

DDFNEXT-220: Upgrade Storybook and Prettier #766

Merged
merged 18 commits into from
Nov 7, 2024

Conversation

JacobArrow
Copy link
Contributor

@JacobArrow JacobArrow commented Nov 4, 2024

Link to issue

https://reload.atlassian.net/browse/DDFBRA-161

Description

  • Upgraded Storybook and its dependencies
  • Migrated Storybook config to match breaking changes
  • Migrated stories with npx storybook@latest migrate
  • Migrated .mdx files with npx storybook@latest migrate
  • Rewrote all stories to use args: {} instead of argTypes.defaultValue: {}
  • Upgraded Prettier and Stylelint packages to work with @whitespace/storybook-addon-html
  • Fixed various breaking changes and migration errors in stories

Beware that the newest version of Storybook introduces some new React warnings while compiling.

JacobArrow and others added 18 commits November 4, 2024 17:05
As of Stylelint v15 stylelint-config-prettier is no longer needed as all style-related rules have been deprecated.
With Storybook 8.0 the build system now requires explicit configuration for CSS
These were accidentally removed in a previous commit while testing
Storybook will no longer automatically import CSS.
Maybe flatpickr CSS should be imported globally at some point?
@JacobArrow JacobArrow changed the title DDFNEXT-220-upgrade-storybook2 DDFNEXT-220: Upgrade Storybook and Prettier Nov 7, 2024
package.json Show resolved Hide resolved
package.json Show resolved Hide resolved
src/stories/Blocks/header/Header.tsx Outdated Show resolved Hide resolved
@kasperg kasperg assigned JacobArrow and unassigned kasperg and ThomasGross Nov 7, 2024
@JacobArrow JacobArrow merged commit 940cc0a into develop Nov 7, 2024
9 checks passed
@JacobArrow JacobArrow deleted the DDFNEXT-220-upgrade-storybook2 branch November 7, 2024 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants