Skip to content

web: fix duplicate stories

Warren Gifford requested to merge vb/fix-duplicate-stories into main

Created by: valerybugakov

Context

Running yarn storybook on main shows a bunch of errors in the console about duplicate story keys and two identical web story groups. Also, the ordering of story groups is broken — wildcard is not the first item on the list despite our configuration.

Test plan

  • Run yarn storybook and ensure that wildcard is the first story group in the sidebar.
  • Run STORIES_GLOB=client/web/src/enterprise/insights/**/*.story.tsx yarn workspace @sourcegraph/storybook run start and ensure that there's only one web stories group.
Before After
Screen Shot 2022-06-01 at 10 20 32 Screen Shot 2022-06-01 at 10 20 56

App preview:

Check out the client app preview documentation to learn more.

Merge request reports

Loading