-
Notifications
You must be signed in to change notification settings - Fork 31
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
Styleguide #95
Styleguide #95
Conversation
@florentferry, @Spone, Some questions:
|
For now, let's not add extra pages. We could also have components |
e798087
to
469f2ae
Compare
Not sure this part is easy to do. For now I just put style inside a style tag. Otherwise I:
I will continue this later, may be in the next week. |
I was thinking a bit about assets this last days and I notice two problems:
|
I worked on the default UI today. Here is what it looks like: We discussed the next steps with @nicolas-brousse. The idea to allow customization of the styleguide, and easy setup, is to:
This way, the user can customize the UI of the styleguide, by modifying components and reusing CSS variables from the main app. It's also possible to add JavaScript in those components, if needed. The assets are compiled using webpacker, with the same process as the main app existing pack.
|
Pull Request Test Coverage Report for Build 709
💛 - Coveralls |
The previous implementation (with `render ... rescue`) prevented from debugging the example file. Whenever an exception was raised, it displayed the fallback partial.
@nicolas-brousse I added more tests, we're now back over 98% coverage. What's left to test is: About Railtie vs. Engine:.
Source: https://api.rubyonrails.org/classes/Rails/Engine.html So I don't see any issue in using an Engine :) |
About Railtie vs. Engine: Okay. It was just to be sure with you and have your advice if needed. |
Here are a few more tasks:
|
I created #114 to do "support for adding static pages: add routes in the engine, so you just have to create the views in |
…ponent into add-style-guide-view
…ponent into add-style-guide-view
…ponent into add-style-guide-view
A really work in progress about adding style guide view.
Komponent::Component
by usingKomponent::ComponentPathResolver
@nicolas-brousseSupport for namespaced components in nav➡️ Add nested components support in styleguide #125Closes #94.