-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Storybook: Show badges in sidebar #58518
Conversation
Size Change: +8 B (0%) Total Size: 1.71 MB
ℹ️ View Unchanged
|
packages/components/src/custom-select-control-v2/stories/index.story.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works great, thank you!
packages/components/src/custom-select-control-v2/stories/index.story.tsx
Outdated
Show resolved
Hide resolved
As also asked in #58123 (comment), should we also show a badge for deprecated components? |
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Depends on whether Storybook will add sufficient filtering features in the sidebar, but I'd rather not clutter the main Components grouping with deprecated stuff, so at the moment I kind of prefer moving them to the Deprecated grouping like we did with RadioGroup. (Assuming we set up a middleware to maintain permalinks.) No strong opinion though. |
Ok re. not showing a deprecated badge in the sidebar in favour of having a deprecated group (although it could be useful to display them in the canvas top toolbar) |
Flaky tests detected in 4d63235. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7919032863
|
What?
Extending the work done in #58123, this patch adds informational badges to the Storybook sidebar, where relevant.
Why?
It make it more obvious when scanning the sidebar what the status of a component is.
How?
This is a first pass, and requires some duplication of meta data. Unfortunately Storybook doesn't make
parameters
available until the page is rendered.Future work could involve abstracting away the duplication with some sort of support function.
Testing Instructions
See the Storybook sidebar for components that are Private/WIP.
Screenshots or screencast