tajo / ladle

🥄 Develop, test and document your React story components faster.
https://www.ladle.dev
MIT License
2.63k stars 93 forks source link

Add expandStoryTree config option #432

Closed jozefhruska closed 1 year ago

jozefhruska commented 1 year ago

This PR adds a new expandStoryTree config option. So far, it's undocumented, as I saw that the options added in #427 are also not documented, but I'll gladly update the documentation if necessary.

Related to #423.

changeset-bot[bot] commented 1 year ago

🦋 Changeset detected

Latest commit: 0e1cb78b7fc2a5a0106f360908c99e9299352a62

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 12 packages | Name | Type | | ----------------- | ----- | | @ladle/react | Minor | | test-config | Minor | | example | Patch | | test-addons | Patch | | test-config-ts | Patch | | test-css | Patch | | test-decorators | Patch | | test-flow | Patch | | test-playwright | Patch | | test-programmatic | Patch | | test-provider | Patch | | test-swc | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ladle ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 27, 2023 6:52am
tajo commented 1 year ago

It would be nice to also implement this https://github.com/tajo/ladle/issues/422 since that would greatly cut the length of expanded navigation.

jozefhruska commented 1 year ago

It would be nice to also implement this #422 since that would greatly cut the length of expanded navigation.

Definitely! Would you like it to be a part of this PR or a separate one?

tajo commented 1 year ago

Would you like it to be a part of this PR or a separate one?

Probably as a part of this PR since this mostly just renames a few things / changes config but having single story files being "hoisted" would make this feature very practical.

tajo commented 1 year ago

Actually, changed my mind on https://github.com/tajo/ladle/issues/422

so this can be landed as is

tajo commented 1 year ago

Feel free to reopen after resolving conflicts/documenting.