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

FIX/NEW: Stories are now fetched dynamically from related modules #901

Merged

Conversation

ScopeyNZ
Copy link
Contributor

@ScopeyNZ ScopeyNZ commented Jun 26, 2019

Modules that stories need to be gathered from should have a .ss-storybook.js configuration file in their root directory

I'll add some documentation in a framework PR, and then I'll add the .ss-storybook.js to asset-admin too.

I can rebase this against the minor branch if required but as this is dev changes I thought it'd be nice to have this storybook enhancement in place for fixing bugs or developing features in modules based on admin@1.4

Fixes #785

Related PRs:

@robbieaverill
Copy link
Contributor

Fixes #785?

@ScopeyNZ
Copy link
Contributor Author

Fixes #785?

With one slight caveat - modules still need to opt-in with a file in the root of the module.

@robbieaverill
Copy link
Contributor

Good enough =) nice one

Copy link
Contributor

@robbieaverill robbieaverill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool! Haven't tested it. I also don't think this needs to be a patch release, retarget at 1 branch?

.storybook/lib/storyTeller.js Outdated Show resolved Hide resolved
.travis.yml Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
@ScopeyNZ
Copy link
Contributor Author

I should re-target this at 1.

ScopeyNZ and others added 3 commits July 19, 2019 11:25
Modules that stories need to be gathered from should have a .ss-storybook.js configuration file in their root directory
Co-Authored-By: Robbie Averill <robbie@averill.co.nz>
Caused by trying to realpath a non-existent file. This commit also updates code docs
@ScopeyNZ ScopeyNZ changed the base branch from 1.4 to 1 July 18, 2019 23:25
@ScopeyNZ
Copy link
Contributor Author

Ok that's retargetted now. I've addressed the feedback too. Hopefully we can get this merged for modules to use

@robbieaverill robbieaverill merged commit cf7708e into silverstripe:1 Aug 23, 2019
@robbieaverill robbieaverill deleted the pulls/1.4/dynamic-stories branch August 23, 2019 03:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The pattern library should auto discover components to include, rather than hard coding them
3 participants