-
Notifications
You must be signed in to change notification settings - Fork 222
Upgrade Storybook from v8 to v9 #4276
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
Conversation
Breaking changes addressed: - Update storybook packages to v9.1.6 - Remove packages now consolidated into core storybook: - @storybook/addon-actions (now storybook/actions) - @storybook/addon-essentials (built-in) - @storybook/addon-interactions (built-in) - @storybook/blocks (now @storybook/addon-docs/blocks) - @storybook/components (now storybook/internal/components) - @storybook/manager-api (now storybook/manager-api) - @storybook/theming (now storybook/theming) - Add @storybook/addon-docs for MDX support - Update import paths to new package structure - Convert preset.ts from CommonJS to ESM - Update Overview.mdx to use @storybook/addon-docs/blocks
6a9283c to
9e18768
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR upgrades the ql-vscode extension’s Storybook setup from v8 to v9, updating dependencies, configuration, and custom addons to align with the new package structure and ESM-based APIs.
Changes:
- Bump Storybook core and related packages in
package.json/package-lock.jsonto the 9.1.x series and remove legacy addon packages now folded into core. - Update Storybook configuration and stories (
.storybookconfigs and*.stories.tsx/Overview.mdx) to use the newstorybook/*and@storybook/addon-docs/blocksimport paths. - Convert the custom VS Code theme preset from CommonJS to ESM and wire it into the updated Storybook builder and addon configuration.
Reviewed changes
Copilot reviewed 9 out of 10 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
extensions/ql-vscode/src/stories/results/AlertTable.stories.tsx |
Switches action handling import from @storybook/addon-actions to the new storybook/actions entrypoint. |
extensions/ql-vscode/src/stories/Overview.mdx |
Updates MDX docs to import Meta from @storybook/addon-docs/blocks instead of the deprecated @storybook/blocks. |
extensions/ql-vscode/package.json |
Upgrades Storybook-related devDependencies (React, Vite builder, addons, CLI) to 9.1.x and adds @storybook/addon-docs. |
extensions/ql-vscode/package-lock.json |
Locks updated Storybook ecosystem versions and transitive dependencies to match the new 9.1.x setup. |
extensions/ql-vscode/.storybook/vscode-theme-addon/preset.ts |
Converts the preset to ESM and switches from require.resolve to URL-based path construction for preview and manager entries. |
extensions/ql-vscode/.storybook/vscode-theme-addon/manager.tsx |
Updates addon registration to use the new storybook/manager-api import. |
extensions/ql-vscode/.storybook/vscode-theme-addon/ThemeSelector.tsx |
Updates manager-side hooks and components to use storybook/manager-api and storybook/internal/components. |
extensions/ql-vscode/.storybook/preview.ts |
Switches theming and action imports to storybook/theming and storybook/actions to match v9 entrypoints. |
extensions/ql-vscode/.storybook/manager.ts |
Updates manager configuration imports to use new storybook/manager-api and storybook/theming paths. |
extensions/ql-vscode/.storybook/main.ts |
Adjusts Storybook configuration to include @storybook/addon-docs and remove now-built-in addons, simplifying the addons list. |
Files not reviewed (1)
- extensions/ql-vscode/package-lock.json: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
d10c
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, LGTM.
Breaking changes addressed: