Adds categories to Storybooks navigation #66072
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What?
This pull request includes several changes to update the titles and IDs of various components in the Storybook configuration files to better reflect their categories. The most important changes involve updating the titles to group components under more specific categories and adding unique IDs for each component.
Updates to component titles and IDs:
packages/components/src/button/stories/index.story.tsx
: Updated the title toComponents/Actions/Button
and added an IDcomponents-button
.packages/components/src/card/stories/index.story.tsx
: Updated the title toComponents/Containers/Card
and added an IDcomponents-card
.packages/components/src/navigable-container/stories/navigable-menu.story.tsx
: Updated the title toComponents/Containers/NavigableMenu
and added an IDcomponents-navigablemenu
.packages/components/src/navigable-container/stories/tabbable-container.story.tsx
: Updated the title toComponents/Containers/TabbableContainer
and added an IDcomponents-tabbablecontainer
.packages/components/src/panel/stories/index.story.tsx
: Updated the title toComponents/Containers/Panel
and added an IDcomponents-panel
.This creates an 'Actions' category and a 'Containers' category within the left-hand navigation.
This change represents 2 out of the 12 categories to be introduced, it's smaller scope allows me to test run committing before making larger changes at a later date and time.
Why?
This change is part of the larger Storybook Improvements and the shared Sitemap.
How?
Adding Categories that helps organize and group components into sections based on their role and function within the library makes our library easier to navigate and understand.
Screenshots