Story roots not working as expected with 5.3
See original GitHub issueDescribe the bug I have several stories in the form of Root/Story || Root/Submenu/Story || Root/Submenu/Submenu/Story Before 5.3, this worked fine with the different hierarchy specifiers I could use. Just trying to recreate that in the new setup.
Example Story Names Being Used
- Introduction/Getting Started
- Introduction/Framework Integration/React
- Design System/Components/Button
Below screenshot is how they currently show up. Would expect Design System to also be a root level and not within Others. Can’t share my repo, but will try and share whatever I can.
Also using the sort function within the preview.js file.
storySort: ([first], [second]) => {
const [firstType] = first.split('-');
const [secondType] = second.split('-');
if (firstType === 'introduction') return -1;
if (firstType === secondType) return 0;
return 1;
}
Issue Analytics
- State:
- Created 4 years ago
- Comments:16 (10 by maintainers)
Top Results From Across the Web
5.3-liter Chevy Engine Problems: What Should You Look Out ...
The stigma that a Chevy V8 is reliable is rooted in decades worth of history and development. Over the years, technology's progression has...
Read more >Grade 5 ELA Correlation Guides 2020 - IN.gov
This guide is meant to encourage strong standards-based instruction when utilizing curricular materials not aligned to IAS but to Common Core State Standards...
Read more >Mangrove roots take a long time to break with axe - Mojang
Bug - A problem which impairs or prevents the functions of the product. MCPE-156930 Mangrove roots cannot be instamined with an axe.
Read more >Answers to Math Problems - Hotmath - Varsity Tutors
Math homework help. Hotmath explains math textbook homework problems with step-by-step math answers for algebra, geometry, and calculus.
Read more >Texas Essential Knowledge and Skills for Grade 5
The student is expected to: (A) estimate to determine solutions to mathematical and real-world problems involving addition, subtraction, multiplication, or ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
adding in showRoots worked out. ended up having some stories that I didn’t convert over (still had | instead of /). think that was the main cause for the Others grouping? works great now though
Yay!! I just released https://github.com/storybookjs/storybook/releases/tag/v5.3.6 containing PR #9504 that references this issue. Upgrade today to try it out!
Closing this issue. Please re-open if you think there’s still more to do.