Skip to content
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

Merged
merged 3 commits into from
Apr 7, 2020
Merged

fix(ui): fixed dark lines in checks #17651

merged 3 commits into from
Apr 7, 2020

Conversation

asalem1
Copy link
Contributor

@asalem1 asalem1 commented Apr 7, 2020

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.

  • CHANGELOG.md updated with a link to the PR (not the Issue)
  • Rebased/mergeable

check-color-normalized

@asalem1 asalem1 requested review from a team and TCL735 and removed request for a team April 7, 2020 15:30
@asalem1 asalem1 requested a review from a team as a code owner April 7, 2020 15:32
import React, {FC} from 'react'
import {connect} from 'react-redux'
import {Form, Grid} from '@influxdata/clockface'

Copy link
Contributor Author

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':
Copy link
Contributor Author

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,
Copy link
Contributor Author

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

@asalem1 asalem1 merged commit ffa48c5 into master Apr 7, 2020
@asalem1 asalem1 deleted the fix/checks-dark-color branch April 7, 2020 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Check view page renders time series with dark color
3 participants