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
Generate stories for Phoenix 1.7 core components #187
Comments
Hey Zach 👋 This would be indeed a great addition. My opinion:
If you want to do it, feel free to open a PR :) |
Happy to get things started and hopefully see it through! Any particular organization/implementation opinions? What I’m basically thinking at the moment is:
|
Let's ship it Zach! 🚀 |
Hey @zachallaun 👋 Did you already have a chance to take a look at it? |
Hey @cblavier! I got a basic setup working but then life got in the way, unfortunately, and I haven't had time to revisit it. It's still on my radar, but I'm not sure that it makes sense to block the One option might be to ship this in two steps:
Edit: Also, if you or anyone else wants to jump in and just get this done, that's totally reasonable! I don't want to be a blocker for anything. |
Hey Zach, I'm sorry I didn't get back to you sooner. I'm planning to work a few days on the storybook this week so I'll make sure to look at what you achieved and give you some feedback |
@zachallaun, I just had a look at your code, it's neat, thank you 👌 Do you want to continue working on this? I still have a few tickets that need to get done before shipping 0.5.0 |
Great! I’ll circle back around to this — I should be able to at least contribute the scaffolding to ship with 0.5 and then we can work on building out the core component stories in a separate PR to ship later. |
That's great! |
Since I just shipped the support for a new kind of story (examples) we will also need to improve generators to generate a full UI example with multiple core components |
Merged #239 |
Now that Phoenix 1.7 is in RC, I’m wondering if it would make sense to extend the generator to support automatically generating stories for all
CoreComponents
that are created for you by default. This would be a really killer feature, both for this project and for Phoenix.Some things to consider:
phx.gen.storybook
auto-detect the presence of Phoenix 1.7-generated CoreComponents? Or should it be under a flag?--core-components-version 1.7
and have it default to whatever is in mix.lock.I’d like to contribute if possible and if there’s a good direction/desire to see something like this merged!
The text was updated successfully, but these errors were encountered: