-
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] Data Frames Summary Stats Bar #43986
[ML] Data Frames Summary Stats Bar #43986
Conversation
062d014
to
a9ea63a
Compare
Does the data displayed in the DF stats bar make sense? cc @peteharverson |
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.
Overall looks good, just added a few questions! And just a general thought: IMHO is looks fine to get it done for this PR, but maybe in a follow up we could move the span
elements with custom CSS to EUI using flex
for example.
@@ -0,0 +1,7 @@ | |||
.stat { |
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.
Suggest to make the class names prefixed with ml
and not nested.
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.
Sounds good - this will likely be fixed by the follow up to switch to using the Eui Stat component.
...ml/public/data_frame/pages/transform_management/components/transform_list/transform_list.tsx
Show resolved
Hide resolved
💔 Build Failed |
I tested this locally and the stats bar didn't pick up the necessary styles - could you please have a look and confirm it's working for you - could it be that you missed adding/pushing another Looks like I needed to remove an import for styles that was deleted from |
The presentation of these stats could be quickly enhanced by using the |
height: 42px; | ||
padding: 14px; | ||
background-color: $euiColorLightestShade; | ||
} |
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.
You could also drop these styles by using EuiStat
inside of an EuiFlexGroup
.
@ryankeairns - thanks so much for taking a look! |
💚 Build Succeeded |
💔 Build Failed |
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.
LGTM
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.
LGTM
* move stat component out of jobStatsBar for reuse * create transformStatsBar component * add transformStatsBar to DF page * update tests * move create statsBar component for reuse * move stat component into statsBar component * move statsBar related types to stats_bar dir * rename scss file. remove unnecessary import
Summary
Total
,Batch
,Continuous
,Started
, andFailed
(if any)Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.- [ ] Any text added follows EUI's writing guidelines, uses sentence case text and includes i18n support- [ ] Documentation was added for features that require explanation or tutorials- [ ] This was checked for keyboard-only and screenreader accessibilityFor maintainers
- [ ] This was checked for breaking API changes and was labeled appropriately- [ ] This includes a feature addition or change that requires a release note and was labeled appropriately