-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Composition: MDX pages don't get the appropriate Sidebar list items #11302
Comments
Oof, I'm not sure, will have to investigate! |
@shilman would you be able to be on a call tomorrow with me (my morning) dot see what is causing this diff: I checked the generated json a bit, and I'm guessing it's some parameter | arg | global | config diff. But I'm not sure. Would love your assist. |
@ndelangen i'm guessing this has to do with parameter normalization, where global parameters are now stored separately from component/story parameters, but i'd be happy to look at this together. |
@tmeasday do you know what's up with this ☝️ |
@ndelangen initially when you load the outer storybook and it grabs the As for the second problem (what happens when you browse to a story) I don't think it is likely anything to do with normalization. AFAICT the display in the LHS is fairly simply associated with I can't see why it wouldn't be the same |
Thanks to @shilman I now know how to fix 1 of these 2 issues: |
To solve the other problem, we should probably start using this: storybook/lib/client-api/src/story_store.ts Lines 534 to 542 in 1d08802
over raw I assume we use |
The above should also be changed in the |
@ndelangen I think that makes sense. The reason I didn't implement this for more different consumers (e.g. storyshots, chromatic) was because i didn't understand the impact and didn't want to break anything. and i still don't understand the impact, but i think it sounds reasonable provided the calling code is updated to deal with those docsOnly stories. |
Whoopee!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.0.0-rc.5 containing PR #11537 that references this issue. Upgrade today to try it out! You can find this prerelease on the Closing this issue. Please re-open if you think there's still more to do. |
Jeepers creepers!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.0.0-rc.13 containing PR #11584 that references this issue. Upgrade today to try it out! You can find this prerelease on the Closing this issue. Please re-open if you think there's still more to do. |
I'm still seeing this issue on 6.1.x |
@ndelangen @ghengeveld did this regress with the sidebar refactor? |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
We want to address this in 6.3. If you want to contribute to Storybook, we'll prioritize PR review for any fixes here. And if you'd like any help getting started, please jump into the #support channel on our Discord: https://discord.gg/storybook |
Hi, |
@zavlalayan can you open a PR with a fix? |
Not sure if this is related, but when I am developing I get links to all stories on a page and when it is built and deployed the sidebar only shows links to the pages. Making you scroll down to what you want vs. having the nice jump links. I'm using mdx stories this is what my <Meta title="Styleguide/Forms" />
# Forms
---
## Inputs
<Story name='Inputs'>
{{
components: { Inputs },
template: '<Inputs />'
}}
</Story>
## Selects
<Story name='Selects'>
{{
components: { Selects },
template: '<Selects />'
}}
</Story>
## Checkboxes
<Story name='Checkboxes'>
{{
components: { Checkboxes },
template: '<Checkboxes />'
}}
</Story>
## Radios
<Story name='Radios'>
{{
components: { Radios },
template: '<Radios />'
}}
</Story>
## Layout
Vertical layout is preferred and should be the standard, however there are times when horizontal may make more sense.
<Story name='Layout'>
{{
components: { Layout },
template: '<Layout />'
}}
</Story>
## Validation
<Story name='Validation'>
{{
components: { Validation },
template: '<Validation />'
}}
</Story>
|
Describe the bug
I'm composing Storybook Design System into LearnStorybook's own Storybook. However the sidebar UI of the composed Storybook does not match SDS when it should.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expect to see the same sidebar UI when I compose an external Storybook. DocPages should be rendered as Docpages.
shilman ndelangen do you know why this would happen?
The text was updated successfully, but these errors were encountered: