-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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 V7 #53520
Upgrade Storybook to V7 #53520
Conversation
Size Change: +7 B (0%) Total Size: 1.5 MB
ℹ️ View Unchanged
|
8f41031
to
76848fe
Compare
76848fe
to
22101b1
Compare
There are also a few regressions #53502 I'm hoping this might resolve. |
Ok I've fixed most of the stories, last blocker I've seen is the mdx stories. |
Tried several things, I'm kind of stuck, I'm not sure what's preventing the mdx stories from rendering. |
Ok, in the last commit, I'm making progress. I managed to make the "introduction" mdx file work (had to change file names to drop the .story suffix) but now importing other markdown files seems broken (as seen in the contributing page) |
This should be ready I think. Worth noting that:
|
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.
Thank you so much for getting this sorted!
I can confirm that the regressions in #53502 are fixed, and I tweaked source-link-loader
to work again.
There are a a few smaller things that I'm noticing, but I'll address those later. I'd like to get this PR merged ASAP because the Storybook is very unusable right now 😄
Cool, thanks for the fix. |
Since Storybook 7.1 there is an option to enable Story's Table of content (to compensate the removing of Docs tab), do you think it worth enabling this option globally by default @youknowriad |
I didn't know about this, thanks for letting us know! I just tried it out, but personally I don't think it's worth the screen space that it takes up, at least in most scenarios right now. And the TOC generation doesn't seem super reliable, as can be seen in the Contributing Guidelines. |
Ah, good to know, thanks! |
What?
While doing the node/npm migration, I've noticed a few messages when installing packages. Among them, the fact that we're using a few deprecated packages. I'm trying to clean these out a little bit.
I noticed that our Storybook dependency was responsible for like 5 of these warnings, so in this PR I'm trying to upgrade it to the latest version. Also upgrading reduces the vulnerabilities number that npm highlights.
How?
.story
suffix to the stories files to avoid having to recreate the Webpack config entirely.Todo