-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
feat(aci): add disabled alert to error/metric monitors and alerts #104756
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
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #104756 +/- ##
========================================
Coverage 80.48% 80.48%
========================================
Files 9359 9359
Lines 401725 401725
Branches 25822 25822
========================================
Hits 323321 323321
Misses 77962 77962
Partials 442 442 |
| disabled={isEnabling || !canEdit} | ||
| aria-label={t('Enable')} | ||
| title={ | ||
| canEdit ? undefined : t('You do not have permission to enable this alert') |
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.
Might be nice to do what we do for monitors and link to settings in this case
| ? tct( | |
| 'You do not have permission to edit this monitor. Ask your organization owner or manager to [settingsLink:enable monitor access] for you.', | |
| { | |
| settingsLink: ( | |
| <Link | |
| to={{ | |
| pathname: `/settings/${organization.slug}/`, | |
| hash: 'alertsMemberWrite', | |
| }} | |
| /> | |
| ), | |
| } | |
| ) |
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.
I just tried this and realized that the Button title is not hoverable 🤔 so I'm going to update all of these to use the Tooltip component with isHoverable
uses reusable DisabledAlert component from #103165 to show an alert for disabled metric and error monitors, and adds a matching component for alerts