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

[Security Solution] [Session View] Session view detail panel and timeline side panel css cleanup #129690

Conversation

kqualters-elastic
Copy link
Contributor

@kqualters-elastic kqualters-elastic commented Apr 7, 2022

Summary

Resolves #128960 and #129532. Also removes a hard coded light color for a color that works with both light and dark themes, and removes some unneeded importants. Leaving in draft to discuss alternatives to having the scroll behavior for the detail pop over come from security solution, as it would be more consistent with the existing flyout if it was handled in the session view. I think it would make more sense for a wrapper around the expandable accordions to be the part of the document that scrolls, inline with the table and json view in the timeline flyout.

Screen.Recording.2022-04-07.at.12.18.08.PM.mov

@kqualters-elastic kqualters-elastic added release_note:skip Skip the PR/issue when compiling release notes auto-backport Deprecated - use backport:version if exact versions are needed Team:Threat Hunting:Investigations Security Solution Investigations Team v8.2.0 Team: AWP: Platform Adaptive Workload Protection Platform team from Security Solution v8.3.0 labels Apr 7, 2022
@kqualters-elastic kqualters-elastic marked this pull request as ready for review April 7, 2022 16:22
@kqualters-elastic kqualters-elastic requested a review from a team April 7, 2022 16:22
@kqualters-elastic kqualters-elastic requested a review from a team as a code owner April 7, 2022 16:22
});

const sessionViewComponent = useMemo(() => {
const sessionViewSearchBarHeight = 118;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be a const in session_view/common/constants? I know @opauloh was also hard coding this value in css for his fullscreen fixes. see: https://github.com/elastic/kibana/pull/129257/files#diff-9596f81cf451c350ccfa751c180aa02d876954b8d4ecba208da82a2a17245da5R26

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ideally we'd also have a test to compare the const height with the actual rendered height of the toolbar, but that can always come later :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ya I think we should, but probably in a different pr and remove both magic-ish numbers, just to be sure this gets in the next BC

Copy link
Contributor

@mitodrummer mitodrummer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just the one minor suggestion, but otherwise LGTM!

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
securitySolution 4.8MB 4.8MB +327.0B
sessionView 60.0KB 59.9KB -63.0B
total +264.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Copy link
Contributor

@dplumlee dplumlee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@kqualters-elastic kqualters-elastic merged commit 9f305da into elastic:main Apr 7, 2022
@kqualters-elastic kqualters-elastic deleted the session-view-and-timeline-side-panel-css branch April 7, 2022 18:10
kibanamachine pushed a commit that referenced this pull request Apr 7, 2022
…line side panel css cleanup (#129690)

* Make session detail content scroll if needed

* Remove unneeded importants and hard coded light colors, make theme aware

* Use full screen styles, make the dualing flyouts work together

* Remove unused import

(cherry picked from commit 9f305da)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.2

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Apr 7, 2022
…line side panel css cleanup (#129690) (#129784)

* Make session detail content scroll if needed

* Remove unneeded importants and hard coded light colors, make theme aware

* Use full screen styles, make the dualing flyouts work together

* Remove unused import

(cherry picked from commit 9f305da)

Co-authored-by: Kevin Qualters <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed release_note:skip Skip the PR/issue when compiling release notes Team: AWP: Platform Adaptive Workload Protection Platform team from Security Solution Team:Threat Hunting:Investigations Security Solution Investigations Team v8.2.0 v8.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Session View] alert flyout does not appear on small screens in timeline
5 participants