-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
fix(ui): fixed dark lines in checks #17651
Conversation
8434925
to
9c1ac61
Compare
…s and removed unused components
import React, {FC} from 'react' | ||
import {connect} from 'react-redux' | ||
import {Form, Grid} from '@influxdata/clockface' | ||
|
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.
Since the CheckPlot
is only ever used in alerting in the VEO, there is no option to select CheckOptions
@@ -44,8 +43,6 @@ class OptionsSwitcher extends PureComponent<Props> { | |||
return <HeatmapOptions {...view.properties} /> | |||
case 'scatter': | |||
return <ScatterOptions {...view.properties} /> | |||
case 'check': |
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.
CheckOptions
is unused
@@ -308,7 +308,7 @@ const NEW_VIEW_CREATORS = { | |||
}, | |||
}, | |||
], | |||
colors: NINETEEN_EIGHTY_FOUR, |
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.
Switching over to a different default allows for a consistent color schema for the CheckViewProperties. This ensures that both the view history and default view are the same type
Closes #16923
Problem
CheckPlot line and font colors were not being mapped correctly onto the canvas
Solution
Updated the swagger.yml to accurately reflect the color struct (from an array of strings to an array of DashboardColors). Added mapping logic to isolate the colors in an array so that the colors could be set accurately and added the default options.