feat(monitor): add STALE state for push monitors #57

Merged
lerko merged 4 commits from feat/push-stale-state into main 2026-06-04 18:23:58 +00:00
Owner

Summary

  • New intermediate state between LATE and DOWN at grace period midpoint
  • State progression: UP → LATE → STALE → DOWN
  • Dedicated orange theme color across all 5 themes (Flexoki, Tokyo Night, Gruvbox, Catppuccin, Nord)
  • Proper styling in dashboard, detail panel, and history view

Phase 1 Backlog

Closes item #2 (push monitor PENDING/STALE states). PENDING already existed — this adds STALE as a differentiator vs Uptime Kuma.

Timing (60s interval, 60s grace)

0s        60s       90s       120s
|--UP------|--LATE---|--STALE--|--DOWN-->

Test Plan

  • go test ./internal/monitor/ — TestCheckPush_OverdueBecomesStale passes
  • go build ./... — clean
  • go vet ./... — clean
  • Manual: create push monitor, let heartbeat lapse, observe LATE → STALE → DOWN progression
  • Manual: verify STALE renders orange in all themes
## Summary - New intermediate state between LATE and DOWN at grace period midpoint - State progression: UP → LATE → STALE → DOWN - Dedicated orange theme color across all 5 themes (Flexoki, Tokyo Night, Gruvbox, Catppuccin, Nord) - Proper styling in dashboard, detail panel, and history view ## Phase 1 Backlog Closes item #2 (push monitor PENDING/STALE states). PENDING already existed — this adds STALE as a differentiator vs Uptime Kuma. ## Timing (60s interval, 60s grace) ``` 0s 60s 90s 120s |--UP------|--LATE---|--STALE--|--DOWN--> ``` ## Test Plan - [x] `go test ./internal/monitor/` — TestCheckPush_OverdueBecomesStale passes - [x] `go build ./...` — clean - [x] `go vet ./...` — clean - [x] Manual: create push monitor, let heartbeat lapse, observe LATE → STALE → DOWN progression - [x] Manual: verify STALE renders orange in all themes
lerko added 1 commit 2026-06-04 17:32:21 +00:00
feat(monitor): add STALE state for push monitors
CI / test (pull_request) Successful in 2m38s
CI / lint (pull_request) Successful in 56s
CI / vulncheck (pull_request) Successful in 51s
0b3b1c1ad8
New intermediate state between LATE and DOWN at the midpoint of
the grace period. Gives operators earlier warning that a push
monitor has gone quiet. Includes dedicated orange theme color
across all 5 themes and proper styling in dashboard, detail
panel, and history view.
lerko force-pushed feat/push-stale-state from ec28c0367d to 0b3b1c1ad8 2026-06-04 17:32:21 +00:00 Compare
lerko added 1 commit 2026-06-04 17:54:25 +00:00
fix(tui): show push token and URL in detail panel
CI / test (pull_request) Successful in 2m35s
CI / lint (pull_request) Successful in 56s
CI / vulncheck (pull_request) Successful in 51s
c9353ac7cd
Push monitors were missing token/endpoint info in the detail
view, making it impossible to know where to send heartbeats.
lerko added 2 commits 2026-06-04 18:18:57 +00:00
fix(monitor): propagate STALE/LATE child status to group
CI / test (pull_request) Successful in 2m29s
CI / lint (pull_request) Successful in 56s
CI / vulncheck (pull_request) Successful in 51s
e084e60dfc
checkGroup only checked for DOWN/SSL EXP and PENDING. Groups
now reflect STALE and LATE children with proper priority:
DOWN > STALE > LATE > PENDING > UP.
lerko merged commit b2e92e8a2a into main 2026-06-04 18:23:58 +00:00
lerko deleted branch feat/push-stale-state 2026-06-04 18:23:58 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: lerkolabs/uptop#57