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 [BROKEN] #759

Closed
wants to merge 18 commits into from

Conversation

JacobArrow
Copy link
Contributor

@JacobArrow JacobArrow commented Oct 30, 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.

"eslint-plugin-react": "^7.37.2",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-webpack-plugin": "^4.2.0",
"flatpickr": "^4.6.13",
"json": "^11.0.0",
"markdownlint-cli2": "^0.4.0",
"postcss": "^8.4.47",
"prettier": "^2.7.1",
"prettier": "^3.3.3",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to upgrade Prettier to make storybook-addon-html work with Storybook 8, which is why Stylelint also has been upgraded.

@JacobArrow JacobArrow changed the title DDFNEXT-220-upgrade-storybook DDFNEXT-220: Upgrade Storybook and Prettier Nov 4, 2024
@JacobArrow JacobArrow marked this pull request as ready for review November 4, 2024 09:33
@JacobArrow JacobArrow force-pushed the DDFNEXT-220-upgrade-storybook branch 3 times, most recently from d176915 to 70ef6ec Compare November 4, 2024 10:04
@JacobArrow JacobArrow force-pushed the DDFNEXT-220-upgrade-storybook branch 7 times, most recently from a6dee18 to adf3720 Compare November 4, 2024 14:56
Storybook will no longer automatically import CSS.
Maybe flatpickr CSS should be imported globally at some point?
@JacobArrow
Copy link
Contributor Author

This PR has moved to #766

@JacobArrow JacobArrow closed this Nov 7, 2024
@JacobArrow JacobArrow changed the title DDFNEXT-220: Upgrade Storybook and Prettier DDFNEXT-220: Upgrade Storybook and Prettier [BROKEN] Nov 7, 2024
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.

1 participant