Replies: 1 comment 7 replies
-
|
Are you talking about an addon toolbar tab? Is the problem with Interactions addon src: storybook/code/addons/interactions/src/manager.tsx Lines 10 to 46 in 176017d |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem? Please describe.
I was attempting to create a toolbar tab and panel to show analytics for a current story - how often a story is being used and where. In order to improve visibility, I wanted the title of the toolbar tab to show the total number of instances the story was being used. Prior to this, this usage analytics tab was implemented in a sub-toolbar which fetched the story data using
useAddonState().Describe the solution you'd like
To be able to somehow be able to dynamically change the toolbar titles outside of using
addons.add(), and to be able to retrieve data for the story usinguseAddonState()to provide data to the title.Describe alternatives you've considered
As mentioned above, this was implemented in a panel sub-toolbar, but was fairly hidden away and difficult to find.
Are you able to assist to bring the feature to reality?
no
Additional context
^ prior toolbar title
^ desired toolbar title that updates when navigating between different stories to show their usage.
Beta Was this translation helpful? Give feedback.
All reactions