Sidnioulz / storybook-addon-tag-badges

Display Storybook tags as badges in the sidebar and toolbar.
MIT License
11 stars 0 forks source link

feat: support storybook composition #17

Open RobbyRabbitman opened 1 week ago

RobbyRabbitman commented 1 week ago

Hi, thanks for the great addon!

I wonder if displaying the badges in a storybook composition setup is possible - probably not because the host just queries the metadata of the components and stories of the other storybook instances right?

Sidnioulz commented 4 days ago

Hi @RobbyRabbitman!

For sure, tagBadges addons defined on the composed Storybooks would not load (https://storybook.js.org/docs/sharing/storybook-composition says somewhere that composed addons do not get loaded).

I don't know if addons defined on the Storybook instance that loads external stories run everywhere. I also don't know if the sidebar entries go through the same code, and that's something I'd need to try out.

If you have a public repo set up with composition already configured, feel free to share it. It'll save me some time to repro and test.

RobbyRabbitman commented 3 days ago

Thanks for the reply, I will try it out in the next couple of days but i cannot share it 😄

Sidnioulz commented 2 days ago

Thanks! I'm assigning this to you so I know I'm waiting to hear back from you :)