-
Notifications
You must be signed in to change notification settings - Fork 11.7k
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
Alerting: Change how we display annotations in the rule form #69338
Conversation
e7c3cbe
to
e43245d
Compare
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.
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.
public/app/features/alerting/unified/components/rule-editor/AnnotationsField.tsx
Outdated
Show resolved
Hide resolved
What about showing a read only id and a warning in case user doesn't have permission? @konrad147 @VikaCep |
public/app/features/alerting/unified/components/rule-editor/CustomAnnotationField.tsx
Outdated
Show resolved
Hide resolved
public/app/features/alerting/unified/components/rule-editor/RuleEditorSection.tsx
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.
LGTM!🚀
051a701
to
aafab41
Compare
* Change how we display annotations in the rule form * Allow to add custom annotations using a free text input * Get dashboard and panel titles to display in the annotations section * Add component to display dashboard and panel annotations as links * Add styling to help tooltip * Fix styling on annotations controls * Fix tests * Fix tests * Remove unused imports * Add component for custom annotations * Display default annotations even if editing and they're empty * Adjust tests * Make conditional rendering more clear * Fix tests * Move annotation header to separate component * Fix lint * Show annotation fields in the right order * Prevent showing custom annotation fields by default * Don't display links to dashboard/panel if response fails * Rename custom annotation header component * Fix after rebase
* Change how we display annotations in the rule form * Allow to add custom annotations using a free text input * Get dashboard and panel titles to display in the annotations section * Add component to display dashboard and panel annotations as links * Add styling to help tooltip * Fix styling on annotations controls * Fix tests * Fix tests * Remove unused imports * Add component for custom annotations * Display default annotations even if editing and they're empty * Adjust tests * Make conditional rendering more clear * Fix tests * Move annotation header to separate component * Fix lint * Show annotation fields in the right order * Prevent showing custom annotation fields by default * Don't display links to dashboard/panel if response fails * Rename custom annotation header component * Fix after rebase
What is this feature?
Changes how we display the section to add annotations when creating a rule. From now on Summary, Description and Runbook URL are always present as optional fields. Besides that, now we display de Dashboard name and Panel name when linked instead of just the id.
Why do we need this feature?
To make it simpler to use.
Who is this feature for?
All users.
Which issue(s) does this PR fix?:
Fixes #68200