From d003e54489520487c749b7e4bfe3222586863e57 Mon Sep 17 00:00:00 2001 From: Sonia Aguilar <33540275+soniaAguilarPeiron@users.noreply.github.com> Date: Wed, 10 Sep 2025 13:52:10 +0200 Subject: [PATCH] Alerting: Enrichment per rule wip-2 (#110437) * Add feature toggle and extension point * Update ff name for enrichment per rule * update translations * wip * remove wrong duplication after merging from main * manage enrichments per rule drawer: add ruleUid to extension component * remove folder * move drawer to the list page * update translations * remove unused import --- .../rule-editor/AnnotationsStep.tsx | 3 +- .../NotificationMessageSectionExtension.tsx | 34 --------------- .../extensions/EnrichmentDrawerExtension.tsx | 42 +++++++++++++++++++ .../components/rule-viewer/AlertRuleMenu.tsx | 30 +++++++++++++ .../components/rules/RuleActionsButtons.tsx | 6 +++ .../components/RuleActionsButtons.V2.tsx | 6 +++ public/locales/en-US/grafana.json | 3 +- 7 files changed, 87 insertions(+), 37 deletions(-) delete mode 100644 public/app/features/alerting/unified/components/rule-editor/alert-rule-form/extensions/NotificationMessageSectionExtension.tsx create mode 100644 public/app/features/alerting/unified/components/rule-list/extensions/EnrichmentDrawerExtension.tsx diff --git a/public/app/features/alerting/unified/components/rule-editor/AnnotationsStep.tsx b/public/app/features/alerting/unified/components/rule-editor/AnnotationsStep.tsx index c03366740bc..b7ef11375f0 100644 --- a/public/app/features/alerting/unified/components/rule-editor/AnnotationsStep.tsx +++ b/public/app/features/alerting/unified/components/rule-editor/AnnotationsStep.tsx @@ -19,7 +19,6 @@ import DashboardAnnotationField from './DashboardAnnotationField'; import { DashboardPicker, PanelDTO, getVisualPanels } from './DashboardPicker'; import { NeedHelpInfo } from './NeedHelpInfo'; import { RuleEditorSection } from './RuleEditorSection'; -import { NotificationMessageSectionExtension } from './alert-rule-form/extensions/NotificationMessageSectionExtension'; import { useDashboardQuery } from './useDashboardQuery'; const AnnotationsStep = () => { @@ -212,6 +211,7 @@ const AnnotationsStep = () => { ); })} +