From c446ca072ec948c3da060e4b66c97f6b0bb8a2a3 Mon Sep 17 00:00:00 2001 From: Steve Cliff Date: Mon, 4 May 2026 23:04:10 +0100 Subject: [PATCH] ui(alerts): make Acknowledge vs Resolve distinction visible Both buttons make the row leave the Open tab, so on a quiet system they look identical. The behavioural difference only manifests next time the underlying condition fires: - Acknowledge silences fan-out while the problem persists; the alert parks on the Acknowledged tab and recurrences just touch last_seen_at without re-notifying. - Resolve closes the alert. If the same condition fires again later, a fresh alert with a new id raises and the channels fan out as if it were the first time. Add a one-line legend under the page header explaining both, and title= tooltips on each button covering the same ground for keyboard and assistive tech. --- web/templates/pages/alerts.html | 7 +++++++ web/templates/partials/alert_row.html | 9 ++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/web/templates/pages/alerts.html b/web/templates/pages/alerts.html index f7475fd..5f6db06 100644 --- a/web/templates/pages/alerts.html +++ b/web/templates/pages/alerts.html @@ -28,6 +28,13 @@ + {{/* triage legend โ€” Acknowledge vs Resolve looks identical on screen + (both leave the Open tab) so the difference needs spelling out. */}} +
+ Acknowledge silences fan-out while the underlying problem is still happening โ€” the alert moves to the Acknowledged tab. + Resolve closes the alert; the next failure raises a fresh one with a new notification. +
+ {{/* filter strip */}}
diff --git a/web/templates/partials/alert_row.html b/web/templates/partials/alert_row.html index b194386..7cabdc1 100644 --- a/web/templates/partials/alert_row.html +++ b/web/templates/partials/alert_row.html @@ -69,13 +69,15 @@ {{if $qs}}{{end}} + hx-swap="none" + title="I've seen this โ€” silence further fan-out, but the alert is still open until the condition clears or you Resolve it.">Acknowledge
{{if $qs}}{{end}} + hx-swap="none" + title="The underlying issue is fixed. Closes the alert. If the condition fires again a fresh alert will be raised with a new fan-out.">Resolve
{{else if eq $status "acknowledged"}} @@ -85,7 +87,8 @@ {{if $qs}}{{end}} + hx-swap="none" + title="The underlying issue is fixed. Closes the alert.">Resolve {{else}} resolved ยท {{relTime $a.ResolvedAt}}