-
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
[Explore] applying refresh chart overlay when chart is stale #4486
[Explore] applying refresh chart overlay when chart is stale #4486
Conversation
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.
To me refresh
means your new query generates new data, chart is inconsistent with latest query.
But when your control is messed up, you can not make a new query, so there is no new query results. Refresh
chart doesn't make sense, and not necessary since old chart is still valid.
disabled={!!this.props.errorMessage} | ||
bsStyle={this.props.errorMessage ? 'danger' : 'primary'} | ||
> | ||
<i className="fa fa-bolt" /> Refresh Chart |
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.
i18n: t('Refresh Chart')
@@ -424,3 +428,12 @@ g.annotation-container { | |||
content: "\f0dd"; | |||
color: @brand-primary; | |||
} | |||
|
|||
.refresh-chart-overlay { |
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 could use a more general name if we want to reuse that style for the loading spinner
a0ecc2e
to
c96ef64
Compare
@graceguo-supercat addressed the comments that came up in the team meeting- PTAL again! |
7132b07
to
a9d2616
Compare
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.
Can you fix linting error?
a9d2616
to
9cb7d03
Compare
…pache#4486)" This reverts commit 764a92c.
…4486) * adding refresh chart overlay when chart is out of sync with control panel * fading the visualization when stale * addressing comments from team on layout of UI
…4486) * adding refresh chart overlay when chart is out of sync with control panel * fading the visualization when stale * addressing comments from team on layout of UI
This is a follow up to #4459 to make it more obvious when the chart should be refreshed.
after making a change affecting the query:
dismissing the overlay still keeps the run button highlighted:
but if you make a change causing errors no overlay appears:
test plan:
reviewers:
@graceguo-supercat @michellethomas @mistercrunch