New page /analytics/compare and API GET /admin/analytics/compare (+ /lists/{group}):
the administrator picks an old (A) and a new (B) run; the report shows the new
addresses (only in B), the ones that left (only in A) and the common ones whose
membership in the seven indicators (pass, partial, fail, egress https any/all,
ingress ssh any/all) differs, with a "what changed" summary per address; the
dynamics of each indicator (delta = new - left + entered - exited) and a verdict
transition matrix. Every number opens a list with CSV. Cancelled addresses are not
part of a run. The list dialog moved to a shared analytics-dialog.js and template;
/analytics got a "compare with another run" button.
Docs, plan and summary in docs/changes/.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
22 lines
848 B
HTML
22 lines
848 B
HTML
{{/* The address-list dialog and its tooltip, shared by the analytics pages;
|
|
analytics-dialog.js drives it. */}}
|
|
{{define "analytics_dialog"}}
|
|
<dialog id="an-dlg" aria-labelledby="an-dlg-title">
|
|
<div class="an-dlg">
|
|
<h3 id="an-dlg-title"></h3>
|
|
<p class="an-note" id="an-dlg-note"></p>
|
|
<div class="an-dist" id="an-dlg-dist" hidden></div>
|
|
<div class="an-list"><table id="an-dlg-tbl"></table></div>
|
|
<div class="an-foot">
|
|
<span class="an-note" id="an-dlg-msg" role="status"></span>
|
|
<div class="an-acts">
|
|
<button class="an-btn" type="button" id="an-dlg-copy">Копировать</button>
|
|
<button class="an-btn an-primary" type="button" id="an-dlg-csv">Скачать CSV</button>
|
|
<button class="an-btn" type="button" id="an-dlg-close" autofocus>Закрыть</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</dialog>
|
|
<div id="an-tip" role="tooltip"></div>
|
|
{{end}}
|