Skip to content

Conversation

@evanpurkhiser
Copy link
Member

Adds a reusable DisabledAlert component that displays a muted alert when
a detector is disabled, with a one-click enable button. The alert
automatically hides when the detector becomes enabled.

Uptime detectors show: "This monitor is disabled and not recording uptime checks."
Cron detectors show: "This monitor is disabled and not accepting check-ins."

Fixes NEW-565: Disabled monitors should show a indicator that disabling means not accepting check-ins
Fixes NEW-616: Indicate that the monitor is disabled

Adds a reusable DisabledAlert component that displays a muted alert when
a detector is disabled, with a one-click enable button. The alert
automatically hides when the detector becomes enabled.

Uptime detectors show: "This monitor is disabled and not recording uptime checks."
Cron detectors show: "This monitor is disabled and not accepting check-ins."

Fixes [NEW-565: Disabled monitors should show a indicator that disabling means not accepting check-ins](https://linear.app/getsentry/issue/NEW-565/disabled-monitors-should-show-a-indicator-that-disabling-means-not)
Fixes [NEW-616: Indicate that the monitor is disabled](https://linear.app/getsentry/issue/NEW-616/indicate-that-the-monitor-is-disabled)
@evanpurkhiser evanpurkhiser requested a review from a team as a code owner November 11, 2025 17:22
@evanpurkhiser evanpurkhiser requested review from a team, malwilley and scttcper November 11, 2025 17:22
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Nov 11, 2025

const handleEnable = () => {
updateDetector({detectorId: detector.id, enabled: true});
};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Unauthorized users see alert enable button.

The DisabledAlert component doesn't check user permissions before showing the enable button. The existing DisableDetectorAction uses useCanEditDetector to verify permissions, but DisabledAlert always displays the button when the detector is disabled, allowing users without alerts:write permission to attempt enabling detectors (which will fail at the API level, creating a confusing user experience).

Fix in Cursor Fix in Web

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable, will add

@evanpurkhiser evanpurkhiser merged commit 723fddb into master Nov 11, 2025
48 checks passed
@evanpurkhiser evanpurkhiser deleted the evanpurkhiser/feat-detectors-add-disabled-alert-to-uptime-and-cron-detector-details branch November 11, 2025 18:24
Jesse-Box pushed a commit that referenced this pull request Nov 12, 2025
…ls (#103165)

Adds a reusable DisabledAlert component that displays a muted alert when
a detector is disabled, with a one-click enable button. The alert
automatically hides when the detector becomes enabled.

Uptime detectors show: "This monitor is disabled and not recording
uptime checks."
Cron detectors show: "This monitor is disabled and not accepting
check-ins."

Fixes [NEW-565: Disabled monitors should show a indicator that disabling
means not accepting
check-ins](https://linear.app/getsentry/issue/NEW-565/disabled-monitors-should-show-a-indicator-that-disabling-means-not)
Fixes [NEW-616: Indicate that the monitor is
disabled](https://linear.app/getsentry/issue/NEW-616/indicate-that-the-monitor-is-disabled)
andrewshie-sentry pushed a commit that referenced this pull request Nov 13, 2025
…ls (#103165)

Adds a reusable DisabledAlert component that displays a muted alert when
a detector is disabled, with a one-click enable button. The alert
automatically hides when the detector becomes enabled.

Uptime detectors show: "This monitor is disabled and not recording
uptime checks."
Cron detectors show: "This monitor is disabled and not accepting
check-ins."

Fixes [NEW-565: Disabled monitors should show a indicator that disabling
means not accepting
check-ins](https://linear.app/getsentry/issue/NEW-565/disabled-monitors-should-show-a-indicator-that-disabling-means-not)
Fixes [NEW-616: Indicate that the monitor is
disabled](https://linear.app/getsentry/issue/NEW-616/indicate-that-the-monitor-is-disabled)
@github-actions github-actions bot locked and limited conversation to collaborators Nov 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