Repository navigation
chore: update Storybook to 10 - #1357
Merged
Merged
Conversation
This was referenced Nov 30, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1357 +/- ##
=======================================
Coverage 93.75% 93.75%
=======================================
Files 3 3
Lines 80 80
Branches 20 20
=======================================
Hits 75 75
Misses 3 3
Partials 2 2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
dangreen
force-pushed
the
chore/storybook
branch
2 times, most recently
from
November 30, 2026 15:32
53c0b7b to
b0d23ec
Compare
Addons that moved into the core are dropped, the config is ESM TypeScript, and the scripts are named as in the other Trigen repositories: storybook and storybook:build. chartjs-plugin-zoom 3 ships ESM types that the stories need.
Stories are type-checked with the rest of the code now, so a change of the component types that breaks a usage shows up in test:types.
Stories import the sandboxes, which import react-chartjs-2 by name: without an install of the sandboxes, as in CI, tsc maps the name to the sources.
dangreen
force-pushed
the
chore/storybook
branch
from
November 30, 2026 15:35
b0d23ec to
7a88f82
Compare
dangreen
marked this pull request as ready for review
November 30, 2026 15:41
This was referenced Nov 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part 4 of the tooling stack. Based on #1356.
What
@storybook/addon-actions,addon-controls,client-logger,manager-api,preview-api,themingand@storybook/reactare gone;storybook(withstorybook/actions,storybook/manager-api,storybook/theming),@storybook/react-viteand@storybook/addon-docsremain..storybook/main.ts,preview.ts,manager.ts); the CommonJSpackage.jsonoverride in.storybookis removed. The sandboxes still run on the sources through an alias.nano_kit:storybookandstorybook:build(CI updated).satisfies Meta<typeof Component>,StoryObj) and are type-checked bytest:types, so a change of the component types that breaks real usage fails CI. Hooks live in namedrenderfunctions; the click events story logs throughaction().chartjs-plugin-zoom2 → 3 for its ESM types (the stories register it).tsconfig.jsonmapsreact-chartjs-2tosrc: stories import the sandboxes, which import the package by name, and CI does not install the sandboxes here. chore: install the sandboxes from the root workspace #1358 drops the mapping once the workspace links the package.Checked locally
pnpm storybook:build; then every one of the 21 stories was opened in headless Chrome: each renders a canvas with a painted chart and logs no errors.pnpm test:types,pnpm test:unit,pnpm lint.Stack
🤖 Generated with Claude Code