-
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
[One Discover] Add summary column for logs contextual experience #192567
base: main
Are you sure you want to change the base?
[One Discover] Add summary column for logs contextual experience #192567
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
…ghiani/kibana into tonyghiani-feature/one-discover-summary-column-copy
…to feature/one-discover-summary-column
…ghiani/kibana into tonyghiani-feature/one-discover-summary-column
…ature/one-discover-summary-column
…ghiani/kibana into feature/one-discover-summary-column
…ghiani/kibana into feature/one-discover-summary-column
Hi @davismcphee, sorry for the late response, I've addressed most of your suggestions and spent time investigating the design issues you reported.
These issues were mostly caused by the text size, conditional rendering and the badge excessive size, I've been discussing workarounds/solutions with Ryan and the latest EUI changes should allow us to fix most of them.
This doesn't depend on the
I fixed it with feat(discover): apply shared actions to summary column, although I'm not particularly happy because the implementation promotes prop drilling at many levels, which increases the maintainability effort for this code. I spent some time refactoring, but it was widely affecting the scope of this work. It might be worth discussing this in future and tackling some refactoring to reduce the props drilling of these data table actions.
As per this comment on Figma, this was a design choice, I see it comes with an accessibility issue.
I think you mean the size of the badges doesn't scale with density changes. If so,
The skipped tests are purely focused to check if the virtual columns were rendered. For the summary column, I added a Jest test for the content, and with test(discover): add FT for summary column displaying I updated the FT test for the cell renderer extension point, I think is ok to start like this since we might change more on this column soon.
Af far as I remember, this was intended to be a logs feature, as it purely relies on logs concepts, there is no specific Observability knowledge in the rendered data (apart from navigation to entities). I'll keep polishing the implementation but I think is ready for another round of review 👍 |
@tonyghiani I recall that thread and tried this on the oblt instance where this capability still exists. Using it makes me now feel it is better to leave it as it was (keyboard accessible; popovers on top of a modal) rather than remove the functionality. I don't have bandwidth to take this on - and I don't know that @l-suarez does either - so, in the meantime, I believe it would be preferable to keep it keyboard accessible until a more-complete alternative arises. |
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.
Looks good from the investigations side. Thanks.
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.
Great work on the updates! Basically all of the issues I reported have been resolved now, and it's looking nice and polished 👌 There are just a couple of final things left to address and this will be good to go on my end. We'll also clarify tomorrow in the sync that we're good to merge this into the generic logs profile just to be certain.
I think you mean the size of the badges doesn't scale with density changes.
Yeah I was referring to the text size of the badges, but if the scale is hardcoded, we're definitely good to leave it.
I updated the FT test for the cell renderer extension point, I think is ok to start like this since we might change more on this column soon.
Agreed, these tests should be good for now, thanks!
src/plugins/discover/public/components/data_types/logs/summary_column/content.tsx
Outdated
Show resolved
Hide resolved
src/plugins/discover/public/components/data_types/logs/summary_column/content.tsx
Outdated
Show resolved
Hide resolved
src/plugins/discover/public/components/data_types/logs/summary_column/content.tsx
Show resolved
Hide resolved
src/plugins/discover/public/components/data_types/logs/summary_column/utils.tsx
Show resolved
Hide resolved
data-test-subj={dataTestSubj} | ||
css={badgeCss} | ||
/> | ||
<EuiFlexGroup alignItems="center" css={{ height: '100%' }}> |
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 definitely agree there are challenges around vertically aligning the badges in cells, but in this case I think the magic pixel number results in a better UX than vertically centering for multiple lines:
I also think the upcoming EUI changes will fix the issue with badges being cut off for custom row height = 1, which gets rid of part of the issue. In this case I'd recommend we revert these changes to keep the negative margin and potentially address this separately as a followup if there's a better approach.
src/plugins/discover/public/application/context/context_app_content.tsx
Outdated
Show resolved
Hide resolved
…ight Fix default grid density and row height passed to `getCellRenderers`
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.
All of the remaining comments have been resolved, and we got confirmation we're good to merge this into the generic logs profile. There's just one tiny thing left to do (revert some changes), then I promise I'll get out of the way and let this get merged 🙏
data-test-subj={dataTestSubj} | ||
css={badgeCss} | ||
/> | ||
<EuiFlexGroup alignItems="center" css={{ height: '100%' }}> |
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.
💚 Build Succeeded
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Page load bundle
Unknown metric groupsAPI count
async chunk count
ESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
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.
Looks like we're all good to go now, so let's merge this thing 🤘 Awesome work on this, thanks! It's a huge step forward for One Discover and I'm excited to get it out to users soon.
📓 Summary
Closes https://github.com/elastic/logs-dev/issues/165
This work introduces a Summary column as a replacement for the Document one for the Discover logs contextual experience.
🎥 Demo
summary_column_demo_fullhd.mov
💡 Reviewer hints
I left notes through the changes to help answer some questions.
The notable changes on this PR are:
Document
column toSummary
.resource
andcontent
virtual columns into a singleSummary
column, which replaces the default Summary content for the logs' contextual experience.