Skip to content

Show a warning state when monitoring has no alert recipient - #201

Merged
keepalivedev merged 1 commit into
mainfrom
AddNoContactWarningState
Jul 11, 2026
Merged

Show a warning state when monitoring has no alert recipient#201
keepalivedev merged 1 commit into
mainfrom
AddNoContactWarningState

Conversation

@keepalivedev

Copy link
Copy Markdown
Owner

The main screen showed the green "Monitoring Active" status whenever monitoring was enabled with a scheduled alarm, recent activity, and permissions - it never checked whether any alert could actually be delivered. With no enabled SMS contact, no call contact, and no webhook, monitoring ran as a silent no-op behind a reassuring green status; the only cue was the greyed-out test button.

"Monitoring enabled but no usable alert channel" is now its own warning-colored state ("No Alert Recipient") with an explicit message. The check mirrors the alert pipeline: an enabled SMS contact with a number, a call contact, or (in webhook builds) an enabled+configured webhook. Enabling monitoring is still allowed so contacts can be set up afterwards.

New hasActiveAlertChannel() helper with unit tests; new strings translated for all 7 locales.

Fixes #187

Generated with Claude Code

The main screen showed the green Monitoring Active status whenever
monitoring was enabled with a scheduled alarm, recent activity, and
permissions - it never checked whether any alert could actually be
delivered. With no enabled SMS contact, no call contact, and no
webhook, monitoring ran as a silent no-op behind a reassuring green
status; the only cue was the greyed-out test button.

Monitoring enabled with no usable alert channel is now its own
warning-colored state with an explicit message. Enabling monitoring
is still allowed so contacts can be set up afterwards.

Fixes #187

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@keepalivedev
keepalivedev merged commit 1dbf261 into main Jul 11, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: monitoring shows "active" (green) even when no emergency contact is active — silent no-op in the real case

1 participant