Skip to content

Comments

[Security Solution] Prebuilt rule customizations flyout refactor#227355

Merged
dplumlee merged 19 commits intoelastic:mainfrom
dplumlee:prebuilt-reversion-refactor
Jul 16, 2025
Merged

[Security Solution] Prebuilt rule customizations flyout refactor#227355
dplumlee merged 19 commits intoelastic:mainfrom
dplumlee:prebuilt-reversion-refactor

Conversation

@dplumlee
Copy link
Contributor

@dplumlee dplumlee commented Jul 10, 2025

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

Screenshot 2025-07-15 at 11 39 07 AM Screenshot 2025-07-15 at 1 44 52 PM

Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

@dplumlee dplumlee requested a review from maximpn July 10, 2025 04:19
@dplumlee dplumlee self-assigned this Jul 10, 2025
@dplumlee dplumlee added release_note:skip Skip the PR/issue when compiling release notes Team:Detections and Resp Security Detection Response Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:Detection Rule Management Security Detection Rule Management Team Feature:Prebuilt Detection Rules Security Solution Prebuilt Detection Rules area backport:version Backport to applied version labels v9.1.0 v8.19.0 v9.2.0 ci:cloud-deploy Create or update a Cloud deployment ci:project-deploy-security Create a Security Serverless Project labels Jul 10, 2025
@dplumlee dplumlee marked this pull request as ready for review July 15, 2025 15:43
@dplumlee dplumlee requested review from a team as code owners July 15, 2025 15:43
@dplumlee dplumlee requested a review from rylnd July 15, 2025 15:43
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-detections-response (Team:Detections and Resp)

@elasticmachine
Copy link
Contributor

Pinging @elastic/security-solution (Team: SecuritySolution)

@banderror banderror added the bug Fixes for quality problems that affect the customer experience label Jul 16, 2025
Copy link
Contributor

@rylnd rylnd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DE changes LGTM. :shipit:

/>
);

const RuleInvestigationGuide = ({ note }: { note: string }) => (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should these live within this file, now, or do you intend to reuse them?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Contributor

@maximpn maximpn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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?

Screenshot 2025-07-16 at 20 07 07

/>
);

const RuleInvestigationGuide = ({ note }: { note: string }) => (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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) =>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@dplumlee dplumlee enabled auto-merge (squash) July 16, 2025 19:17
@elasticmachine
Copy link
Contributor

elasticmachine commented Jul 16, 2025

💚 Build Succeeded

Metrics [docs]

Async chunks

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

id before after diff
securitySolution 9.8MB 9.8MB -769.0B

History

cc @dplumlee

@dplumlee dplumlee merged commit 74c030a into elastic:main Jul 16, 2025
12 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.19, 9.1

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

@marshallmain
Copy link
Contributor

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

@kibanamachine
Copy link
Contributor

💔 All backports failed

Status Branch Result
8.19 Backport failed because of merge conflicts

You might need to backport the following PRs to 8.19:
- [Investigations][DataViews] - Remove non-performant toSpec usage (#225726)
9.1 Backport failed because of merge conflicts

You might need to backport the following PRs to 9.1:
- [Investigations][DataViews] - Remove non-performant toSpec usage (#225726)

Manual backport

To create the backport manually run:

node scripts/backport --pr 227355

Questions ?

Please refer to the Backport tool documentation

@dplumlee
Copy link
Contributor Author

💔 Some backports could not be created

Status Branch Result
9.1
8.19 Conflict resolution was aborted by the user

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

Manual backport

To create the backport manually run:

node scripts/backport --pr 227355

Questions ?

Please refer to the Backport tool documentation

dplumlee added a commit to dplumlee/kibana that referenced this pull request Jul 16, 2025
…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)
@dplumlee
Copy link
Contributor Author

💔 Some backports could not be created

Status Branch Result
9.1
8.19 Conflict resolution was aborted by the user

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

Manual backport

To create the backport manually run:

node scripts/backport --pr 227355

Questions ?

Please refer to the Backport tool documentation

dplumlee added a commit that referenced this pull request Jul 17, 2025
#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>
@dplumlee
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
8.19

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

Questions ?

Please refer to the Backport tool documentation

dplumlee added a commit that referenced this pull request Jul 17, 2025
…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-->
@maximpn
Copy link
Contributor

maximpn commented Jul 17, 2025

@marshallmain,

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

  • RuleCustomizationsContextProvider was moved inside Rule Details Page component
  • rule param was added to RuleCustomizationsContextProvider to make the context initialization much simpler

However, since I moved connect and wrapped Rule Detail Page component to connect the diff looks huge.

Bluefinger pushed a commit to Bluefinger/kibana that referenced this pull request Jul 22, 2025
…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>
kertal pushed a commit to kertal/kibana that referenced this pull request Jul 25, 2025
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels bug Fixes for quality problems that affect the customer experience ci:cloud-deploy Create or update a Cloud deployment ci:project-deploy-security Create a Security Serverless Project Feature:Prebuilt Detection Rules Security Solution Prebuilt Detection Rules area release_note:skip Skip the PR/issue when compiling release notes Team:Detection Rule Management Security Detection Rule Management Team Team:Detections and Resp Security Detection Response Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. v8.19.0 v9.1.0 v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Security Solution] Tooltip not displayed on hovering over Modified badge displayed with fields modified in prebuilt rule

7 participants