Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addon-Docs: Handle leaf/non-leaf mixture in docs-mode navigation #9321

Merged
merged 5 commits into from Jan 7, 2020

Conversation

shilman
Copy link
Member

@shilman shilman commented Jan 4, 2020

Issue: #9314

What I did

When a navigation node contains both stories AND folders/components, don't collapse it in --docs mode.

It currently throws an error. This version doesn't error and doesn't lose data -- users can fix it by re-grouping their stories.

How to test

  • See updated unit test
  • See Addons/Docs/Mixed Leaves in official-storybook

@vercel
Copy link

vercel bot commented Jan 4, 2020

This pull request is being automatically deployed with ZEIT Now (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://zeit.co/storybook/monorepo/fh6mi13h0
✅ Preview: https://monorepo-git-9314-collapse-mixed-leaves-non-leaves.storybook.now.sh

@vercel vercel bot temporarily deployed to Preview January 6, 2020 09:17 Inactive
@shilman shilman added this to the 5.3.0 milestone Jan 6, 2020
@vercel vercel bot temporarily deployed to Preview January 6, 2020 09:22 Inactive
Copy link
Member

@tmeasday tmeasday left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM although I wonder what we should do with those leaves that aren't in components.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants