question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Story roots not working as expected with 5.3

See original GitHub issue

Describe 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.

Screen Shot 2020-01-15 at 9 32 51 PM

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:closed
  • Created 4 years ago
  • Comments:16 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
vidarccommented, Jan 21, 2020

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

1reaction
shilmancommented, Jan 17, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found