-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
feat: Custom color schemes support #12210
Conversation
docs: add FAQ to custom color schemes
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.
LGTM with one nit.
I'm also wondering whether we should consolidate all setup extra
s to a single file and provide a somewhat more formalized API...
Codecov Report
@@ Coverage Diff @@
## master #12210 +/- ##
==========================================
- Coverage 66.20% 59.05% -7.15%
==========================================
Files 996 951 -45
Lines 49174 46661 -2513
Branches 4993 4316 -677
==========================================
- Hits 32554 27556 -4998
- Misses 16476 19105 +2629
+ Partials 144 0 -144
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
A few comments
@@ -20,6 +20,7 @@ import { setConfig as setHotLoaderConfig } from 'react-hot-loader'; | |||
import 'abortcontroller-polyfill/dist/abortcontroller-polyfill-only'; | |||
import moment from 'moment'; | |||
import { configure } from '@superset-ui/core'; | |||
import ColorScheme from '@superset-ui/core/lib/color/ColorScheme'; |
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.
We should probably export this (and other related ones) in @superset-ui/core
.
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.
Would you be ok with moving the example to config.py
? LGTM after that.
SUMMARY
Today colors schemes are loaded from @superset-ui/core
we should have support for individual deployments to inject their own sets of color scheme
the mechanism was copied from setup plugins logic
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TEST PLAN
ADDITIONAL INFORMATION