storybookjs / storybook

Storybook is the industry standard workshop for building, documenting, and testing UI components in isolation
https://storybook.js.org
MIT License
84.26k stars 9.27k forks source link

6.2.0 doubling story list for title prefix `/` #14406

Open hatkyinc2 opened 3 years ago

hatkyinc2 commented 3 years ago

Describe the bug Updated to 6.2.0 from 6.1.21

And am getting my story list doubled: Screenshot from 2021-03-31 13-59-34

You can see that one is straight on the root level and another is with an empty header

It could be that I'm doing something weird by naming my stories starting with /, like

title: '/Atoms/Plant Image Skeleton',

To Reproduce

Expected behavior This is a screenshot with sb 6.1.21: Screenshot from 2021-03-31 14-05-54

Screenshots Embeded up

Code snippets As mentioned before this is my title that could be "weird"/edge case/..

title: '/Atoms/Plant Image Skeleton',

System

$ npx sb@next info

Environment Info:

  System:
    OS: Linux 5.4 Ubuntu 20.04.2 LTS (Focal Fossa)
    CPU: (4) x64 Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz
  Binaries:
    Node: 15.12.0 - /usr/bin/node
    Yarn: 1.22.5 - /snap/bin/yarn
    npm: 7.5.3 - /usr/local/bin/npm
  Browsers:
    Firefox: 87.0
  npmPackages:
    @storybook/addon-actions: ^6.1.21 => 6.1.21 
    @storybook/addon-essentials: ^6.1.21 => 6.1.21 
    @storybook/addon-links: ^6.1.21 => 6.1.21 
    @storybook/addons: ^5.2.6 => 5.3.21 
    @storybook/svelte: ^6.1.21 => 6.1.21 

Additional context

┆Issue is synchronized with this Asana task by Unito

shilman commented 3 years ago

Indeed this is a corner case. As a workaround, I'd recommend removing the leading slash. Nevertheless it also looks like a bug since it's duplicating the UI.

hatkyinc2 commented 3 years ago

Agree with the low priority, has workaround classification, just noting it's a different layout, creating the sections: Screenshot from 2021-03-31 15-42-40