feat(alerts): the whole rule row opens the rule (#5214)
CI / lint (push) Successful in 3s
CI / integration (push) Successful in 1m2s
CI / unit (push) Successful in 1m24s
CI / publish (push) Successful in 1m30s

The name's link stretches over its row (.row-link / .row-target); the
History and Disable buttons sit above it and keep their own clicks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-07 23:23:02 -04:00
co-authored by Claude Opus 5.5
parent e37cd0a873
commit 16b636b2f0
3 changed files with 16 additions and 5 deletions
+5 -4
View File
@@ -1,7 +1,8 @@
{# alerts/list.html — the Alerts page (#5315): the verdict and what is active
(alerts/_active.html, polled), then every rule: what it is doing now and
when it last fired, what it fires on, and its History and Disable. A rule's
name opens it; deleting one is on its own page, behind the confirm dialog. #}
when it last fired, what it fires on, and its History and Disable. The
whole row opens the rule (.row-link, its name is the link); deleting one is
on its own page, behind the confirm dialog. #}
{% extends "base.html" %}
{% block title %}Alerts — Steward{% endblock %}
{% from "_macros.html" import page_header, status_badge, empty_state %}
@@ -36,9 +37,9 @@
<tbody>
{% for rule in rules %}
{% set fired = (last_fired or {}).get(rule.id) %}
<tr{% if not rule.enabled %} class="row-off"{% endif %}>
<tr class="row-link{% if not rule.enabled %} row-off{% endif %}">
<td class="cell-name">
<a href="{{ ('/alerts/rules/' ~ rule.id ~ '/edit') if can_edit else ('/alerts/history?rule=' ~ rule.id) }}" title="{{ rule.name }}">{{ rule.name }}</a>
<a class="row-target" href="{{ ('/alerts/rules/' ~ rule.id ~ '/edit') if can_edit else ('/alerts/history?rule=' ~ rule.id) }}" title="{{ rule.name }}">{{ rule.name }}</a>
<div class="cell-sub">{{ source_label(rule.source_module) }}</div>
</td>
<td>