feat(health): show site event-log/audit write and redaction failures on the Health dashboard (ScadaBridge#88)

New SiteWriteFailureBadges component renders warning badges for
SiteEventLogWriteFailures, SiteAuditWriteFailures and AuditRedactionFailure
when > 0 on online sites. The CLI 'health summary' already serialises the full
latest report, so these counters are visible there unchanged.

Claude-Session: https://claude.ai/code/session_01GT67AEHd2Acv1YPwGfXEoV
This commit is contained in:
Joseph Doherty
2026-11-09 13:13:57 -05:00
parent c4186509f6
commit 004bf3cf06
4 changed files with 114 additions and 2 deletions
@@ -293,6 +293,7 @@
Audit rows rejected
</span>
}
<SiteWriteFailureBadges Report="@state.LatestReport" IsOnline="@state.IsOnline" />
@if (!state.IsOnline && state.LastStatusChangeAt is { } changedAt)
{
<small class="text-muted">offline since @changedAt.ToString("u")</small>