Commit 157ec2b
[Security Solution] insights overview flyout v2 (elastic#268538)
## Summary
elastic#251817
First of two PRs. This one adds the entities overview to the Flyout v2
Insights section as a **render-only** change — every click handler is
just text for now. The follow-up PR wires those handlers to the
entity-details, alerts, misconfigurations and vulnerabilities tools
flyouts.
### Code changes
- `git mv` the `EntitiesOverview`, `HostEntityOverview`, and
`UserEntityOverview` components from
`flyout/document_details/right/components/` into
`flyout_v2/document/components/`.
- Decouple the components from `useDocumentDetailsContext`: inputs are
passed through props (`hit: DataTableRecord`, `scopeId`,
`renderCellActions`, optional `onShow*` callbacks). `dataAsNestedObject`
is fetched internally via `useEventDetails` when not supplied so the
legacy expandable flyout keeps avoiding the duplicate fetch.
- Render `EntitiesOverview` inside the Flyout v2 `InsightsSection` as
text (no links).
- Update the legacy expandable flyout's right `InsightsSection` and the
`HOST_PREVIEW_BANNER` / `USER_PREVIEW_BANNER` consumers
(`{host,user}_details.tsx`, `link_utils.ts`, related test files) to
import from the new location.
- Move the related `test_ids` constants from
`document_details/right/components/test_ids.ts` to
`flyout_v2/document/components/test_ids.ts`.
https://github.com/user-attachments/assets/7920f3fa-120c-4566-8009-464c9a5aeda1
### UI changes
- **Legacy expandable flyout (flag off):** Insights → Entities renders
identically to `main`. Clicking the section title still opens the
left-panel Entities tab; clicking host/user names still opens the legacy
preview panel.
- **Flyout v2 (flag on):** the Insights section now contains the
entities sub-panel showing host/user data, alert counts,
misconfigurations and vulnerabilities chips. **Every click on this
sub-panel is just text** A follow-up PR will wire them.
- **Discover:** same render-only behavior as Flyout v2.
## How to test
Add to `kibana.dev.yml`:
```
xpack.securitySolution.enableExperimental: [ 'newFlyoutSystemEnabled' ]
```
## What to look for when testing
- Insights → Entities section in the legacy expandable flyout renders
identically to main and all legacy click behaviors still work (flag
off).
- New flyout Insights section renders the entities sub-panel; clicking
the section title, host name, user name, alerts chip, misconfig chip,
and vulnerability chip does nothing (no console errors, no overlay
opens).
- Discover shows the entities sub-panel; clicks are inert.
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 307404a commit 157ec2b
40 files changed
Lines changed: 1288 additions & 782 deletions
File tree
- x-pack
- platform/plugins/private/translations/translations
- solutions/security/plugins/security_solution/public
- entity_analytics/components
- home
- privileged_user_monitoring/components/privileged_users_table
- flyout_v2/document/main
- components
- hooks
- flyout
- document_details
- left/components
- right/components
Lines changed: 3 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44258 | 44258 | | |
44259 | 44259 | | |
44260 | 44260 | | |
44261 | | - | |
44262 | 44261 | | |
44263 | 44262 | | |
44264 | 44263 | | |
44265 | | - | |
44266 | | - | |
44267 | | - | |
44268 | | - | |
44269 | | - | |
44270 | 44264 | | |
44271 | 44265 | | |
44272 | 44266 | | |
| |||
44280 | 44274 | | |
44281 | 44275 | | |
44282 | 44276 | | |
44283 | | - | |
| 44277 | + | |
| 44278 | + | |
| 44279 | + | |
44284 | 44280 | | |
44285 | 44281 | | |
44286 | 44282 | | |
| |||
Lines changed: 3 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44107 | 44107 | | |
44108 | 44108 | | |
44109 | 44109 | | |
44110 | | - | |
44111 | 44110 | | |
44112 | 44111 | | |
44113 | 44112 | | |
44114 | | - | |
44115 | | - | |
44116 | | - | |
44117 | | - | |
44118 | | - | |
44119 | 44113 | | |
44120 | 44114 | | |
44121 | 44115 | | |
| |||
44127 | 44121 | | |
44128 | 44122 | | |
44129 | 44123 | | |
44130 | | - | |
| 44124 | + | |
| 44125 | + | |
| 44126 | + | |
44131 | 44127 | | |
44132 | 44128 | | |
44133 | 44129 | | |
| |||
Lines changed: 3 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44423 | 44423 | | |
44424 | 44424 | | |
44425 | 44425 | | |
44426 | | - | |
44427 | 44426 | | |
44428 | 44427 | | |
44429 | 44428 | | |
44430 | | - | |
44431 | | - | |
44432 | | - | |
44433 | | - | |
44434 | | - | |
44435 | 44429 | | |
44436 | 44430 | | |
44437 | 44431 | | |
| |||
44445 | 44439 | | |
44446 | 44440 | | |
44447 | 44441 | | |
44448 | | - | |
| 44442 | + | |
| 44443 | + | |
| 44444 | + | |
44449 | 44445 | | |
44450 | 44446 | | |
44451 | 44447 | | |
| |||
Lines changed: 3 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44416 | 44416 | | |
44417 | 44417 | | |
44418 | 44418 | | |
44419 | | - | |
44420 | 44419 | | |
44421 | 44420 | | |
44422 | 44421 | | |
44423 | | - | |
44424 | | - | |
44425 | | - | |
44426 | | - | |
44427 | | - | |
44428 | 44422 | | |
44429 | 44423 | | |
44430 | 44424 | | |
| |||
44438 | 44432 | | |
44439 | 44433 | | |
44440 | 44434 | | |
44441 | | - | |
| 44435 | + | |
| 44436 | + | |
| 44437 | + | |
44442 | 44438 | | |
44443 | 44439 | | |
44444 | 44440 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
Lines changed: 26 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | | - | |
85 | | - | |
86 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
101 | 105 | | |
102 | 106 | | |
103 | 107 | | |
| |||
549 | 553 | | |
550 | 554 | | |
551 | 555 | | |
552 | | - | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
553 | 562 | | |
554 | 563 | | |
555 | 564 | | |
556 | 565 | | |
557 | 566 | | |
558 | | - | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
559 | 573 | | |
560 | 574 | | |
561 | 575 | | |
562 | 576 | | |
563 | 577 | | |
564 | 578 | | |
565 | | - | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
566 | 585 | | |
567 | 586 | | |
568 | 587 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
0 commit comments