-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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 ] - Better row indicators with getRowIndicator
callback
#206736
Conversation
Pinging @elastic/security-threat-hunting-investigations (Team:Threat Hunting:Investigations) |
...ons/security/plugins/security_solution/public/timelines/components/timeline/body/helpers.tsx
Outdated
Show resolved
Hide resolved
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.
Adding even more logic to those styled components we're trying to get rid off 😆
This one won't be fun to convert to @emtion/react
! Problem for future us though...
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.
Yes, it is too loaded a component and i have been looking for an opportunity to break it down. But i agree, this PR is not right for it..
Starting backport for target branches: 8.x |
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Module Count
Async chunks
History
|
…callback (elastic#206736) ## Summary Recently unified table introduced `getRowIndicator` callback to add row highlighting. Today Security solution achieves that by using `border-left` style. This PR replaces that `border-left` with `getRowIndicator` . > [!Note] > One thing to note is that `Event/Row Renderers` will still make use of `border-left` as it is a cell and `getRowIndicator` applies only to a complete `row`. ### Without Row Renderers || Before | After | |---|---|---| |Query Tab | ![image](https://github.com/user-attachments/assets/bb5405f6-9403-40b3-9cec-4dab1aeb4606) | ![image](https://github.com/user-attachments/assets/38fd410f-9d2e-4ed6-a194-e3681ed07c3e)| |Correlation Tab| ![image](https://github.com/user-attachments/assets/f8914ade-5e5f-4d0c-9bfc-dd4667f252e7)|![image](https://github.com/user-attachments/assets/d86fdf46-0fd9-4a28-bec1-381783a3641c)| ### With Row Renderers || Before | After | |---|---|---| |Query Tab | ![image](https://github.com/user-attachments/assets/4f0d2777-9e5e-4685-abaa-5d5eece655b4)|![image](https://github.com/user-attachments/assets/8ce6b8a3-bbc8-4919-941a-fa0b2ab5254e)| |Correlation Tab|![image](https://github.com/user-attachments/assets/560ef16e-abe0-45f9-8c47-f1cde43facc1)|![image](https://github.com/user-attachments/assets/576ee2eb-258b-4d51-90ce-1848944aea2a)| ### Checklist Check the PR satisfies following conditions. Reviewers should verify this PR satisfies this list as well. - [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md) - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios (cherry picked from commit 3d37119)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…callback (elastic#206736) ## Summary Recently unified table introduced `getRowIndicator` callback to add row highlighting. Today Security solution achieves that by using `border-left` style. This PR replaces that `border-left` with `getRowIndicator` . > [!Note] > One thing to note is that `Event/Row Renderers` will still make use of `border-left` as it is a cell and `getRowIndicator` applies only to a complete `row`. ### Without Row Renderers || Before | After | |---|---|---| |Query Tab | ![image](https://github.com/user-attachments/assets/bb5405f6-9403-40b3-9cec-4dab1aeb4606) | ![image](https://github.com/user-attachments/assets/38fd410f-9d2e-4ed6-a194-e3681ed07c3e)| |Correlation Tab| ![image](https://github.com/user-attachments/assets/f8914ade-5e5f-4d0c-9bfc-dd4667f252e7)|![image](https://github.com/user-attachments/assets/d86fdf46-0fd9-4a28-bec1-381783a3641c)| ### With Row Renderers || Before | After | |---|---|---| |Query Tab | ![image](https://github.com/user-attachments/assets/4f0d2777-9e5e-4685-abaa-5d5eece655b4)|![image](https://github.com/user-attachments/assets/8ce6b8a3-bbc8-4919-941a-fa0b2ab5254e)| |Correlation Tab|![image](https://github.com/user-attachments/assets/560ef16e-abe0-45f9-8c47-f1cde43facc1)|![image](https://github.com/user-attachments/assets/576ee2eb-258b-4d51-90ce-1848944aea2a)| ### Checklist Check the PR satisfies following conditions. Reviewers should verify this PR satisfies this list as well. - [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md) - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
…Indicator` callback (#206736) (#207387) # Backport This will backport the following commits from `main` to `8.x`: - [[ Security Solution ] - Better row indicators with `getRowIndicator` callback (#206736)](#206736) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Jatin Kathuria","email":"jatin.kathuria@elastic.co"},"sourceCommit":{"committedDate":"2025-01-21T15:28:55Z","message":"[ Security Solution ] - Better row indicators with `getRowIndicator` callback (#206736)\n\n## Summary\n\nRecently unified table introduced `getRowIndicator` callback to add row\nhighlighting. Today Security solution achieves that by using\n`border-left` style.\n\nThis PR replaces that `border-left` with `getRowIndicator` . \n\n> [!Note]\n> One thing to note is that `Event/Row Renderers` will still make use of\n`border-left` as it is a cell and `getRowIndicator` applies only to a\ncomplete `row`.\n\n### Without Row Renderers\n\n|| Before | After |\n|---|---|---|\n|Query Tab |\n![image](https://github.com/user-attachments/assets/bb5405f6-9403-40b3-9cec-4dab1aeb4606)\n|\n![image](https://github.com/user-attachments/assets/38fd410f-9d2e-4ed6-a194-e3681ed07c3e)|\n|Correlation Tab|\n![image](https://github.com/user-attachments/assets/f8914ade-5e5f-4d0c-9bfc-dd4667f252e7)|![image](https://github.com/user-attachments/assets/d86fdf46-0fd9-4a28-bec1-381783a3641c)|\n\n### With Row Renderers\n\n|| Before | After |\n|---|---|---|\n|Query Tab |\n![image](https://github.com/user-attachments/assets/4f0d2777-9e5e-4685-abaa-5d5eece655b4)|![image](https://github.com/user-attachments/assets/8ce6b8a3-bbc8-4919-941a-fa0b2ab5254e)|\n|Correlation\nTab|![image](https://github.com/user-attachments/assets/560ef16e-abe0-45f9-8c47-f1cde43facc1)|![image](https://github.com/user-attachments/assets/576ee2eb-258b-4d51-90ce-1848944aea2a)|\n\n\n\n### Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers should verify this PR satisfies this list as well.\n\n- [x] Any text added follows [EUI's writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\nsentence case text and includes [i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios","sha":"3d37119ce7a7f05c7f60995db176293daab0d043","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Threat Hunting:Investigations","backport:prev-minor","backport:version"],"title":"[ Security Solution ] - Better row indicators with `getRowIndicator` callback","number":206736,"url":"https://github.com/elastic/kibana/pull/206736","mergeCommit":{"message":"[ Security Solution ] - Better row indicators with `getRowIndicator` callback (#206736)\n\n## Summary\n\nRecently unified table introduced `getRowIndicator` callback to add row\nhighlighting. Today Security solution achieves that by using\n`border-left` style.\n\nThis PR replaces that `border-left` with `getRowIndicator` . \n\n> [!Note]\n> One thing to note is that `Event/Row Renderers` will still make use of\n`border-left` as it is a cell and `getRowIndicator` applies only to a\ncomplete `row`.\n\n### Without Row Renderers\n\n|| Before | After |\n|---|---|---|\n|Query Tab |\n![image](https://github.com/user-attachments/assets/bb5405f6-9403-40b3-9cec-4dab1aeb4606)\n|\n![image](https://github.com/user-attachments/assets/38fd410f-9d2e-4ed6-a194-e3681ed07c3e)|\n|Correlation Tab|\n![image](https://github.com/user-attachments/assets/f8914ade-5e5f-4d0c-9bfc-dd4667f252e7)|![image](https://github.com/user-attachments/assets/d86fdf46-0fd9-4a28-bec1-381783a3641c)|\n\n### With Row Renderers\n\n|| Before | After |\n|---|---|---|\n|Query Tab |\n![image](https://github.com/user-attachments/assets/4f0d2777-9e5e-4685-abaa-5d5eece655b4)|![image](https://github.com/user-attachments/assets/8ce6b8a3-bbc8-4919-941a-fa0b2ab5254e)|\n|Correlation\nTab|![image](https://github.com/user-attachments/assets/560ef16e-abe0-45f9-8c47-f1cde43facc1)|![image](https://github.com/user-attachments/assets/576ee2eb-258b-4d51-90ce-1848944aea2a)|\n\n\n\n### Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers should verify this PR satisfies this list as well.\n\n- [x] Any text added follows [EUI's writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\nsentence case text and includes [i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios","sha":"3d37119ce7a7f05c7f60995db176293daab0d043"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/206736","number":206736,"mergeCommit":{"message":"[ Security Solution ] - Better row indicators with `getRowIndicator` callback (#206736)\n\n## Summary\n\nRecently unified table introduced `getRowIndicator` callback to add row\nhighlighting. Today Security solution achieves that by using\n`border-left` style.\n\nThis PR replaces that `border-left` with `getRowIndicator` . \n\n> [!Note]\n> One thing to note is that `Event/Row Renderers` will still make use of\n`border-left` as it is a cell and `getRowIndicator` applies only to a\ncomplete `row`.\n\n### Without Row Renderers\n\n|| Before | After |\n|---|---|---|\n|Query Tab |\n![image](https://github.com/user-attachments/assets/bb5405f6-9403-40b3-9cec-4dab1aeb4606)\n|\n![image](https://github.com/user-attachments/assets/38fd410f-9d2e-4ed6-a194-e3681ed07c3e)|\n|Correlation Tab|\n![image](https://github.com/user-attachments/assets/f8914ade-5e5f-4d0c-9bfc-dd4667f252e7)|![image](https://github.com/user-attachments/assets/d86fdf46-0fd9-4a28-bec1-381783a3641c)|\n\n### With Row Renderers\n\n|| Before | After |\n|---|---|---|\n|Query Tab |\n![image](https://github.com/user-attachments/assets/4f0d2777-9e5e-4685-abaa-5d5eece655b4)|![image](https://github.com/user-attachments/assets/8ce6b8a3-bbc8-4919-941a-fa0b2ab5254e)|\n|Correlation\nTab|![image](https://github.com/user-attachments/assets/560ef16e-abe0-45f9-8c47-f1cde43facc1)|![image](https://github.com/user-attachments/assets/576ee2eb-258b-4d51-90ce-1848944aea2a)|\n\n\n\n### Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers should verify this PR satisfies this list as well.\n\n- [x] Any text added follows [EUI's writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\nsentence case text and includes [i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios","sha":"3d37119ce7a7f05c7f60995db176293daab0d043"}}]}] BACKPORT--> Co-authored-by: Jatin Kathuria <jatin.kathuria@elastic.co>
…callback (elastic#206736) ## Summary Recently unified table introduced `getRowIndicator` callback to add row highlighting. Today Security solution achieves that by using `border-left` style. This PR replaces that `border-left` with `getRowIndicator` . > [!Note] > One thing to note is that `Event/Row Renderers` will still make use of `border-left` as it is a cell and `getRowIndicator` applies only to a complete `row`. ### Without Row Renderers || Before | After | |---|---|---| |Query Tab | ![image](https://github.com/user-attachments/assets/bb5405f6-9403-40b3-9cec-4dab1aeb4606) | ![image](https://github.com/user-attachments/assets/38fd410f-9d2e-4ed6-a194-e3681ed07c3e)| |Correlation Tab| ![image](https://github.com/user-attachments/assets/f8914ade-5e5f-4d0c-9bfc-dd4667f252e7)|![image](https://github.com/user-attachments/assets/d86fdf46-0fd9-4a28-bec1-381783a3641c)| ### With Row Renderers || Before | After | |---|---|---| |Query Tab | ![image](https://github.com/user-attachments/assets/4f0d2777-9e5e-4685-abaa-5d5eece655b4)|![image](https://github.com/user-attachments/assets/8ce6b8a3-bbc8-4919-941a-fa0b2ab5254e)| |Correlation Tab|![image](https://github.com/user-attachments/assets/560ef16e-abe0-45f9-8c47-f1cde43facc1)|![image](https://github.com/user-attachments/assets/576ee2eb-258b-4d51-90ce-1848944aea2a)| ### Checklist Check the PR satisfies following conditions. Reviewers should verify this PR satisfies this list as well. - [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md) - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
Summary
Recently unified table introduced
getRowIndicator
callback to add row highlighting. Today Security solution achieves that by usingborder-left
style.This PR replaces that
border-left
withgetRowIndicator
.Note
One thing to note is that
Event/Row Renderers
will still make use ofborder-left
as it is a cell andgetRowIndicator
applies only to a completerow
.Without Row Renderers
With Row Renderers
Checklist
Check the PR satisfies following conditions.
Reviewers should verify this PR satisfies this list as well.