storybookjs/storybook

[Bug]: Composition - component/stories count is off (it should skip docs types)

Open

#21,503 opened on Mar 9, 2023

View on GitHub
 (0 comments) (0 reactions) (0 assignees)TypeScript (10,058 forks)batch import
bugcompositionhelp wantedsev:S3

Repository metrics

Stars
 (89,909 stars)
PR merge metrics
 (Avg merge 7d 22h) (184 merged PRs in 30d)

Description

Describe the bug

Reported by @yannbf during QA:

It seems that the logic that shows amount of components and amount of stories is not accounting the new Docs 2.0 format. In this example, I have one unattached docs (1 story, if it is still considered a story) and one component (7 stories).

To Reproduce

@yannbf do you have this storybook with chroma pets published somewhere?

It's a nice minimal repro for this issue.

System

No response

Additional context

No response

Contributor guide