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

Upgrade Storybook to v8.4 #8173

Merged
merged 5 commits into from
Nov 22, 2024
Merged

Upgrade Storybook to v8.4 #8173

merged 5 commits into from
Nov 22, 2024

Conversation

cee-chen
Copy link
Member

@cee-chen cee-chen commented Nov 21, 2024

Summary

Storybook 8.3 comes with the ability to set globals at the story level, which I would really like for high contrast mode VRT screenshots 👀 Also it's generally good to stay to date on our dependencies

QA

General checklist

  • Browser QA - N/A, use QA list instead
  • Docs site QA - N/A
  • Code quality checklist
    • yarn lint passes
  • Release checklist - N/A, internal dev/tech debt only
  • Designer checklist - N/A

- Storybook will infer this shape automatically if we provide it controls, so do that instead
it's rendering as `-`/false in any case
- by casting to a const
@@ -189,7 +190,7 @@
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-storybook": "^0.8.0",
"eslint-plugin-storybook": "^0.9.0",
Copy link
Member Author

@cee-chen cee-chen Nov 21, 2024

Choose a reason for hiding this comment

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

I tried updating this to the latest v0.11.1, but it looks like the flat config support they added in v0.10.0 breaks in our version of eslint, so this is likely the highest we can go until we upgrade to eslint v9+

See storybookjs/eslint-plugin-storybook#183

@cee-chen cee-chen marked this pull request as ready for review November 21, 2024 20:22
@cee-chen cee-chen requested a review from a team as a code owner November 21, 2024 20:22
@kibanamachine
Copy link

Preview staging links for this PR:

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

Copy link
Contributor

@mgadewoll mgadewoll left a comment

Choose a reason for hiding this comment

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

🚢 🐈‍⬛ Changes are looking good to me 👍

I ran it locally and checked some components and tested related scripts (dev, build, VRT). Everything worked as expected and I didn't see any unexpected issues in my randomly selected story smoke tests.
I re-ran VRT for previously checked components from this PR, and there were still no additional changes 👍

I added a review to unblock following PRs, not sure if @tkajtoch wants to review still anyway.

@@ -33,6 +33,7 @@ const meta: Meta<EuiColorPickerProps> = {
display: 'default',
mode: 'default',
secondaryInputDisplay: 'none',
swatches: euiPaletteColorBlind(),
Copy link
Contributor

Choose a reason for hiding this comment

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

Borealis mental note: There were changes on the Borealis branch to color palettes and how they update based on theme. These type of calls need to be linked to state to ensure expected updates.

@cee-chen cee-chen merged commit 2969bd7 into elastic:main Nov 22, 2024
11 checks passed
@cee-chen cee-chen deleted the storybook-upgrade branch November 22, 2024 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants