-
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: Add badges to private components #58123
Conversation
Size Change: -882 B (0%) Total Size: 1.7 MB
ℹ️ View Unchanged
|
Looking good! I wonder if we should also have a badge for "internal only" components (eg, CustomSelectControl V2) |
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.
🚀
Should we also have 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 Core SVNIf you're a Core Committer, use this list when committing to
GitHub Merge commitsIf 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. |
What?
Adds an informational badge to the Storybook pages of any components that are still locked as private.
Why?
We currently don't have a way to tell from the Storybook which components are "experimental" (implicitly public) vs. "private".
I think we should prefer badge-based solutions like this rather than groupings in the sidebar, because the grouping names affect URLs and will break hyperlinks whenever there are status changes.
How?
Uses an addon called Storybook Addon Badges, which seems to be the most popular addon of its kind.
Testing Instructions
See the Storybook pages for any private component, e.g. Tabs or ProgressBar.
Screenshots or screencast