Skip to content
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

[Suggestion] add bookshelf feature to classify books/stories #1688

Closed
xareelee opened this issue Aug 19, 2017 · 2 comments
Closed

[Suggestion] add bookshelf feature to classify books/stories #1688

xareelee opened this issue Aug 19, 2017 · 2 comments

Comments

@xareelee
Copy link

xareelee commented Aug 19, 2017

I have categories for different purposes:

  • Component: display a UI element for reusability
  • Scene: display a whole UI page for a scene
  • App: display the whole app with full functionalities just like react-native start
  • and more... for testing specific functionalities with UI

My current stories are like this:

screen shot 2017-08-19 at 10 09 12

* [API] REST API
* [Scene] AdDialog
* [Comp] BannerButton
* [Comp] BannerView

I want to make stories to be classified in categories

* API
    * REST API
* App
    * new start
    * logged-in user
* Components
    * BannerButton
    * BannerView
    * ...
* Scenes
    * AdDialog
    * ....

using the following code

// original story: accept a string for the story name
storiesOf('[Scene] AdDialog', module)

// with category: accept an array for the category and story names
storiesOf(['Scene', 'AdDialog'], module)
@tmeasday
Copy link
Member

Hi @xareelee -- you can use the new Story Heirarchy feature to achieve this I think? https://medium.com/storybookjs/announcing-storybook-3-2-e00918a1764c

Try storiesOf('Scene / AdDialog', module) etc

@xareelee
Copy link
Author

Thanks for the info. I did not notice this new feature. It works after upgrading to 3.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants