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 ] - Better row indicators with getRowIndicator callback #206736

Merged
merged 13 commits into from
Jan 21, 2025

Conversation

logeekal
Copy link
Contributor

@logeekal logeekal commented Jan 15, 2025

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 image
Correlation Tab image image

With Row Renderers

Before After
Query Tab image image
Correlation Tab image image

Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

@logeekal logeekal added Team:Threat Hunting:Investigations Security Solution Investigations Team backport:prev-minor Backport to (9.0) the previous minor version (i.e. one version back from main) backport:version Backport to applied version labels release_note:skip Skip the PR/issue when compiling release notes labels Jan 15, 2025
@logeekal logeekal marked this pull request as ready for review January 15, 2025 14:58
@logeekal logeekal requested a review from a team as a code owner January 15, 2025 14:58
@elasticmachine
Copy link
Contributor

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

Copy link
Contributor

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...

Copy link
Contributor Author

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..

@logeekal logeekal enabled auto-merge (squash) January 21, 2025 12:56
@logeekal logeekal merged commit 3d37119 into elastic:main Jan 21, 2025
8 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

https://github.com/elastic/kibana/actions/runs/12890255441

@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #55 / InfraOps App Metrics UI Node Details #Asset Type: host Processes Tab should render processes tab and with Total Value summary

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
securitySolution 6601 6602 +1

Async chunks

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

id before after diff
securitySolution 21.3MB 21.3MB +650.0B

History

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jan 21, 2025
…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)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.x

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

Questions ?

Please refer to the Backport tool documentation

cqliu1 pushed a commit to cqliu1/kibana that referenced this pull request Jan 21, 2025
…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
kibanamachine added a commit that referenced this pull request Jan 21, 2025
…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>
viduni94 pushed a commit to viduni94/kibana that referenced this pull request Jan 23, 2025
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (9.0) the previous minor version (i.e. one version back from main) backport:version Backport to applied version labels release_note:skip Skip the PR/issue when compiling release notes Team:Threat Hunting:Investigations Security Solution Investigations Team v8.18.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants