From 9c520acf9c6d7fe171515a53aa90eac0330de88e Mon Sep 17 00:00:00 2001 From: Pepe Cano <825430+ppcano@users.noreply.github.com> Date: Thu, 7 Mar 2024 12:33:16 +0100 Subject: [PATCH] Alerting: Minor changes to UI help text and descriptions (#84023) --- .../alerting/unified/components/receivers/TemplateForm.tsx | 2 +- .../unified/components/rule-editor/AnnotationsStep.tsx | 5 ----- .../alerting/unified/components/rule-editor/LabelsField.tsx | 2 +- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/public/app/features/alerting/unified/components/receivers/TemplateForm.tsx b/public/app/features/alerting/unified/components/receivers/TemplateForm.tsx index e5319d49b40..6ed886fc853 100644 --- a/public/app/features/alerting/unified/components/receivers/TemplateForm.tsx +++ b/public/app/features/alerting/unified/components/receivers/TemplateForm.tsx @@ -280,7 +280,7 @@ function TemplatingGuideline() {
- To make templating easier, we provide a few snippets in the content editor to help you speed up your workflow. + For auto-completion of common templating code, type the following keywords in the content editor:
{Object.values(snippets) .map((s) => s.label) 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 010cba9f7a1..8227b087bf2 100644 --- a/public/app/features/alerting/unified/components/rule-editor/AnnotationsStep.tsx +++ b/public/app/features/alerting/unified/components/rule-editor/AnnotationsStep.tsx @@ -89,9 +89,6 @@ const AnnotationsStep = () => { }; function getAnnotationsSectionDescription() { - const docsLink = - 'https://grafana.com/docs/grafana/latest/alerting/fundamentals/annotation-label/variables-label-annotation'; - return ( @@ -101,8 +98,6 @@ const AnnotationsStep = () => { contentText={`Annotations add metadata to provide more information on the alert in your alert notification messages. For example, add a Summary annotation to tell you which value caused the alert to fire or which server it happened on. Annotations can contain a combination of text and template code.`} - externalLink={docsLink} - linkText={`Read about annotations`} title="Annotations" /> diff --git a/public/app/features/alerting/unified/components/rule-editor/LabelsField.tsx b/public/app/features/alerting/unified/components/rule-editor/LabelsField.tsx index 907e3c4b53e..4f510ed3070 100644 --- a/public/app/features/alerting/unified/components/rule-editor/LabelsField.tsx +++ b/public/app/features/alerting/unified/components/rule-editor/LabelsField.tsx @@ -284,7 +284,7 @@ const LabelsField: FC = ({ dataSourceName }) => { Labels - Add labels to your rule to annotate your rules, ease searching, or route to a notification policy. + Add labels to your rule for searching, silencing, or routing to a notification policy.