-
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] Standardize actions in Alerts KPI visualizations #206340
[Security Solution] Standardize actions in Alerts KPI visualizations #206340
Conversation
Pinging @elastic/security-threat-hunting (Team:Threat Hunting) |
Pinging @elastic/security-threat-hunting-investigations (Team:Threat Hunting:Investigations) |
@christineweng I see how this can be an improvement, but I also find that on wide screens it is kind of annoying. As you can see in the video below, when you mouse over the title, you then have to move your mouse quite a bit to get to the actions, which makes it super easy to actually go to the next line by mistake... I feel like this change could actually negatively impact users...? this branchScreen.Recording.2025-01-13.at.5.01.07.PM.movmain branchScreen.Recording.2025-01-13.at.5.06.41.PM.movMaybe we should bring this up to UIUX and ask for feedback? |
Yep, let's bring this up on the Thursday design sync |
748f42b
to
36f1938
Compare
0c4f377
to
ecac130
Compare
<SecurityCellActions | ||
mode={CellActionsMode.INLINE} | ||
visibleCellActions={0} | ||
triggerId={SecurityCellActionsTrigger.DEFAULT} | ||
data={{ field, value }} | ||
sourcererScopeId={sourcererScopeId} | ||
metadata={{ | ||
scopeId, | ||
extraActionsIconType: 'boxesVertical', | ||
extraActionsColor: 'text', | ||
}} | ||
disabledActionTypes={[SecurityCellActionType.SHOW_TOP_N]} | ||
/> |
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.
I am not sure these new extraActionsIconType
and extraActionsColor
should be passed within the metadata object. They are component properties that customize the presentation, rather than a kind of "data".
Have you considered adding them as regular (optional) props?
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.
Thanks @semd! I started with them as props but noticed quite a bit of prop drilling to get to the actual extra action components. Hence taking advantage of the metadata and context to make it look cleaner. I thought the metadata was meant to be a 'catch all' usage, but good to know!
Anyways, I've updated them as props in this commit, let me know what you think.
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 @christineweng , metadata is used to pass extra information about the cell, the metadata is accessible from the actions execution, so it's an easy way to change the behaviour of the actions.
This property allows the cell actions to be more flexible and simplifies the implementation for corner cases. But it also has its downsides, it's typed loosely and lacks proper memoization, so we should not overuse it.
For properties that are not "extra data" used inside action execution, like these presentational props, it's better to create separate props.
Thanks for applying the change 💯
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.
LGTM!
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.
I like this new option much better! Nice job @christineweng, desk tested and code LGTM!
d38de09
to
3d8ee06
Compare
## Summary This is a part 2 following #206340 to standardize actions in the alerts kpi visualizations. This PR updates the following copies: - Changed `Filter In` to `Filter for`: to stay consistent with Lens and Discover <img width="1070" alt="image" src="https://github.com/user-attachments/assets/3341279f-7e8f-4470-9476-86809840ff55" /> - Updated letter cases by following copy guidelines - `Filter Out` -> `Filter out` - `Copy to Clipboard` -> `Copy to clipboard` - `Investigate in timeline` -> `Investigate in Timeline` - `Add to timeline` -> `Add to Timeline` ### 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 - [ ] If a plugin configuration key changed, check if it needs to be allowlisted in the cloud and added to the [docker list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker) - [ ] This was checked for breaking HTTP API changes, and any breaking changes have been approved by the breaking-change committee. The `release_note:breaking` label should be applied in these situations. - [ ] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed - [ ] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
## Summary This is a part 2 following elastic#206340 to standardize actions in the alerts kpi visualizations. This PR updates the following copies: - Changed `Filter In` to `Filter for`: to stay consistent with Lens and Discover <img width="1070" alt="image" src="https://github.com/user-attachments/assets/3341279f-7e8f-4470-9476-86809840ff55" /> - Updated letter cases by following copy guidelines - `Filter Out` -> `Filter out` - `Copy to Clipboard` -> `Copy to clipboard` - `Investigate in timeline` -> `Investigate in Timeline` - `Add to timeline` -> `Add to Timeline` ### 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 - [ ] If a plugin configuration key changed, check if it needs to be allowlisted in the cloud and added to the [docker list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker) - [ ] This was checked for breaking HTTP API changes, and any breaking changes have been approved by the breaking-change committee. The `release_note:breaking` label should be applied in these situations. - [ ] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed - [ ] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) (cherry picked from commit d2c5132)
## Summary This is a part 2 following elastic#206340 to standardize actions in the alerts kpi visualizations. This PR updates the following copies: - Changed `Filter In` to `Filter for`: to stay consistent with Lens and Discover <img width="1070" alt="image" src="https://github.com/user-attachments/assets/3341279f-7e8f-4470-9476-86809840ff55" /> - Updated letter cases by following copy guidelines - `Filter Out` -> `Filter out` - `Copy to Clipboard` -> `Copy to clipboard` - `Investigate in timeline` -> `Investigate in Timeline` - `Add to timeline` -> `Add to Timeline` ### 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 - [ ] If a plugin configuration key changed, check if it needs to be allowlisted in the cloud and added to the [docker list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker) - [ ] This was checked for breaking HTTP API changes, and any breaking changes have been approved by the breaking-change committee. The `release_note:breaking` label should be applied in these situations. - [ ] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed - [ ] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) (cherry picked from commit d2c5132)
2b532ef
to
d57124f
Compare
Starting backport for target branches: 8.x https://github.com/elastic/kibana/actions/runs/13253287269 |
💚 Build Succeeded
Metrics [docs]Async chunks
Page load bundle
History
|
💔 All backports failed
Manual backportTo create the backport manually run:
Questions ?Please refer to the Backport tool documentation |
…lastic#206340) ### Background The initial intent of the PR was to address customer feedback regarding hover actions in the kpi charts. Because the hover actions wrap around the label, some users find the trigger sensitive, especially when screen resolution is high and the text labels are small. Upon exploring options and reviewing with UIUX team, it was decided that we should follow the take action format in Lens charts (inline actions inline, vertical 3 dots icon, and black color), to ensure that we have a standard experience in charts. ### Before ### **Non-Lens charts: overview charts, treemap** - Popover actions upon hover - Popover content is blue (default color) ![image](https://github.com/user-attachments/assets/20091b16-4408-4f55-ace8-95cbac25ff2e) ![image](https://github.com/user-attachments/assets/06b97ad8-fe41-4508-95ff-cc0ee5a73338) **Lens charts: Trend graph, Count table** - Actions are inline, with the vertical 3 dots icon - Icon and menu item are in black color ![image](https://github.com/user-attachments/assets/df0dd709-ec02-4549-bf35-60ca5fe57179) ### After All the non-Lens charts have inline actions in black ![image](https://github.com/user-attachments/assets/29c4e9e9-f458-4520-b90f-e4b16a5e1318) ![image](https://github.com/user-attachments/assets/ba904202-338c-4154-b645-128729010d1d) ### Changes to `CellActions` package This PR focuses on making the inline option flexible, by taking additional styling options in metadata ``` metadata={{ extraActionsIconType: 'boxesVertical', extraActionsColor: 'text', }} ``` The styling does not impact hover options ![image](https://github.com/user-attachments/assets/07e59cd1-0d0b-472f-9ef1-a8a185d8dd3c) ### Checklist - [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 - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) (cherry picked from commit fc6e1d6) # Conflicts: # x-pack/solutions/security/plugins/security_solution/public/detections/components/alerts_kpis/alerts_progress_bar_panel/alerts_progress_bar.tsx # x-pack/solutions/security/plugins/security_solution/public/detections/components/alerts_kpis/severity_level_panel/columns.tsx
…lastic#206340) ### Background The initial intent of the PR was to address customer feedback regarding hover actions in the kpi charts. Because the hover actions wrap around the label, some users find the trigger sensitive, especially when screen resolution is high and the text labels are small. Upon exploring options and reviewing with UIUX team, it was decided that we should follow the take action format in Lens charts (inline actions inline, vertical 3 dots icon, and black color), to ensure that we have a standard experience in charts. ### Before ### **Non-Lens charts: overview charts, treemap** - Popover actions upon hover - Popover content is blue (default color) ![image](https://github.com/user-attachments/assets/20091b16-4408-4f55-ace8-95cbac25ff2e) ![image](https://github.com/user-attachments/assets/06b97ad8-fe41-4508-95ff-cc0ee5a73338) **Lens charts: Trend graph, Count table** - Actions are inline, with the vertical 3 dots icon - Icon and menu item are in black color ![image](https://github.com/user-attachments/assets/df0dd709-ec02-4549-bf35-60ca5fe57179) ### After All the non-Lens charts have inline actions in black ![image](https://github.com/user-attachments/assets/29c4e9e9-f458-4520-b90f-e4b16a5e1318) ![image](https://github.com/user-attachments/assets/ba904202-338c-4154-b645-128729010d1d) ### Changes to `CellActions` package This PR focuses on making the inline option flexible, by taking additional styling options in metadata ``` metadata={{ extraActionsIconType: 'boxesVertical', extraActionsColor: 'text', }} ``` The styling does not impact hover options ![image](https://github.com/user-attachments/assets/07e59cd1-0d0b-472f-9ef1-a8a185d8dd3c) ### Checklist - [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 - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) (cherry picked from commit fc6e1d6) # Conflicts: # x-pack/solutions/security/plugins/security_solution/public/detections/components/alerts_kpis/alerts_progress_bar_panel/alerts_progress_bar.tsx # x-pack/solutions/security/plugins/security_solution/public/detections/components/alerts_kpis/severity_level_panel/columns.tsx
…lastic#206340) ### Background The initial intent of the PR was to address customer feedback regarding hover actions in the kpi charts. Because the hover actions wrap around the label, some users find the trigger sensitive, especially when screen resolution is high and the text labels are small. Upon exploring options and reviewing with UIUX team, it was decided that we should follow the take action format in Lens charts (inline actions inline, vertical 3 dots icon, and black color), to ensure that we have a standard experience in charts. ### Before ### **Non-Lens charts: overview charts, treemap** - Popover actions upon hover - Popover content is blue (default color) ![image](https://github.com/user-attachments/assets/20091b16-4408-4f55-ace8-95cbac25ff2e) ![image](https://github.com/user-attachments/assets/06b97ad8-fe41-4508-95ff-cc0ee5a73338) **Lens charts: Trend graph, Count table** - Actions are inline, with the vertical 3 dots icon - Icon and menu item are in black color ![image](https://github.com/user-attachments/assets/df0dd709-ec02-4549-bf35-60ca5fe57179) ### After All the non-Lens charts have inline actions in black ![image](https://github.com/user-attachments/assets/29c4e9e9-f458-4520-b90f-e4b16a5e1318) ![image](https://github.com/user-attachments/assets/ba904202-338c-4154-b645-128729010d1d) ### Changes to `CellActions` package This PR focuses on making the inline option flexible, by taking additional styling options in metadata ``` metadata={{ extraActionsIconType: 'boxesVertical', extraActionsColor: 'text', }} ``` The styling does not impact hover options ![image](https://github.com/user-attachments/assets/07e59cd1-0d0b-472f-9ef1-a8a185d8dd3c) ### Checklist - [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 - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) (cherry picked from commit fc6e1d6) # Conflicts: # x-pack/solutions/security/plugins/security_solution/public/detections/components/alerts_kpis/alerts_progress_bar_panel/alerts_progress_bar.tsx # x-pack/solutions/security/plugins/security_solution/public/detections/components/alerts_kpis/severity_level_panel/columns.tsx
…lastic#206340) ### Background The initial intent of the PR was to address customer feedback regarding hover actions in the kpi charts. Because the hover actions wrap around the label, some users find the trigger sensitive, especially when screen resolution is high and the text labels are small. Upon exploring options and reviewing with UIUX team, it was decided that we should follow the take action format in Lens charts (inline actions inline, vertical 3 dots icon, and black color), to ensure that we have a standard experience in charts. ### Before ### **Non-Lens charts: overview charts, treemap** - Popover actions upon hover - Popover content is blue (default color) ![image](https://github.com/user-attachments/assets/20091b16-4408-4f55-ace8-95cbac25ff2e) ![image](https://github.com/user-attachments/assets/06b97ad8-fe41-4508-95ff-cc0ee5a73338) **Lens charts: Trend graph, Count table** - Actions are inline, with the vertical 3 dots icon - Icon and menu item are in black color ![image](https://github.com/user-attachments/assets/df0dd709-ec02-4549-bf35-60ca5fe57179) ### After All the non-Lens charts have inline actions in black ![image](https://github.com/user-attachments/assets/29c4e9e9-f458-4520-b90f-e4b16a5e1318) ![image](https://github.com/user-attachments/assets/ba904202-338c-4154-b645-128729010d1d) ### Changes to `CellActions` package This PR focuses on making the inline option flexible, by taking additional styling options in metadata ``` metadata={{ extraActionsIconType: 'boxesVertical', extraActionsColor: 'text', }} ``` The styling does not impact hover options ![image](https://github.com/user-attachments/assets/07e59cd1-0d0b-472f-9ef1-a8a185d8dd3c) ### Checklist - [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 - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) (cherry picked from commit fc6e1d6) # Conflicts: # x-pack/solutions/security/plugins/security_solution/public/detections/components/alerts_kpis/alerts_progress_bar_panel/alerts_progress_bar.tsx # x-pack/solutions/security/plugins/security_solution/public/detections/components/alerts_kpis/severity_level_panel/columns.tsx
…lastic#206340) ### Background The initial intent of the PR was to address customer feedback regarding hover actions in the kpi charts. Because the hover actions wrap around the label, some users find the trigger sensitive, especially when screen resolution is high and the text labels are small. Upon exploring options and reviewing with UIUX team, it was decided that we should follow the take action format in Lens charts (inline actions inline, vertical 3 dots icon, and black color), to ensure that we have a standard experience in charts. ### Before ### **Non-Lens charts: overview charts, treemap** - Popover actions upon hover - Popover content is blue (default color) ![image](https://github.com/user-attachments/assets/20091b16-4408-4f55-ace8-95cbac25ff2e) ![image](https://github.com/user-attachments/assets/06b97ad8-fe41-4508-95ff-cc0ee5a73338) **Lens charts: Trend graph, Count table** - Actions are inline, with the vertical 3 dots icon - Icon and menu item are in black color ![image](https://github.com/user-attachments/assets/df0dd709-ec02-4549-bf35-60ca5fe57179) ### After All the non-Lens charts have inline actions in black ![image](https://github.com/user-attachments/assets/29c4e9e9-f458-4520-b90f-e4b16a5e1318) ![image](https://github.com/user-attachments/assets/ba904202-338c-4154-b645-128729010d1d) ### Changes to `CellActions` package This PR focuses on making the inline option flexible, by taking additional styling options in metadata ``` metadata={{ extraActionsIconType: 'boxesVertical', extraActionsColor: 'text', }} ``` The styling does not impact hover options ![image](https://github.com/user-attachments/assets/07e59cd1-0d0b-472f-9ef1-a8a185d8dd3c) ### Checklist - [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 - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) (cherry picked from commit fc6e1d6) # Conflicts: # x-pack/solutions/security/plugins/security_solution/public/detections/components/alerts_kpis/alerts_progress_bar_panel/alerts_progress_bar.tsx # x-pack/solutions/security/plugins/security_solution/public/detections/components/alerts_kpis/severity_level_panel/columns.tsx
…lastic#206340) ### Background The initial intent of the PR was to address customer feedback regarding hover actions in the kpi charts. Because the hover actions wrap around the label, some users find the trigger sensitive, especially when screen resolution is high and the text labels are small. Upon exploring options and reviewing with UIUX team, it was decided that we should follow the take action format in Lens charts (inline actions inline, vertical 3 dots icon, and black color), to ensure that we have a standard experience in charts. ### Before ### **Non-Lens charts: overview charts, treemap** - Popover actions upon hover - Popover content is blue (default color) ![image](https://github.com/user-attachments/assets/20091b16-4408-4f55-ace8-95cbac25ff2e) ![image](https://github.com/user-attachments/assets/06b97ad8-fe41-4508-95ff-cc0ee5a73338) **Lens charts: Trend graph, Count table** - Actions are inline, with the vertical 3 dots icon - Icon and menu item are in black color ![image](https://github.com/user-attachments/assets/df0dd709-ec02-4549-bf35-60ca5fe57179) ### After All the non-Lens charts have inline actions in black ![image](https://github.com/user-attachments/assets/29c4e9e9-f458-4520-b90f-e4b16a5e1318) ![image](https://github.com/user-attachments/assets/ba904202-338c-4154-b645-128729010d1d) ### Changes to `CellActions` package This PR focuses on making the inline option flexible, by taking additional styling options in metadata ``` metadata={{ extraActionsIconType: 'boxesVertical', extraActionsColor: 'text', }} ``` The styling does not impact hover options ![image](https://github.com/user-attachments/assets/07e59cd1-0d0b-472f-9ef1-a8a185d8dd3c) ### Checklist - [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 - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) (cherry picked from commit fc6e1d6) # Conflicts: # x-pack/solutions/security/plugins/security_solution/public/detections/components/alerts_kpis/alerts_progress_bar_panel/alerts_progress_bar.tsx # x-pack/solutions/security/plugins/security_solution/public/detections/components/alerts_kpis/severity_level_panel/columns.tsx
…lastic#206340) ### Background The initial intent of the PR was to address customer feedback regarding hover actions in the kpi charts. Because the hover actions wrap around the label, some users find the trigger sensitive, especially when screen resolution is high and the text labels are small. Upon exploring options and reviewing with UIUX team, it was decided that we should follow the take action format in Lens charts (inline actions inline, vertical 3 dots icon, and black color), to ensure that we have a standard experience in charts. ### Before ### **Non-Lens charts: overview charts, treemap** - Popover actions upon hover - Popover content is blue (default color) ![image](https://github.com/user-attachments/assets/20091b16-4408-4f55-ace8-95cbac25ff2e) ![image](https://github.com/user-attachments/assets/06b97ad8-fe41-4508-95ff-cc0ee5a73338) **Lens charts: Trend graph, Count table** - Actions are inline, with the vertical 3 dots icon - Icon and menu item are in black color ![image](https://github.com/user-attachments/assets/df0dd709-ec02-4549-bf35-60ca5fe57179) ### After All the non-Lens charts have inline actions in black ![image](https://github.com/user-attachments/assets/29c4e9e9-f458-4520-b90f-e4b16a5e1318) ![image](https://github.com/user-attachments/assets/ba904202-338c-4154-b645-128729010d1d) ### Changes to `CellActions` package This PR focuses on making the inline option flexible, by taking additional styling options in metadata ``` metadata={{ extraActionsIconType: 'boxesVertical', extraActionsColor: 'text', }} ``` The styling does not impact hover options ![image](https://github.com/user-attachments/assets/07e59cd1-0d0b-472f-9ef1-a8a185d8dd3c) ### Checklist - [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 - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) (cherry picked from commit fc6e1d6) # Conflicts: # x-pack/solutions/security/plugins/security_solution/public/detections/components/alerts_kpis/alerts_progress_bar_panel/alerts_progress_bar.tsx # x-pack/solutions/security/plugins/security_solution/public/detections/components/alerts_kpis/severity_level_panel/columns.tsx
…lastic#206340) ### Background The initial intent of the PR was to address customer feedback regarding hover actions in the kpi charts. Because the hover actions wrap around the label, some users find the trigger sensitive, especially when screen resolution is high and the text labels are small. Upon exploring options and reviewing with UIUX team, it was decided that we should follow the take action format in Lens charts (inline actions inline, vertical 3 dots icon, and black color), to ensure that we have a standard experience in charts. ### Before ### **Non-Lens charts: overview charts, treemap** - Popover actions upon hover - Popover content is blue (default color) ![image](https://github.com/user-attachments/assets/20091b16-4408-4f55-ace8-95cbac25ff2e) ![image](https://github.com/user-attachments/assets/06b97ad8-fe41-4508-95ff-cc0ee5a73338) **Lens charts: Trend graph, Count table** - Actions are inline, with the vertical 3 dots icon - Icon and menu item are in black color ![image](https://github.com/user-attachments/assets/df0dd709-ec02-4549-bf35-60ca5fe57179) ### After All the non-Lens charts have inline actions in black ![image](https://github.com/user-attachments/assets/29c4e9e9-f458-4520-b90f-e4b16a5e1318) ![image](https://github.com/user-attachments/assets/ba904202-338c-4154-b645-128729010d1d) ### Changes to `CellActions` package This PR focuses on making the inline option flexible, by taking additional styling options in metadata ``` metadata={{ extraActionsIconType: 'boxesVertical', extraActionsColor: 'text', }} ``` The styling does not impact hover options ![image](https://github.com/user-attachments/assets/07e59cd1-0d0b-472f-9ef1-a8a185d8dd3c) ### Checklist - [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 - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) (cherry picked from commit fc6e1d6) # Conflicts: # x-pack/solutions/security/plugins/security_solution/public/detections/components/alerts_kpis/alerts_progress_bar_panel/alerts_progress_bar.tsx # x-pack/solutions/security/plugins/security_solution/public/detections/components/alerts_kpis/severity_level_panel/columns.tsx
…ions … (#210486) # Backport This will backport the following commits from `main` to `8.x`: - [[Security Solution] Standardize actions in Alerts KPI visualizations (#206340)](#206340) …(#206340) ### Background The initial intent of the PR was to address customer feedback regarding hover actions in the kpi charts. Because the hover actions wrap around the label, some users find the trigger sensitive, especially when screen resolution is high and the text labels are small. Upon exploring options and reviewing with UIUX team, it was decided that we should follow the take action format in Lens charts (inline actions inline, vertical 3 dots icon, and black color), to ensure that we have a standard experience in charts. ### Before ### **Non-Lens charts: overview charts, treemap** - Popover actions upon hover - Popover content is blue (default color) ![image](https://github.com/user-attachments/assets/20091b16-4408-4f55-ace8-95cbac25ff2e) ![image](https://github.com/user-attachments/assets/06b97ad8-fe41-4508-95ff-cc0ee5a73338) **Lens charts: Trend graph, Count table** - Actions are inline, with the vertical 3 dots icon - Icon and menu item are in black color ![image](https://github.com/user-attachments/assets/df0dd709-ec02-4549-bf35-60ca5fe57179) ### After All the non-Lens charts have inline actions in black ![image](https://github.com/user-attachments/assets/29c4e9e9-f458-4520-b90f-e4b16a5e1318) ![image](https://github.com/user-attachments/assets/ba904202-338c-4154-b645-128729010d1d) ### Changes to `CellActions` package This PR focuses on making the inline option flexible, by taking additional styling options in metadata ``` extraActionsIconType: 'boxesVertical', extraActionsColor: 'text', ``` The styling does not impact hover options ![image](https://github.com/user-attachments/assets/07e59cd1-0d0b-472f-9ef1-a8a185d8dd3c) ### Checklist - [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 - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) (cherry picked from commit fc6e1d6) --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Background
The initial intent of the PR was to address customer feedback regarding hover actions in the kpi charts. Because the hover actions wrap around the label, some users find the trigger sensitive, especially when screen resolution is high and the text labels are small.
Upon exploring options and reviewing with UIUX team, it was decided that we should follow the take action format in Lens charts (inline actions inline, vertical 3 dots icon, and black color), to ensure that we have a standard experience in charts.
Before
Non-Lens charts: overview charts, treemap
Lens charts: Trend graph, Count table
After
All the non-Lens charts have inline actions in black
Changes to
CellActions
packageThis PR focuses on making the inline option flexible, by taking additional styling options in metadata
The styling does not impact hover options
![image](https://private-user-images.githubusercontent.com/18648970/409306829-07e59cd1-0d0b-472f-9ef1-a8a185d8dd3c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1NTAwOTgsIm5iZiI6MTczOTU0OTc5OCwicGF0aCI6Ii8xODY0ODk3MC80MDkzMDY4MjktMDdlNTljZDEtMGQwYi00NzJmLTllZjEtYThhMTg1ZDhkZDNjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE0VDE2MTYzOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNkYmJlZjgxZjIyMGI2MDNkN2NjOTZlMmQ4ZDJhZGUxNTE0NGRlMGRlNzFkZmM2NmU5MjgzMDI2ZmQ5MTYwYjUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.RUAn8Tr5QuMmFhIJLPEkuNzTxBQYv3wUbLacestV9OU)
Checklist
release_note:*
label is applied per the guidelines