komponent
komponent copied to clipboard
An opinionated way of organizing front-end code in Ruby on Rails, based on components
After updating from v3.0.0.beta1 to https://github.com/komposable/komponent/commit/d1ae3df717caa3984939dfc829e688b00f715d44 to make komponent work after a Rails 6 update, the komponent components themselves are showing up in the styleguide sidebar: I'm seeing something like...
Could be nice to do tests with ruby 2.7 and check errors/deprecations.
I think it could be nice to be able to use `ActiveModel::Validations` on a component.
**Version:** 3.0.0.beta1 After doing: ```bash rails generate komponent:install rails generate komponent:styleguide rails generate komponent:examples ``` I get the following error: ```bash …/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/komponent-3.0.0.beta1/lib/generators/component/templates/examples.html.haml.erb:1:in `template': undefined local variable or method `component_name' for...
* [x] Use` ActionController::Base` instead `ApplicationController for Styleguide` * [x] Set locale in `Komponent::StyleguideController` * [x] Remove components helper and move into `Komponent::StyleguideController` * [ ] Support static pages on...
Related to #152
If we want to have a component that works directly with a model object, Rails application returns an error. With the following example. ```erb # frontent/components/post_card/_examples.html.erb ``` ```erb # frontent/components/post_card/_post_card.html.erb...
- [x] don't do nested css on komponent styleguide components, since `postcss-nested` (or `postcss-nesting`) is not installed by default with webpacker - [x] Add a `style.css` stylesheet file at `frontend/components/komponent/`...
Those days I'm working on testing some part of a Rails application. And I was asking me, how to test a component? But I haven't a answer. So I open...