avo
avo copied to clipboard
feature: branding
Description
Adds the ability to change the primary color for easy branding throughout the app.

Checklist:
- [x] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] I have added tests that prove my fix is effective or that my feature works
Manual review steps
- Change the
brandingconfig inavo.rbinitializer to this (you can also change the colors) and observe the colors changed. Do the same with logos.
config.branding = {
colors: {
# BLUE
100 => "#CEE7F8",
400 => "#399EE5",
500 => "#0886DE",
600 => "#066BB2",
# RED
100 => "#FACDD4",
400 => "#F06A7D",
500 => "#EB3851",
600 => "#E60626",
# GREEN
100 => "#C5F1D4",
400 => "#3CD070",
500 => "#30A65A",
600 => "#247D43",
# ORANGE
100 => "#FFECCC",
400 => "#FFB435",
500 => "#FFA102",
600 => "#CC8102",
},
logo: "/avo-assets/logo.png",
logomark: "/avo-assets/logomark.png"
}
Manual reviewer: please leave a comment with output from the test if that's the case.
Code Climate has analyzed commit 4d22cab6 and detected 2 issues on this pull request.
Here's the issue category breakdown:
| Category | Count |
|---|---|
| Duplication | 2 |
View more on Code Climate.
Codecov Report
Base: 94.36% // Head: 94.37% // Increases project coverage by +0.01% :tada:
Coverage data is based on head (
4d22cab) compared to base (9ffc4ec). Patch coverage: 100.00% of modified lines in pull request are covered.
Additional details and impacted files
@@ Coverage Diff @@
## main #1133 +/- ##
==========================================
+ Coverage 94.36% 94.37% +0.01%
==========================================
Files 556 553 -3
Lines 11188 11227 +39
==========================================
+ Hits 10557 10596 +39
Misses 631 631
| Impacted Files | Coverage Δ | |
|---|---|---|
| lib/avo/dashboards/chartkick_card.rb | 97.05% <ø> (ø) |
|
| lib/avo/licensing/pro_license.rb | 100.00% <ø> (ø) |
|
| app/components/avo/actions_component.rb | 100.00% <100.00%> (ø) |
|
| app/components/avo/button_component.rb | 90.10% <100.00%> (ø) |
|
| ...onents/avo/fields/common/progress_bar_component.rb | 100.00% <100.00%> (ø) |
|
| app/helpers/avo/resources_helper.rb | 91.66% <100.00%> (ø) |
|
| lib/avo/configuration.rb | 55.33% <100.00%> (+1.33%) |
:arrow_up: |
| lib/avo/configuration/branding.rb | 100.00% <100.00%> (ø) |
|
| spec/dummy/config/initializers/avo.rb | 94.54% <100.00%> (+0.20%) |
:arrow_up: |
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.
:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
This PR has been merged into main. The functionality will be available in the next release.
Please check the release guide for more information.