Skip to content

Commit 2e133a1

Browse files
committed
Clearer disabled-monitor UX (badge, dashed card, detail banner)
1 parent 87c8623 commit 2e133a1

3 files changed

Lines changed: 21 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
All notable changes to Gjallar are documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
55

6+
## [0.8.1] - 2026-07-06
7+
8+
### Changed
9+
10+
- Clearer disabled-monitor UX: a distinct dashed DISABLED badge, a dashed card
11+
outline on the status page, and an explicit banner on the monitor detail page.
12+
613
## [0.8.0] - 2026-07-06
714

815
### Added

internal/web/static/style.css

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,17 @@ h2 { border-left: 4px solid var(--red); padding-left: 10px; }
8282
.pill.up { background: #1f2a1f; color: var(--ok); border: 1px solid #3a4a3a; }
8383
.pill.down { background: var(--red-dark); color: #fff; border: 1px solid var(--red); }
8484
.pill.pending { background: #26262c; color: var(--muted); border: 1px solid var(--border); }
85-
.pill.disabled { background: #26262c; color: var(--muted); border: 1px dashed #4a4a52; }
86-
.card.disabled { opacity: .55; }
85+
.pill.disabled { background: #3a3a42; color: #cfcfd6; border: 1px dashed #6a6a72; }
86+
.card.disabled { opacity: .75; border-style: dashed; }
8787
.card.disabled .ticks { display: none; }
88+
.banner-disabled {
89+
background: #26262c;
90+
border: 1px dashed #6a6a72;
91+
color: var(--muted);
92+
border-radius: 8px;
93+
padding: 10px 14px;
94+
margin: 12px 0;
95+
}
8896

8997
/* uptime bars (oldest → newest) */
9098
.ticks { display: flex; gap: 2px; margin-top: 10px; }

internal/web/templates/_detail.tmpl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
<span class="pill {{.Status}}">{{.Status}}</span>
55
</div>
66

7+
{{if eq .Status "disabled"}}
8+
<div class="banner-disabled">⏸ This monitor is disabled — no checks are running and no alerts are sent.</div>
9+
{{end}}
10+
711
<div class="stats">
812
<div class="stat"><strong>{{.Uptime24h}}</strong><small>uptime 24h</small></div>
913
<div class="stat"><strong>{{.Uptime30d}}</strong><small>uptime 30d</small></div>

0 commit comments

Comments
 (0)