-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[ML] Anomaly Detection: Adds 'Add to dashboard' action for Single Metric Viewer #182538
[ML] Anomaly Detection: Adds 'Add to dashboard' action for Single Metric Viewer #182538
Conversation
Pinging @elastic/ml-ui (:ml) |
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.
Just one minor comment. Otherwise tested and LGTM
defaultMessage="Add to dashboard" | ||
/> | ||
), | ||
icon: 'search', |
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.
I don't think this icon is needed. The actions for the anomaly swim lane and anomaly charts only use text.
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.
Removed in eeacd0d
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.
LGMT, one question about the inline styles and naming suggestion
|
||
return ( | ||
<> | ||
<EuiFlexGroup style={{ float: 'right' }} alignItems="center"> |
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.
I know you just moved this code, but I wonder if we can get rid of the inline styles? Do we need the float here?
toggleShowModelBoundsHandler: () => void; | ||
toggleShowAnnotationsHandler: () => void; | ||
toggleShowForecastHandler: () => void; |
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.
Shall we follow the naming convention for controlled component?
toggleShowModelBoundsHandler: () => void; | |
toggleShowAnnotationsHandler: () => void; | |
toggleShowForecastHandler: () => void; | |
onShowModelBoundsChange: () => void; | |
onShowAnnotationsChange: () => void; | |
onShowForecastChange: () => void; |
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.
Good call - updated in eacccc6
@elasticmachine merge upstream |
@elasticmachine merge upstream |
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Module Count
Async chunks
History
To update your PR or re-run it, just comment with: |
Summary
Adds an action to add the Single Metric Viewer to new or existing dashboards.
Related meta issue: #181272
SMV-add-to-dash.mp4
Checklist
Delete any items that are not applicable to this PR.