-
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
Feat: Storybook: Improve component organisation - Selection & Input Category - Issue #66275 #66635
Feat: Storybook: Improve component organisation - Selection & Input Category - Issue #66275 #66635
Conversation
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. |
… component change
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.
Thank you for working on those @hbhalodia 🙌
I think there are a few things we need to polish before merging. Let me know what you think!
packages/components/src/custom-select-control-v2/stories/index.story.tsx
Outdated
Show resolved
Hide resolved
@@ -13,7 +13,8 @@ import { useState } from '@wordpress/element'; | |||
import CustomGradientPicker from '../'; | |||
|
|||
const meta: Meta< typeof CustomGradientPicker > = { | |||
title: 'Components/CustomGradientPicker', | |||
title: 'Components/Selection & Input/Color/CustomGradientPicker', |
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.
This one is displayed under "Deprecated", but it makes sense to be in Color for now because we've technically not deprecated it just yet 👍
@@ -16,7 +16,8 @@ import { InputControlSuffixWrapper } from '../input-suffix-wrapper'; | |||
import Button from '../../button'; | |||
|
|||
const meta: Meta< typeof InputControl > = { | |||
title: 'Components (Experimental)/InputControl', | |||
title: 'Components (Experimental)/Selection & Input/Common/InputControl', |
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.
@@ -14,7 +14,8 @@ import { useState } from '@wordpress/element'; | |||
import NumberControl from '..'; | |||
|
|||
const meta: Meta< typeof NumberControl > = { | |||
title: 'Components (Experimental)/NumberControl', | |||
title: 'Components (Experimental)/Selection & Input/Common/NumberControl', |
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.
Same as above with regards to the separate category.
@@ -16,7 +16,8 @@ import { CSS_UNITS } from '../utils'; | |||
|
|||
const meta: Meta< typeof UnitControl > = { | |||
component: UnitControl, | |||
title: 'Components (Experimental)/UnitControl', | |||
title: 'Components (Experimental)/Selection & Input/Common/UnitControl', |
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.
Same as above with regards to the separate category.
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.
Thank you for addressing all the feedback!
I went ahead and made a few tweaks, the main ones being:
- Removed the excessive "Search & Filtering" grouping (ba02698) — This only contains one component, which is generic enough to be included in "Common", and a lot of Common components can also be used for filtering anyway.
- Removed the unnecessary "Common" grouping from the experimental components (8f01d73) — This is an extra click and doesn't add value right now. We can move them to the normal Common grouping once they graduate to stable.
We can refine as we go, but at this early stage I think we should lean towards simple groupings.
What?
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.
Testing Instructions
npm run storybook:dev
.Testing Instructions for Keyboard
Screenshots or screencast