fix(tui): exclude maintenance'd monitors from down count and pulse

Sites badge, status line, and pulse indicator now skip monitors under
maintenance when counting DOWN — consistent with group behavior.
This commit is contained in:
2026-05-22 19:25:27 -04:00
parent a89584dac1
commit dc672d6cba
+2 -2
View File
@@ -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++
}
}