-
-
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
Add a category feature to Storybook. #458
Comments
What are you thinking this could be used for? I'm interested. |
It's about organizing a pretty large storybook. Now we are thinking about moving this into tags. We can tag stories. Then we can filter them our focus on a set of tags at a moment. |
We need this also, we do have a internal storybook with around 200 different stories of different "packages", I like the idea of tagging stories so you can have some overlap between them. |
Is this on the roadmap? |
@jbovenschen I'd love to hear about your idea's how your large library could be improved. Technically, I think what would be interesting is to allow addons to provide custom UI, in this department. that way, people can create or choose a story-navigator that suits their project. |
The structure of our repo is as follows; It's a mono-repo build using lerna, so we have around 30 packages, with all of their own primitives and stories. Those packages could have both bindings to react-dom and react-native. This could be solved with some kind of glob you could pass to the start-storybook command. Another issue is when trying to run all the storybook packages at once, this will be super heavy for a clean webpack run, because you would not change most of the packages, could possibly be solved by using dll's within webpack, dll's would also be nice for the core packages and plugins used by storybook because you would definitely not change them when building ui-components. Improving the ui could be done with the earlier idea of tag's where you could define the used packages per story. Hope this helps to give you any idea. |
Looks like |
@jbovenschen FYI you can control the loader like this in
I'm sure there are good reasons to build this into storybook, but just wanted to let you know that it should be easy to get something working on the current version. |
Improving webpack performance using:
IS something I have in mind doing. |
I'm not sure what you mean by:
Do you mean you want to control which versions of react storybook uses? |
Currently I don't have much time to work on another project, besides other stuff. But if nobody takes it maybe I will in the future.
I meant to say that there is no "Build in method" to filter stories, so we use a method like @shilman describes. Maybe something we could add to the docs? |
Yes, we should add this to the docs, and have a demo-setup using it! |
No description provided.
The text was updated successfully, but these errors were encountered: