You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@mirka can external contributor contribute to the missing story? I am working with Gutenberg components and notice some missing components' story as well. thx
Though there are some components I am not sure wether they should have stories or not, so I use ➖ to mark them as unknown, maybe a Gutenberg code owner can provide insights for them
I think I can add stories for menu-group and menu-item, so far only menu-item-choice has story
Other side notes on /ui, which is referred as Next Component System, it has some stories on storybook
Tooltip
Should ui be placed on separated category like Next Component? When first working with components I tried to import FormGroup from @wordpress/componets only to find out that it is part of other packages @wordpress/components/ui
I think I can add stories for menu-group and menu-item, so far only menu-item-choice has story
Yes, I think menu-group might be a good one to start. menu-item also needs a story, but in general it will be more efficient to migrate it to TypeScript first (part of #35744).
Other side notes on /ui, which is referred as Next Component System, it has some stories on storybook
Thanks for reminding me about these, we've been meaning to clean them up a bit 😅 (#52953)
That's great news, then I can contribute to the stories of MenuItem as followed up of the merged PR #53132, WIP Stories can be found on draft PR #53613
There is some issue with parsing JSDoc and Types controls on Storybook, I guess it is related to forwardRef, working on it...
Do you think it worth follow the workaround suggestions to bring back the subcomponents while waiting for the #53541 to be completed? As I can see some V7 Storybook that support the subcomponents eg: @psui preview.tsx / HoverCard stories
@mirka Thanks for your valuable feedback on the recent PRs of MenuItem and Shortcut 🙇 , I'd like to keep contributing to Gutenberg, so far Text has not migrated to type and has no stories, I followed the checklist and I found some notes to get started
Text (packages/components/src/text) (check truncate behaviors noted in this #38842 (review), try #38842 (comment) from adjustLineHeightForInnerControls)
I'd like to keep contributing to Gutenberg, so far Text has not migrated to type and has no stories, I followed the checklist and I found some notes to get started
Text (packages/components/src/text) (check truncate behaviors noted in this #38842 (review), try #38842 (comment) from adjustLineHeightForInnerControls)
@bangank36 Wonderful. Let us know if you have any questions.
Hey @bangank36 , just wanted to note that the Text component is being refactored to TypeScript in #54953 — although I'm not sure we'll also look at improving the truncate behaviour (like suggested in the notes that you quoted above).
@ciampo I just updated the tracking table here #36128 (comment)
On the Storybook column there are some leftovers components with no Stories, do you think these worth invest to?
Probably the only component that we could add stories for is Autocomplete — every other component listed there is deprecated or discouraged (as it is the case for dashicons).
I will look into it if there is no PR currently! @ciampo
Thank you! I'm not sure it's going to be easy to do so, because I vaguely remember the component being quite tightly coupled with other areas of Gutenberg. But please do give it a try and let me know how it goes!
Activity
bangank36 commentedon Jul 23, 2023
@mirka can external contributor contribute to the missing story? I am working with Gutenberg components and notice some missing components' story as well. thx
mirka commentedon Jul 24, 2023
@bangank36 Thanks for the offer! Which one specifically are you planning to add?
bangank36 commentedon Jul 25, 2023
I re-run your suggested commands for the list of the missing stories again
Detail status of Storybook stories
Edited on 08-Aug-2023
Though there are some components I am not sure wether they should have stories or not, so I use ➖ to mark them as unknown, maybe a Gutenberg code owner can provide insights for them
I think I can add stories for
menu-groupandmenu-item, so far only menu-item-choice has story/ui, which is referred as Next Component System, it has some stories on storybookShould
uibe placed on separated category likeNext Component? When first working with components I tried to importFormGroupfrom@wordpress/componetsonly to find out that it is part of other packages@wordpress/components/uimirka commentedon Jul 25, 2023
Yes, I think
menu-groupmight be a good one to start.menu-itemalso needs a story, but in general it will be more efficient to migrate it to TypeScript first (part of #35744).Thanks for reminding me about these, we've been meaning to clean them up a bit 😅 (#52953)
bangank36 commentedon Jul 27, 2023
I can see prevous effort of converting menu-item to typescript here #37020, will keep track on this.
So
menu-groupas the start for amending story 👍cc: @mirka for the pending PR for menu-group story
bangank36 commentedon Aug 2, 2023
@mirka I submitted the PR and there is
⚠️ Type of PR label error, which should be adding by the code owner right? Thnksskorasaurus commentedon Aug 4, 2023
@bangank36 I took care of this for you and added the label to the PR.
bangank36 commentedon Aug 5, 2023
I noticed, thank you so much @skorasaurus 🙇
mirka commentedon Aug 10, 2023
FYI our Storybook is very broken right now☹️ #53502
We'll try to get it fixed as soon as possible.
mirka commentedon Aug 10, 2023
Should be fixed soon by #53520 🎉
Some related follow-up work is need on #53541
bangank36 commentedon Aug 14, 2023
That's great news, then I can contribute to the stories of MenuItem as followed up of the merged PR #53132,
WIPStories can be found ondraftPR #53613forwardRef, working on it...Per my understanding, it's the removal of

subcomponentstab on Storybook V7 that leads to this task?I also noticed some ongoing discussions and complains about this feature is removed upon upgrading as well
developer questions , [Feature Request]: Subcomponents support
Do you think it worth follow the workaround suggestions to bring back the
subcomponentswhile waiting for the #53541 to be completed? As I can see some V7 Storybook that support thesubcomponentseg:@psui preview.tsx / HoverCard stories
bangank36 commentedon Aug 25, 2023
@mirka Thanks for your valuable feedback on the recent PRs of MenuItem and Shortcut 🙇 , I'd like to keep contributing to Gutenberg, so far Text has not migrated to type and has no stories, I followed the checklist and I found some notes to get started
mirka commentedon Aug 28, 2023
@bangank36 Wonderful. Let us know if you have any questions.
ciampo commentedon Oct 3, 2023
Hey @bangank36 , just wanted to note that the
Textcomponent is being refactored to TypeScript in #54953 — although I'm not sure we'll also look at improving the truncate behaviour (like suggested in the notes that you quoted above).I can see that a few more components now have stories. In the meantime, we've also tidied up (and removed) the
uifolder.What's left to track in this issue?
bangank36 commentedon Oct 3, 2023
@ciampo I just updated the tracking table here #36128 (comment)
On the
Storybookcolumn there are some leftovers components with no Stories, do you think these worth invest to?ciampo commentedon Oct 3, 2023
Probably the only component that we could add stories for is
Autocomplete— every other component listed there is deprecated or discouraged (as it is the case for dashicons).Do you have capacity to look into it?
bangank36 commentedon Oct 10, 2023
I will look into it if there is no PR currently! @ciampo
ciampo commentedon Oct 10, 2023
Thank you! I'm not sure it's going to be easy to do so, because I vaguely remember the component being quite tightly coupled with other areas of Gutenberg. But please do give it a try and let me know how it goes!
mirka commentedon Dec 22, 2023
Closing this out since we basically have full coverage now, and a story for
Autocompletemay be impractical. Thank you for all your help @bangank36!