geometricpanda / storybook-addon-badges

An addon for Storybook which allows the addition of badges to your Stories
https://geometricpanda.github.io/storybook-addon-badges/
MIT License
9 stars 7 forks source link

Showing Badges in Sidebar Labels #17

Open platzhersh opened 7 months ago

platzhersh commented 7 months ago

This is a feature request.

Are there any plans to allow showing the badges in the labels of the stories in the sidebar as well?

I saw this for mui for example: image

Currently, this is not possible from what I see, so we would just use the sidebar roots to put the components with the same badges in their own group.

image

geometricpanda commented 7 months ago

Hey! You're not the first person who's asked for this, so you're in good company.

Last time I looked, it seemed almost possible, I'll have a dig around to see if that's changed.

shilman commented 6 months ago

Hi @geometricpanda I did a very dirty prototype of what this might look like in a v7+ compatible way here https://github.com/shilman/storybook-tag-badges

Tags have been around since 7.0 but not really utilized in user facing features. The upcoming 8.1 release will have some tags features like statically & interactively filtering the sidebar. It would be great to also be able to highlight an upgraded version of this addon based on tags, since I see lots of high quality storybooks that rely on it it.

If you'd be interested in upgrading the addon to use tags, I can potentially rework core bits of storybook to help make it easier/better.