[Security Solution] Prebuilt rule customizations flyout refactor#227355
[Security Solution] Prebuilt rule customizations flyout refactor#227355dplumlee merged 19 commits intoelastic:mainfrom
Conversation
|
Pinging @elastic/security-detections-response (Team:Detections and Resp) |
|
Pinging @elastic/security-solution (Team: SecuritySolution) |
| /> | ||
| ); | ||
|
|
||
| const RuleInvestigationGuide = ({ note }: { note: string }) => ( |
There was a problem hiding this comment.
Should these live within this file, now, or do you intend to reuse them?
There was a problem hiding this comment.
I think they are fine to live here for now, we don't display either of these fields this way anywhere else - they usually get split up into their own section or tab. I broke them out into the smaller fragment stubs for overall readability in the main component
There was a problem hiding this comment.
While these two components aren't explicitly reused they are actually reused, please check setup and note components from the Prebuilt Rule Upgrade Flyout.
Ideally we should reuse Investigation Guide and Setup Guide components. You may see some readonly components are defined in rule_definition_section.tsx. note component in the Prebuilt Rule Upgrade Flyout should be renamed to investigation_guide.
nit: IMHO functions have higher readability
interface MyComponentProps {
propA: string;
}
function MyComponent(props: MyComponentProps): JSX.Element {
// implementation...
}vs
interface MyComponentProps {
propA: string;
}
const MyComponent = (props: MyComponentProps) => {
// implementation...
};
maximpn
left a comment
There was a problem hiding this comment.
@dplumlee Thanks for addressing my previous comments and making our UI code better 🙏
I pushed a little change to get rid of setCustomizationsRule in RuleCustomizationsContextProvider and replace it with a simpler implementation.
On top of that I left a couple non critical comments regarding further improvements. These two don't block the PR but it'd be nice if there is time to address them.
While testing I noticed that we have two tooltips appearing after hovering one a badge for some time. One from the browser and another one you've added. Maybe we could disable the first one?
| /> | ||
| ); | ||
|
|
||
| const RuleInvestigationGuide = ({ note }: { note: string }) => ( |
There was a problem hiding this comment.
While these two components aren't explicitly reused they are actually reused, please check setup and note components from the Prebuilt Rule Upgrade Flyout.
Ideally we should reuse Investigation Guide and Setup Guide components. You may see some readonly components are defined in rule_definition_section.tsx. note component in the Prebuilt Rule Upgrade Flyout should be renamed to investigation_guide.
nit: IMHO functions have higher readability
interface MyComponentProps {
propA: string;
}
function MyComponent(props: MyComponentProps): JSX.Element {
// implementation...
}vs
interface MyComponentProps {
propA: string;
}
const MyComponent = (props: MyComponentProps) => {
// implementation...
};| return assertUnreachable(dataSource); | ||
| } | ||
|
|
||
| export const convertFieldToDisplayName = (fieldName: string) => |
There was a problem hiding this comment.
Can we have one utility function to convert field names to huma/display names? There is already getHumanizedFieldName which maps field names to human field names.
💚 Build Succeeded
Metrics [docs]Async chunks
History
cc @dplumlee |
|
Starting backport for target branches: 8.19, 9.1 https://github.com/elastic/kibana/actions/runs/16330392635 |
|
@maximpn This commit is not a small one imo, so by adding it to this PR and approving the PR as well you've effectively approved your own commits to the repo and bypassed the approval process. In general I think changes like this should be made by the PR author if they're available so the author retains ownership and responsibility for the code being introduced. |
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
💔 Some backports could not be created
Note: Successful backport PRs will be merged automatically after passing CI. Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
…stic#227355) **Fixes: elastic#227805 **Follow-up to:** elastic#225939 ## Summary Addresses comments from previous PR and refactors code to a more readable structure and adds labels to the "Investigation guide" and "Setup guide" sections of the Rule Details page for better displays to the user. ### Screenshots **Rule details panel** <img width="1492" height="1030" alt="Screenshot 2025-07-15 at 11 39 07 AM" src="https://github.com/user-attachments/assets/9844f89e-c23c-4065-af6a-44d670387f94" /> <img width="1484" height="792" alt="Screenshot 2025-07-15 at 1 44 52 PM" src="https://github.com/user-attachments/assets/bb97a219-c1ed-4654-8b8f-04ac76b9d7c1" /> ### 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 - [ ] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed --------- Co-authored-by: Maxim Palenov <maxim.palenov@elastic.co> (cherry picked from commit 74c030a)
💔 Some backports could not be created
Note: Successful backport PRs will be merged automatically after passing CI. Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
#227355) (#228350) # Backport This will backport the following commits from `main` to `9.1`: - [[Security Solution] Prebuilt rule customizations flyout refactor (#227355)](#227355) <!--- Backport version: 10.0.1 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Davis Plumlee","email":"56367316+dplumlee@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-07-16T21:09:38Z","message":"[Security Solution] Prebuilt rule customizations flyout refactor (#227355)\n\n**Fixes: https://github.com/elastic/kibana/issues/227805**\n**Follow-up to:** https://github.com/elastic/kibana/pull/225939\n\n## Summary\n\nAddresses comments from previous PR and refactors code to a more\nreadable structure and adds labels to the \"Investigation guide\" and\n\"Setup guide\" sections of the Rule Details page for better displays to\nthe user.\n\n\n### Screenshots\n\n**Rule details panel**\n\n<img width=\"1492\" height=\"1030\" alt=\"Screenshot 2025-07-15 at 11 39\n07 AM\"\nsrc=\"https://github.com/user-attachments/assets/9844f89e-c23c-4065-af6a-44d670387f94\"\n/>\n\n\n<img width=\"1484\" height=\"792\" alt=\"Screenshot 2025-07-15 at 1 44 52 PM\"\nsrc=\"https://github.com/user-attachments/assets/bb97a219-c1ed-4654-8b8f-04ac76b9d7c1\"\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\n- [ ] [Flaky Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\nused on any tests changed\n\n---------\n\nCo-authored-by: Maxim Palenov <maxim.palenov@elastic.co>","sha":"74c030ad8544df9559dc8fb92320221f5930634d","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","Team:Detections and Resp","Team: SecuritySolution","Team:Detection Rule Management","Feature:Prebuilt Detection Rules","ci:cloud-deploy","ci:project-deploy-security","backport:version","v9.1.0","v8.19.0","v9.2.0"],"title":"[Security Solution] Prebuilt rule customizations flyout refactor","number":227355,"url":"https://github.com/elastic/kibana/pull/227355","mergeCommit":{"message":"[Security Solution] Prebuilt rule customizations flyout refactor (#227355)\n\n**Fixes: https://github.com/elastic/kibana/issues/227805**\n**Follow-up to:** https://github.com/elastic/kibana/pull/225939\n\n## Summary\n\nAddresses comments from previous PR and refactors code to a more\nreadable structure and adds labels to the \"Investigation guide\" and\n\"Setup guide\" sections of the Rule Details page for better displays to\nthe user.\n\n\n### Screenshots\n\n**Rule details panel**\n\n<img width=\"1492\" height=\"1030\" alt=\"Screenshot 2025-07-15 at 11 39\n07 AM\"\nsrc=\"https://github.com/user-attachments/assets/9844f89e-c23c-4065-af6a-44d670387f94\"\n/>\n\n\n<img width=\"1484\" height=\"792\" alt=\"Screenshot 2025-07-15 at 1 44 52 PM\"\nsrc=\"https://github.com/user-attachments/assets/bb97a219-c1ed-4654-8b8f-04ac76b9d7c1\"\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\n- [ ] [Flaky Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\nused on any tests changed\n\n---------\n\nCo-authored-by: Maxim Palenov <maxim.palenov@elastic.co>","sha":"74c030ad8544df9559dc8fb92320221f5930634d"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.19"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/227355","number":227355,"mergeCommit":{"message":"[Security Solution] Prebuilt rule customizations flyout refactor (#227355)\n\n**Fixes: https://github.com/elastic/kibana/issues/227805**\n**Follow-up to:** https://github.com/elastic/kibana/pull/225939\n\n## Summary\n\nAddresses comments from previous PR and refactors code to a more\nreadable structure and adds labels to the \"Investigation guide\" and\n\"Setup guide\" sections of the Rule Details page for better displays to\nthe user.\n\n\n### Screenshots\n\n**Rule details panel**\n\n<img width=\"1492\" height=\"1030\" alt=\"Screenshot 2025-07-15 at 11 39\n07 AM\"\nsrc=\"https://github.com/user-attachments/assets/9844f89e-c23c-4065-af6a-44d670387f94\"\n/>\n\n\n<img width=\"1484\" height=\"792\" alt=\"Screenshot 2025-07-15 at 1 44 52 PM\"\nsrc=\"https://github.com/user-attachments/assets/bb97a219-c1ed-4654-8b8f-04ac76b9d7c1\"\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\n- [ ] [Flaky Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\nused on any tests changed\n\n---------\n\nCo-authored-by: Maxim Palenov <maxim.palenov@elastic.co>","sha":"74c030ad8544df9559dc8fb92320221f5930634d"}}]}] BACKPORT--> Co-authored-by: Maxim Palenov <maxim.palenov@elastic.co>
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…or (#227355) (#228367) # Backport This will backport the following commits from `main` to `8.19`: - [[Security Solution] Prebuilt rule customizations flyout refactor (#227355)](#227355) <!--- Backport version: 10.0.0 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Davis Plumlee","email":"56367316+dplumlee@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-07-16T21:09:38Z","message":"[Security Solution] Prebuilt rule customizations flyout refactor (#227355)\n\n**Fixes: https://github.com/elastic/kibana/issues/227805**\n**Follow-up to:** https://github.com/elastic/kibana/pull/225939\n\n## Summary\n\nAddresses comments from previous PR and refactors code to a more\nreadable structure and adds labels to the \"Investigation guide\" and\n\"Setup guide\" sections of the Rule Details page for better displays to\nthe user.\n\n\n### Screenshots\n\n**Rule details panel**\n\n<img width=\"1492\" height=\"1030\" alt=\"Screenshot 2025-07-15 at 11 39\n07 AM\"\nsrc=\"https://github.com/user-attachments/assets/9844f89e-c23c-4065-af6a-44d670387f94\"\n/>\n\n\n<img width=\"1484\" height=\"792\" alt=\"Screenshot 2025-07-15 at 1 44 52 PM\"\nsrc=\"https://github.com/user-attachments/assets/bb97a219-c1ed-4654-8b8f-04ac76b9d7c1\"\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\n- [ ] [Flaky Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\nused on any tests changed\n\n---------\n\nCo-authored-by: Maxim Palenov <maxim.palenov@elastic.co>","sha":"74c030ad8544df9559dc8fb92320221f5930634d","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","Team:Detections and Resp","Team: SecuritySolution","Team:Detection Rule Management","Feature:Prebuilt Detection Rules","ci:cloud-deploy","ci:project-deploy-security","backport:version","v9.1.0","v8.19.0","v9.2.0"],"title":"[Security Solution] Prebuilt rule customizations flyout refactor","number":227355,"url":"https://github.com/elastic/kibana/pull/227355","mergeCommit":{"message":"[Security Solution] Prebuilt rule customizations flyout refactor (#227355)\n\n**Fixes: https://github.com/elastic/kibana/issues/227805**\n**Follow-up to:** https://github.com/elastic/kibana/pull/225939\n\n## Summary\n\nAddresses comments from previous PR and refactors code to a more\nreadable structure and adds labels to the \"Investigation guide\" and\n\"Setup guide\" sections of the Rule Details page for better displays to\nthe user.\n\n\n### Screenshots\n\n**Rule details panel**\n\n<img width=\"1492\" height=\"1030\" alt=\"Screenshot 2025-07-15 at 11 39\n07 AM\"\nsrc=\"https://github.com/user-attachments/assets/9844f89e-c23c-4065-af6a-44d670387f94\"\n/>\n\n\n<img width=\"1484\" height=\"792\" alt=\"Screenshot 2025-07-15 at 1 44 52 PM\"\nsrc=\"https://github.com/user-attachments/assets/bb97a219-c1ed-4654-8b8f-04ac76b9d7c1\"\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\n- [ ] [Flaky Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\nused on any tests changed\n\n---------\n\nCo-authored-by: Maxim Palenov <maxim.palenov@elastic.co>","sha":"74c030ad8544df9559dc8fb92320221f5930634d"}},"sourceBranch":"main","suggestedTargetBranches":["8.19"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/228350","number":228350,"state":"MERGED","mergeCommit":{"sha":"589f11adeff0832acb9043c08041ce578323fa51","message":"[9.1] [Security Solution] Prebuilt rule customizations flyout refactor (#227355) (#228350)\n\n# Backport\n\nThis will backport the following commits from `main` to `9.1`:\n- [[Security Solution] Prebuilt rule customizations flyout refactor\n(#227355)](https://github.com/elastic/kibana/pull/227355)\n\n\n\n### Questions ?\nPlease refer to the [Backport tool\ndocumentation](https://github.com/sorenlouv/backport)\n\n\n\nCo-authored-by: Maxim Palenov <maxim.palenov@elastic.co>"}},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/227355","number":227355,"mergeCommit":{"message":"[Security Solution] Prebuilt rule customizations flyout refactor (#227355)\n\n**Fixes: https://github.com/elastic/kibana/issues/227805**\n**Follow-up to:** https://github.com/elastic/kibana/pull/225939\n\n## Summary\n\nAddresses comments from previous PR and refactors code to a more\nreadable structure and adds labels to the \"Investigation guide\" and\n\"Setup guide\" sections of the Rule Details page for better displays to\nthe user.\n\n\n### Screenshots\n\n**Rule details panel**\n\n<img width=\"1492\" height=\"1030\" alt=\"Screenshot 2025-07-15 at 11 39\n07 AM\"\nsrc=\"https://github.com/user-attachments/assets/9844f89e-c23c-4065-af6a-44d670387f94\"\n/>\n\n\n<img width=\"1484\" height=\"792\" alt=\"Screenshot 2025-07-15 at 1 44 52 PM\"\nsrc=\"https://github.com/user-attachments/assets/bb97a219-c1ed-4654-8b8f-04ac76b9d7c1\"\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\n- [ ] [Flaky Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\nused on any tests changed\n\n---------\n\nCo-authored-by: Maxim Palenov <maxim.palenov@elastic.co>","sha":"74c030ad8544df9559dc8fb92320221f5930634d"}}]}] BACKPORT-->
|
Yes, sorry about the mess. Looking at the change from this point it’s not necessary and I could just leave a comment. My commit contains only two functional changes
However, since I moved connect and wrapped Rule Detail Page component to connect the diff looks huge. |
…stic#227355) **Fixes: elastic#227805 **Follow-up to:** elastic#225939 ## Summary Addresses comments from previous PR and refactors code to a more readable structure and adds labels to the "Investigation guide" and "Setup guide" sections of the Rule Details page for better displays to the user. ### Screenshots **Rule details panel** <img width="1492" height="1030" alt="Screenshot 2025-07-15 at 11 39 07 AM" src="https://github.com/user-attachments/assets/9844f89e-c23c-4065-af6a-44d670387f94" /> <img width="1484" height="792" alt="Screenshot 2025-07-15 at 1 44 52 PM" src="https://github.com/user-attachments/assets/bb97a219-c1ed-4654-8b8f-04ac76b9d7c1" /> ### 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 - [ ] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed --------- Co-authored-by: Maxim Palenov <maxim.palenov@elastic.co>
…stic#227355) **Fixes: elastic#227805 **Follow-up to:** elastic#225939 ## Summary Addresses comments from previous PR and refactors code to a more readable structure and adds labels to the "Investigation guide" and "Setup guide" sections of the Rule Details page for better displays to the user. ### Screenshots **Rule details panel** <img width="1492" height="1030" alt="Screenshot 2025-07-15 at 11 39 07 AM" src="https://github.com/user-attachments/assets/9844f89e-c23c-4065-af6a-44d670387f94" /> <img width="1484" height="792" alt="Screenshot 2025-07-15 at 1 44 52 PM" src="https://github.com/user-attachments/assets/bb97a219-c1ed-4654-8b8f-04ac76b9d7c1" /> ### 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 - [ ] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed --------- Co-authored-by: Maxim Palenov <maxim.palenov@elastic.co>
Fixes: #227805
Follow-up to: #225939
Summary
Addresses comments from previous PR and refactors code to a more readable structure and adds labels to the "Investigation guide" and "Setup guide" sections of the Rule Details page for better displays to the user.
Screenshots
Rule details panel
Checklist
Check the PR satisfies following conditions.
Reviewers should verify this PR satisfies this list as well.