Skip to content

Conversation

@ameliahsu
Copy link
Contributor

uses reusable DisabledAlert component from #103165 to show an alert for disabled metric and error monitors, and adds a matching component for alerts

Screenshot 2025-12-11 at 8 53 16 AM

@ameliahsu ameliahsu requested a review from a team as a code owner December 11, 2025 13:53
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Dec 11, 2025
@codecov
Copy link

codecov bot commented Dec 11, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

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           

@ameliahsu ameliahsu changed the title Mia/aci/disabled message feat(aci): add disabled alert to error/metric monitors and alerts Dec 11, 2025
disabled={isEnabling || !canEdit}
aria-label={t('Enable')}
title={
canEdit ? undefined : t('You do not have permission to enable this alert')
Copy link
Member

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',
}}
/>
),
}
)

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

@ameliahsu ameliahsu merged commit 4579803 into master Dec 11, 2025
49 checks passed
@ameliahsu ameliahsu deleted the mia/aci/disabled-message branch December 11, 2025 19:32
@github-actions github-actions bot locked and limited conversation to collaborators Dec 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants