From dc672d6cbab484a8f66ee241bfaec2694783d159 Mon Sep 17 00:00:00 2001 From: Tyler Koenig Date: Fri, 22 May 2026 19:25:27 -0400 Subject: [PATCH] fix(tui): exclude maintenance'd monitors from down count and pulse MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sites badge, status line, and pulse indicator now skip monitors under maintenance when counting DOWN — consistent with group behavior. --- internal/tui/tui.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/tui/tui.go b/internal/tui/tui.go index 443a045..1a2e9b6 100644 --- a/internal/tui/tui.go +++ b/internal/tui/tui.go @@ -652,7 +652,7 @@ func (m Model) pulseIndicator() string { } hasDown := false for _, s := range m.sites { - if !s.Paused && (s.Status == "DOWN" || s.Status == "SSL EXP") { + if !s.Paused && !m.isMonitorInMaintenance(s.ID) && (s.Status == "DOWN" || s.Status == "SSL EXP") { hasDown = true break } @@ -727,7 +727,7 @@ func (m Model) View() string { func (m Model) viewDashboard() string { downCount := 0 for _, s := range m.sites { - if !s.Paused && (s.Status == "DOWN" || s.Status == "SSL EXP") { + if !s.Paused && !m.isMonitorInMaintenance(s.ID) && (s.Status == "DOWN" || s.Status == "SSL EXP") { downCount++ } }