mavweb: add rule trace page at /trace

New template showing the most recent tick's rule evaluation results
with color-coded table, expandable gate detail panels, nav links
to dash and history. Uses the TickTrace IPC method from #15.
This commit is contained in:
kami
2026-07-05 13:17:47 +04:00
parent 2689db1248
commit 85013f7b8b
5 changed files with 173 additions and 3 deletions
+1 -1
View File
@@ -10,7 +10,7 @@
.updated{color:#666;font-size:.85rem;margin-top:-.5rem;margin-bottom:1rem}
nav a{color:#8cf;margin-right:1rem;font-size:.85rem}
</style>
<nav><a href=/history>history</a></nav>
<nav><a href=/history>history</a> <a href=/trace>trace</a></nav>
<h2>presence</h2>
<p><span class={{.Presence.Bucket}}>{{.Presence.Bucket}}</span> — score {{printf "%.2f" .Presence.Score}} ({{ago .Presence.Updated}})</p>
<div class=updated>обновляется каждые 10с</div>