-
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][Endpoint] Hide agent types on Types
filter when on a flyout and other UI changes
#176280
[Security Solution][Endpoint] Hide agent types on Types
filter when on a flyout and other UI changes
#176280
Conversation
Pinging @elastic/security-defend-workflows (Team:Defend Workflows) |
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 for the fix! 🙌
...s/security_solution/public/management/pages/endpoint_hosts/view/details/endpoint_details.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/security_solution/public/management/hooks/use_with_show_responder.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/security_solution/public/management/hooks/use_with_show_responder.tsx
Outdated
Show resolved
Hide resolved
...ty_solution/public/management/components/endpoint_response_actions_list/components/hooks.tsx
Outdated
Show resolved
Hide resolved
...ty_solution/public/management/components/endpoint_response_actions_list/components/hooks.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.
This makes sense to me, looks good!
We decided to not show agent types for single agent views where selecting agent type doesn't make sense
Types
filter when on a flyoutTypes
filter when on a flyout and other UI changes
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.
const numFilters = useMemo( | ||
() => items.filter((item) => item.key && item.checked !== 'on').length, | ||
[items] |
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.
nice catch!
x-pack/plugins/security_solution/public/management/hooks/use_with_show_responder.tsx
Outdated
Show resolved
Hide resolved
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: cc @ashokaditya |
… on a flyout and other UI changes (elastic#176280) ## Summary For `Types` filter on a flyout/responder (when a single agent is selected), that shows agent type and action type filter options, it doesn't make sense to allow selecting agent types as there can only be one agent type. This PR fixes that bug by: 1. Not showing the agent types filter options Additionally the PR updates 1. Agent type name to **Elastic Defend** _instead of Endpoint_. 2. Adds `Agent type` value to expanded output tray. 3. Uses the correct field for getting host names for sentinel one hosts from sentinel one alerts 4. Correctly calculates the available filter options in Types filter. ### Team consensus - [x] remove agent types from flyout types filter ### clip/screenshot (Types filter) #### flyout/responder view ![Screenshot 2024-02-06 at 5 04 38 PM](https://github.com/elastic/kibana/assets/1849116/e0540bcc-cf51-4983-97df-de1561c23930) #### history page view ![Screenshot 2024-02-06 at 5 05 01 PM](https://github.com/elastic/kibana/assets/1849116/27546ece-2327-4a9f-82f6-97f83c5826b9) #### Output sections ![Screenshot 2024-02-06 at 4 40 53 PM](https://github.com/elastic/kibana/assets/1849116/c31ff450-a626-4652-9298-d777af11f057) ![Screenshot 2024-02-06 at 4 41 01 PM](https://github.com/elastic/kibana/assets/1849116/5ba77d8b-d898-4921-8dff-00faf85b5d3f) ### Updated Responder header info for Sentinel One host ![Screenshot 2024-02-06 at 5 07 50 PM](https://github.com/elastic/kibana/assets/1849116/97ea17ba-2f4c-4850-bcac-20c822465b96) ### 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 - [ ] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed - [x] Any UI touched in this PR is usable by keyboard only (learn more about [keyboard accessibility](https://webaim.org/techniques/keyboard/)) - [x] Any UI touched in this PR does not create any new axe failures (run axe in browser: [FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/), [Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US)) - [x] This renders correctly on smaller devices using a responsive layout. (You can test this [in your browser](https://www.browserstack.com/guide/responsive-testing-on-local-server)) - [x] This was checked for [cross-browser compatibility](https://www.elastic.co/support/matrix#matrix_browsers)
… on a flyout and other UI changes (elastic#176280) ## Summary For `Types` filter on a flyout/responder (when a single agent is selected), that shows agent type and action type filter options, it doesn't make sense to allow selecting agent types as there can only be one agent type. This PR fixes that bug by: 1. Not showing the agent types filter options Additionally the PR updates 1. Agent type name to **Elastic Defend** _instead of Endpoint_. 2. Adds `Agent type` value to expanded output tray. 3. Uses the correct field for getting host names for sentinel one hosts from sentinel one alerts 4. Correctly calculates the available filter options in Types filter. ### Team consensus - [x] remove agent types from flyout types filter ### clip/screenshot (Types filter) #### flyout/responder view ![Screenshot 2024-02-06 at 5 04 38 PM](https://github.com/elastic/kibana/assets/1849116/e0540bcc-cf51-4983-97df-de1561c23930) #### history page view ![Screenshot 2024-02-06 at 5 05 01 PM](https://github.com/elastic/kibana/assets/1849116/27546ece-2327-4a9f-82f6-97f83c5826b9) #### Output sections ![Screenshot 2024-02-06 at 4 40 53 PM](https://github.com/elastic/kibana/assets/1849116/c31ff450-a626-4652-9298-d777af11f057) ![Screenshot 2024-02-06 at 4 41 01 PM](https://github.com/elastic/kibana/assets/1849116/5ba77d8b-d898-4921-8dff-00faf85b5d3f) ### Updated Responder header info for Sentinel One host ![Screenshot 2024-02-06 at 5 07 50 PM](https://github.com/elastic/kibana/assets/1849116/97ea17ba-2f4c-4850-bcac-20c822465b96) ### 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 - [ ] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed - [x] Any UI touched in this PR is usable by keyboard only (learn more about [keyboard accessibility](https://webaim.org/techniques/keyboard/)) - [x] Any UI touched in this PR does not create any new axe failures (run axe in browser: [FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/), [Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US)) - [x] This renders correctly on smaller devices using a responsive layout. (You can test this [in your browser](https://www.browserstack.com/guide/responsive-testing-on-local-server)) - [x] This was checked for [cross-browser compatibility](https://www.elastic.co/support/matrix#matrix_browsers)
… on a flyout and other UI changes (elastic#176280) ## Summary For `Types` filter on a flyout/responder (when a single agent is selected), that shows agent type and action type filter options, it doesn't make sense to allow selecting agent types as there can only be one agent type. This PR fixes that bug by: 1. Not showing the agent types filter options Additionally the PR updates 1. Agent type name to **Elastic Defend** _instead of Endpoint_. 2. Adds `Agent type` value to expanded output tray. 3. Uses the correct field for getting host names for sentinel one hosts from sentinel one alerts 4. Correctly calculates the available filter options in Types filter. ### Team consensus - [x] remove agent types from flyout types filter ### clip/screenshot (Types filter) #### flyout/responder view ![Screenshot 2024-02-06 at 5 04 38 PM](https://github.com/elastic/kibana/assets/1849116/e0540bcc-cf51-4983-97df-de1561c23930) #### history page view ![Screenshot 2024-02-06 at 5 05 01 PM](https://github.com/elastic/kibana/assets/1849116/27546ece-2327-4a9f-82f6-97f83c5826b9) #### Output sections ![Screenshot 2024-02-06 at 4 40 53 PM](https://github.com/elastic/kibana/assets/1849116/c31ff450-a626-4652-9298-d777af11f057) ![Screenshot 2024-02-06 at 4 41 01 PM](https://github.com/elastic/kibana/assets/1849116/5ba77d8b-d898-4921-8dff-00faf85b5d3f) ### Updated Responder header info for Sentinel One host ![Screenshot 2024-02-06 at 5 07 50 PM](https://github.com/elastic/kibana/assets/1849116/97ea17ba-2f4c-4850-bcac-20c822465b96) ### 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 - [ ] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed - [x] Any UI touched in this PR is usable by keyboard only (learn more about [keyboard accessibility](https://webaim.org/techniques/keyboard/)) - [x] Any UI touched in this PR does not create any new axe failures (run axe in browser: [FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/), [Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US)) - [x] This renders correctly on smaller devices using a responsive layout. (You can test this [in your browser](https://www.browserstack.com/guide/responsive-testing-on-local-server)) - [x] This was checked for [cross-browser compatibility](https://www.elastic.co/support/matrix#matrix_browsers)
Summary
For
Types
filter on a flyout/responder (when a single agent is selected), that shows agent type and action type filter options, it doesn't make sense to allow selecting agent types as there can only be one agent type. This PR fixes that bug by:Additionally the PR updates
Agent type
value to expanded output tray.Team consensus
clip/screenshot (Types filter)
flyout/responder view
history page view
Output sections
Updated Responder header info for Sentinel One host
Checklist