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][Timeline] Fix User not able to scroll down and access Alert table on adding long content in Timeline's Description #101486

Merged
merged 3 commits into from
Jun 16, 2021

Conversation

machadoum
Copy link
Member

@machadoum machadoum commented Jun 7, 2021

Summary

issue: #100259

1. Open timeline page

When the timeline description is too big, it takes too much space leaving almost no room for the list of events.
Screenshot 2021-06-07 at 13 15 18

To solve this problem I reused the component that is used to collapse the Event description.
Screenshot 2021-06-07 at 14 46 23

After change:

Initial state (collapsed)
Screenshot 2021-06-07 at 13 15 18

Expanded
Screenshot 2021-06-07 at 13 15 18


2. Timelines page

A long description also affects the "Timelines page", where the description cell takes too much space.

Screenshot 2021-06-07 at 13 15 18

To solve this second problem, we are truncating the content in 5 lines.

After change

Screenshot 2021-06-07 at 15 19 49

Checklist

@machadoum
Copy link
Member Author

@monina-n, could you take a look and let me know if my solution makes sense and how many lines we shall truncate the description on the "Timelines list"?

@machadoum machadoum added 7.14 candidate bug Fixes for quality problems that affect the customer experience release_note:skip Skip the PR/issue when compiling release notes Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:Threat Hunting Security Solution Threat Hunting Team v8.0.0 labels Jun 8, 2021
@machadoum machadoum requested a review from cnasikas June 9, 2021 15:30
@machadoum machadoum marked this pull request as ready for review June 9, 2021 15:30
@machadoum machadoum requested a review from a team as a code owner June 9, 2021 15:30
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-solution (Team: SecuritySolution)

@elasticmachine
Copy link
Contributor

Pinging @elastic/security-threat-hunting (Team:Threat Hunting)

@machadoum
Copy link
Member Author

@elasticmachine merge upstream

1 similar comment
@machadoum
Copy link
Member Author

@elasticmachine merge upstream

@machadoum machadoum changed the title Fix User not able to scroll down and access Alert table on adding long content in Timeline's Description [Security Solution][Timeline] Fix User not able to scroll down and access Alert table on adding long content in Timeline's Description Jun 14, 2021
@kibanamachine
Copy link
Contributor

💚 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 6.9MB 7.0MB +1.1KB

History

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

@machadoum machadoum self-assigned this Jun 16, 2021
@machadoum machadoum merged commit fbbbcf8 into elastic:master Jun 16, 2021
machadoum added a commit to machadoum/kibana that referenced this pull request Jun 16, 2021
…cess Alert table on adding long content in Timeline's Description (elastic#101486)

* Add LineClamp component to timeline description

* Truncate timeline description on timeline table

* Fix StyledLineClamp styled component performance issue

Read more: https://styled-components.com/docs/faqs#why-should-i-avoid-declaring-styled-components-in-the-render-method
machadoum added a commit that referenced this pull request Jun 16, 2021
…cess Alert table on adding long content in Timeline's Description (#101486) (#102301)

* Add LineClamp component to timeline description

* Truncate timeline description on timeline table

* Fix StyledLineClamp styled component performance issue

Read more: https://styled-components.com/docs/faqs#why-should-i-avoid-declaring-styled-components-in-the-render-method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience release_note:skip Skip the PR/issue when compiling release notes Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:Threat Hunting Security Solution Threat Hunting Team v7.14.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants