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
Colors Pattern Customization #17076
Colors Pattern Customization #17076
Conversation
Upgrading to V6
…[option name: colors]
…ors] + dashboard model modified to have custom colors flag + ColorsLine control integrated into dashboard settings + ColorsLine control integrated into graph panel settings + some modifications done on series rendering *developer documentation will be added later
note: linter for go files fixed (failed and prevented commit) # Conflicts resolved: # packages/grafana-ui/src/components/index.scss # packages/grafana-ui/src/components/index.ts # public/app/core/angular_wrappers.ts # public/app/features/dashboard/state/DashboardModel.ts # public/app/plugins/panel/graph/data_processor.ts # public/app/plugins/panel/graph/module.ts
@torkelo Please review the code, I tested it and it was working bug free. I will make an MD file later as a developers' guide on how to use the new control and integrate the new feature of coloring into their panels but that's not mandatory right now. the auto checker seems to have failed due to the comparison it's making to a snapshot which will never match the new model because it's changed. also the lint check failed because of access permission denied, sounds like a strange thing with the shell file. BTW I had to take the liberty to change the lint check on staged changes a little because the pattern defined for the go files was failing (not correct syntax) so I changed it to pkg/. and it formatted all go files. |
@CME64 -- you may want to look at the PR and make sure it is only including things you really intent to change... it looks like it has changed 1800 files! |
Please open a feature request describing your use case / scenario (problem) and how this solves that use case / problem. We will then have to wait some time to gauge the interest in that feature request. The demand for a completely custom series color palette has not been high (no feature request opened in 5 years for this). So it's not likely this will be merged. One way I see this could be done would be for custom palettes & named palettes that could be defined in a config file in the backend, and set as default on the server, org & dashboard level. |
@ryantxu that's due to the project being a TS & TSX, all those files are generated/compiled files. I have only added one file and modified like 5 or 6 others. this could be due to the changes to the model of the dashboard which is a main component of the system propagating throughout the files. @torkelo I will submit a use case for this feature, I have only developed it when it was requested many times by my company's clients at work and thought I should share it into this great project the proper way with UI controls and ease of use instead of just modifying the json. do I need to reference this PR in the request in a specific format? and what's the procedure you're following to gauge the interest of a feature? |
thumbs up votes on the feature request issue.
Follow the building from source docs, the webpack commands (yarn start) does not generate any js files in the source directories, only generates output in the public/build directory which is git ignored |
@torkelo yes most of the files included are from public/dist and I'm pretty sure it's not ignored |
yes, if you can fix a PR that only includes your actual changes that would help. |
@torkelo Seems difficult to do after the push. What if I push a change to the ignore file and you try to merge again, it may show less file changes while ignoring the public/dist directory. What do you think? |
New Features:
Expectations:
how to use the control:
notes: