Lookbook - a work-in-progress ViewComponent development UI #1006
Unanswered
allmarkedup
asked this question in
Show and tell
Replies: 1 comment 11 replies
-
@allmarkedup very cool! I assume you've seen @jonspalmer's work on ViewComponent Storybook? Your project makes me wonder if we might eventually build something like this into the Previews functionality. What do you think @juanmanuelramallo? |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey all. I've been working on a little side project and thought I would share it with the community to see if anyone has any thoughts or feedback for me.
It's called Lookbook, the repo is here (with a demo app here) and it looks like this:
It's a browser-based UI (packaged as a Rails engine) for navigating, inspecting and rendering ViewComponent previews. It is intended to be dropped into projects to give a quick way to get up and running with developing components outside of the main app.
I originally built a rough version of it for the CoverageBook app (where I work) and I use that version everyday so I'm hoping this cleaned-up version will be useful for others too.
It's super early days (and I'm not a Rails developer!) so there is probably a lot that is broken in there but if anyone fancies giving it a try I'd love to get some feedback on it. I'm still getting my head around the best ways to do things in Rails.
It will likely only work with pretty 'standard' Rails/ViewComponent projects at the moment but I'm working to ensure that it will eventually handle more complex setups.
I've got lots of ideas of where I would like to take it in the future but for now I'd just like to get it working reliably across a wide range of projects.
Hope it's of interest to some of you :-)
Beta Was this translation helpful? Give feedback.
All reactions