-
Notifications
You must be signed in to change notification settings - Fork 15
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
Problem with sidebar dots #28
Comments
Do you get the status showing in the top bar in canvas mode? |
Yes, the status shows in the top bar as expected! |
Are you able to show me an example story file? |
(As notes) the leaf nodes inherit parameters from the default/parent story so it should highlight all your leafs. |
Yeah! Happy to provide any further context! Could it be because of the
|
And you don't get any status dot next to the Default story label? (Not the expandable Accessible Icon label) |
Sorry for the late reply. Are you able to provide a reproduction repo? |
I don't have one handy, i've been working in a private repo. Do you have a starter code sandbox or anything? |
Just to say I haven't forgotten about this, no starter code sandbox I'm afraid. Will try and spin something up when I get a chance. |
Same here. Sorry I can't give repo nor screenshots. But we're on Storybook 6.5.9, we have dots next to the individual story, but not next to the 'leaf'. |
I also did not have any dots in the sidebar, and furthermore I was not able to use the renderLabel config (as described in the storybook docs) at all. Turns out you cannot use this when you are on |
Ah hah! |
Now that Storybook v7 is in rc, I've noticed that when using v7 of storybook, the dots appear inconsistently at best. They will never appear when I load the storybook, but sometimes they will appear as I click on each individual component. |
A partial fix has been shipped in v4.2.4 As explained in #47, unfortunately, we can only show the status dots when stories are visited. I'll keep this open in the hope that a full fix becomes available. |
This issue 😅 |
it would be great to have an option to disable the dots in the sidebar. |
Just noticed this too, using Storybook 7.5.3 |
The problem is still there, unfortunately. Only when you click onto the story itself, the dot shows up. |
Hey @etchteam
I'm trying to set up this addon, but i can't seem to get the sidebar dots working as i would expect.
I followed the setup instructions and added the necessary configuration to
.storybook/main.js
. But the sidebar dots did not appear.I looked through the code/issues and found where the dots come from:
https://github.com/etchteam/storybook-addon-status/blob/master/src/register.tsx#L29
After thinking on that i realized the first check seems off to me:
It seems that only leaf nodes can have a dot? Is that intentional? All my leaf nodes are missing
parameters.status
because I only putparameters.status
on the default story export as the docs prescribe. But that isn't a leaf node.I could see the dot if i put
parameters.status
on a single story (leaf node), but i have over 300 stories and really don't want to do that. I'd much prefer to define these at the component level, not the leaf.Perhaps i'm missing something or misunderstanding. Any help is much appreciated!
The text was updated successfully, but these errors were encountered: