Skip to content

[Storybook] Add explicit sidebar structure - #7559

Merged
mgadewoll merged 15 commits into
elastic:mainfrom
mgadewoll:storybook/7552-sidebar-structure
Mar 12, 2024
Merged

mgadewoll merged 15 commits into
elastic:mainfrom
mgadewoll:storybook/7552-sidebar-structure

Conversation

@mgadewoll

@mgadewoll mgadewoll commented Mar 7, 2024 •

Copy link
Copy Markdown
Contributor

Summary

closes #7552

This PR enables ordered categories in the Storybook sidebar and updates existing story titles to include category names to add an explicit structure in the storybook sidebar.

These categories match the existing ones in the current EUI documentation page. The introduced structure is kept flat for simplicity, meaning component stories are directly added under a category, there is currently no sub-nesting.

Example structure:

Layout/Header
Layout/HeaderAlert
...

Navigation/Button
Navigation/ButtonEmpty
...

QA

@mgadewoll mgadewoll added documentation Issues or PRs that only affect documentation - will not need changelog entries skip-changelog Use on PRs to skip changelog requirement (Don't delete - used for automation) labels Mar 7, 2024
@mgadewoll
mgadewoll marked this pull request as ready for review March 7, 2024 16:26
@mgadewoll
mgadewoll requested a review from a team as a code owner March 7, 2024 16:26
Comment thread .storybook/preview.tsx Resolved

@cee-chen cee-chen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I have a couple small re-categorizations and a question about nesting subcomponents, but that one is totally optional/not a blocker!

Comment thread src/components/page/page.stories.tsx Resolved
@mgadewoll
mgadewoll force-pushed the storybook/7552-sidebar-structure branch from 02aa145 to 149164d Compare March 11, 2024 17:36
@mgadewoll
mgadewoll requested a review from cee-chen March 11, 2024 18:03
@mgadewoll
mgadewoll force-pushed the storybook/7552-sidebar-structure branch from 149164d to 3671200 Compare March 12, 2024 08:53

@cee-chen cee-chen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🎉 🎉 🎉 So happy for this PR, thanks Lene!! Your knowledge of Storybook is amazing!

@kibanamachine

Copy link
Copy Markdown
Contributor

@elasticmachine

Copy link
Copy Markdown
Collaborator

💚 Build Succeeded

History

@mgadewoll
mgadewoll merged commit 75d5b5a into elastic:main Mar 12, 2024
@mgadewoll
mgadewoll deleted the storybook/7552-sidebar-structure branch March 14, 2024 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Issues or PRs that only affect documentation - will not need changelog entries skip-changelog Use on PRs to skip changelog requirement (Don't delete - used for automation)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Storybook] Add explicit sidebar structure

4 participants