-
Notifications
You must be signed in to change notification settings - Fork 37
Create custom styles for admin #337
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
Create custom styles for admin #337
Conversation
microstudi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job.
To finish it, please check the comments, there are some inconsistencies in the constrains plural names.
On the other hand, the spec spec/system/admin/admin_manages_scoped_admin_styles_spec.rb is repeating a lot of code, from spec/system/admin/admin_manages_scoped_styles_spec.rb. Can you do the same as is done in spec/system/admin/admin_manages_proposal_custom_fields_spec.rb using shared examples?
And, finally, please update the screenshots and explanations from the README.md file. Probably editing the point 8 with two subsection 8.1 (public styles) and 8.2 (admin styles)
app/overrides/layouts/decidim/admin/_header/add_awesome_tags.html.erb.deface
Outdated
Show resolved
Hide resolved
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #337 +/- ##
===========================================
+ Coverage 68.85% 96.75% +27.90%
===========================================
Files 80 140 +60
Lines 2106 3574 +1468
===========================================
+ Hits 1450 3458 +2008
+ Misses 656 116 -540 ☔ View full report in Codecov by Sentry. |
app/overrides/layouts/decidim/admin/_header/add_awesome_tags.html.erb.deface
Outdated
Show resolved
Hide resolved
app/overrides/layouts/decidim/admin/_header/add_awesome_custom_styles.html.erb.deface
Outdated
Show resolved
Hide resolved
microstudi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great work!
* divide custom_styles menu * refactor scoped_styles_controller * add scoped_admin_styles config_key * refactor commands * fix admin_manages_scoped_styles_spec * fix destroy_scoped_style_spec * apply custom_style in the admin * refactor form_scoped_styles * add scoped_admin_spec * fix key in plural * fix system specs * add custom_styles partial for admin * add trailing line * apply changes suggested * update readme * ignore unused keys * fix constraints_controller spec * fix admin spec * fix destroy_scoped_style_spec * fix awesome_summary_spec * fix user_uses_custom_time_zones_spec * create a new deface file * modify override method --------- Co-authored-by: Ivan Vergés <[email protected]>
* Create custom styles for admin (#337) * divide custom_styles menu * refactor scoped_styles_controller * add scoped_admin_styles config_key * refactor commands * fix admin_manages_scoped_styles_spec * fix destroy_scoped_style_spec * apply custom_style in the admin * refactor form_scoped_styles * add scoped_admin_spec * fix key in plural * fix system specs * add custom_styles partial for admin * add trailing line * apply changes suggested * update readme * ignore unused keys * fix constraints_controller spec * fix admin spec * fix destroy_scoped_style_spec * fix awesome_summary_spec * fix user_uses_custom_time_zones_spec * create a new deface file * modify override method --------- Co-authored-by: Ivan Vergés <[email protected]> * Add verification tweaks (#334) * add force verfication option * add text help. public logic * add specs * update awesome decidim ver * add specs * fix checksums * add pending verifications * add test cases * fix proposal private body edit * update text * restore gemfile * restores package.json * fix package.json * fix rubocop * fix summay specs * fix icons in menu and scoped styles views * fix javascript and erb * fix more specs * fix compact blank * fix scoped styles specs * fix scoped styles specs * fix verifications specs * fix 0.26 spec * fix 26 spec --------- Co-authored-by: Elvia Benedith <[email protected]>
🎩 What? Why?
Create custom styles for admin. Divide the current custom styles menu in two parts, one for the public frontend and the other for the admin panel.
📌 Related Issues
Link your PR to an issue
Testing
📷 Screenshots
menu
public frontend
admin panel