-
Notifications
You must be signed in to change notification settings - Fork 106
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
Stories in Docs view are sorted alphabetically #227
Comments
This is going to be a long description 😆 This is because the docs page show the stories in export order which is always alphabetical. It was mentioned in this comment that the DocsPage Primary was being replaced. This is because Primary.tsx calls componentStories() defined here: https://github.com/storybookjs/storybook/blob/64c31900964aa15420e6ec4e1d12f0b88961a457/lib/preview-web/src/PreviewWeb.tsx#L502 which is passed the csfFile from a couple lines above which is fetched using loadCSFFileByStoryId() which calls the importFn and passes the result to Now that explanation is out of the way @shilman and @tmeasday (since you both were on the PR 🙂) do you have any thoughts on what we should do here? |
OK, looks like this comment was a mistake @shilman: storybookjs/storybook#16626 (review) I think maybe we should revert that part of the change, the sorting of exports in |
I got the same problem |
I think that'd be great (the PR) but maybe @shilman can confirm, just in case? |
Thanks a lot guys for looking into this. Just switched from Webpack to this builder, and this took me by surprise rather immediately. Might I suggest to add it to the "Known Issues" in the README? |
@sebastienbarre it looks like @shilman is taking a look at how to fix this (storybookjs/storybook#17793 (comment)), let's see if we can't take care of it before adding it to that list of issues. |
@joshwooding sorry for not making the connection here until now, but I think we fixed the problem you describe with Are you sure this issue is still active? It sounds like @sebastienbarre is saying it is, but maybe they aren't on the latest alpha? |
@tmeasday yes, sorry, I'm not on the alpha, I'm using v6.4.19. Will this land in the 6.x? Or is it a 7.x only? Thank you. |
Oh awesome, I just checked our examples, which are on Closing this issue as fixed by storybookjs/storybook#17669. Thanks @tmeasday! |
Thanks all! No need to apologies @sebastienbarre just trying to clear up my own confusion :) |
Ah awesome 😄 |
Stories are shown in the sidebar in the correct order, but they are ordered in the docs view alphabetically.
I've confirmed this is the case when using the latest storybook-builder-vite (0.1.15) and storybook 6.4.18.
The text was updated successfully, but these errors were encountered: