Registry: trend chart, always-pass indicator, subnet columns in the address list dialog
- Registry: "Динамика по запускам" chart (Chart.js 4.5.1, vendored) over finalized runs per target or site, % or count, subnet and calendar period filters; GET /admin/registry/trend - Registry: clickable "Всегда проходили" indicator with the address list and CSV; GET /admin/registry/always-pass and /always-pass/list - Address list dialog: "Подсеть" and "Метка подсети" columns from the administrator's subnet list (shared db.SubnetMatcher), per-subnet summary chips with a client-side filter; "прочие" renamed to "вне списка подсетей" - Rebuild control-api and admin-dashboard binaries; plans and summaries in docs/changes, README, API and USAGE updated Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c13139cd41
commit
1536723196
50 files changed
+3560
-154
No files matched your search
@@ -7,6 +7,8 @@
|
||||
/* heat ramp: one blue hue, validated sequential steps (light = low) */
|
||||
--an-h1:#cde2fb; --an-h2:#9ec5f4; --an-h3:#6da7ec; --an-h4:#3987e5; --an-h5:#256abf; --an-h6:#184f95; --an-h7:#0d366b;
|
||||
--an-hi1:#12161F; --an-hi2:#12161F; --an-hi3:#12161F; --an-hi4:#FFFFFF; --an-hi5:#FFFFFF; --an-hi6:#FFFFFF; --an-hi7:#FFFFFF;
|
||||
/* trend chart: ten line colours, one per target or site */
|
||||
--tr-c0:#2a6fdb; --tr-c1:#d4540a; --tr-c2:#0b8f6a; --tr-c3:#b03a8c; --tr-c4:#8c6d00; --tr-c5:#0090b8; --tr-c6:#7a4fd1; --tr-c7:#c0392b; --tr-c8:#4d7c0f; --tr-c9:#5b6577;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root:not([data-theme="light"]) {
|
||||
@@ -14,6 +16,7 @@
|
||||
--an-bar: #5C8CFF; --an-bar-track: #1D2430;
|
||||
--an-h1:#0d366b; --an-h2:#104281; --an-h3:#184f95; --an-h4:#256abf; --an-h5:#3987e5; --an-h6:#6da7ec; --an-h7:#9ec5f4;
|
||||
--an-hi1:#B8C9E8; --an-hi2:#C3D6F5; --an-hi3:#E7ECF5; --an-hi4:#FFFFFF; --an-hi5:#0A0D13; --an-hi6:#0A0D13; --an-hi7:#0A0D13;
|
||||
--tr-c0:#6ea2ff; --tr-c1:#ff8a4c; --tr-c2:#2fd0a0; --tr-c3:#e58ac4; --tr-c4:#e0b84a; --tr-c5:#4cc9ee; --tr-c6:#a58bff; --tr-c7:#ff6f61; --tr-c8:#a3d95b; --tr-c9:#a0abbd;
|
||||
}
|
||||
}
|
||||
:root[data-theme="dark"] {
|
||||
@@ -21,6 +24,7 @@
|
||||
--an-bar: #5C8CFF; --an-bar-track: #1D2430;
|
||||
--an-h1:#0d366b; --an-h2:#104281; --an-h3:#184f95; --an-h4:#256abf; --an-h5:#3987e5; --an-h6:#6da7ec; --an-h7:#9ec5f4;
|
||||
--an-hi1:#B8C9E8; --an-hi2:#C3D6F5; --an-hi3:#E7ECF5; --an-hi4:#FFFFFF; --an-hi5:#0A0D13; --an-hi6:#0A0D13; --an-hi7:#0A0D13;
|
||||
--tr-c0:#6ea2ff; --tr-c1:#ff8a4c; --tr-c2:#2fd0a0; --tr-c3:#e58ac4; --tr-c4:#e0b84a; --tr-c5:#4cc9ee; --tr-c6:#a58bff; --tr-c7:#ff6f61; --tr-c8:#a3d95b; --tr-c9:#a0abbd;
|
||||
}
|
||||
|
||||
.an { display: grid; gap: 16px; align-content: start; min-width: 0; font-family: var(--font-ui); font-size: 14px; line-height: 1.5; }
|
||||
@@ -136,3 +140,30 @@ button.an-bar-row:focus-visible { outline: 2px solid var(--accent); outline-offs
|
||||
.an tr, .an tbody tr { display: table-row; width: auto; padding: 0; border-bottom: 0; }
|
||||
.an td { display: table-cell; width: auto; padding: 6px 8px; border-bottom: 1px solid var(--border-soft); }
|
||||
}
|
||||
|
||||
/* trend chart of the registry (registry-trend.js): the plot scrolls sideways inside its block, never the page */
|
||||
.an-field input[type="date"] { font: 500 13px var(--font-mono); background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--an-radius); padding: 6px 10px; min-width: 0; }
|
||||
.tr-scroll { overflow-x: auto; max-width: 100%; }
|
||||
.tr-plot { position: relative; height: 260px; min-width: 520px; }
|
||||
.tr-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
||||
@media (max-width: 640px) { .an-field input[type="date"] { width: 100%; } }
|
||||
|
||||
/* the "always passed" tile above the trend chart (registry.js): a button that opens the list of addresses */
|
||||
button.ap-tile { display: grid; gap: 2px; text-align: left; font: inherit; color: inherit; background: var(--surface-alt); border: 1px solid var(--border); border-left: 3px solid var(--success); border-radius: var(--an-radius); padding: 10px 14px; cursor: pointer; max-width: 100%; }
|
||||
button.ap-tile:hover { background: var(--surface); border-color: var(--accent); }
|
||||
button.ap-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
||||
.ap-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
|
||||
.ap-t { font-weight: 600; }
|
||||
.ap-v { font: 700 22px var(--font-mono); font-variant-numeric: tabular-nums; color: var(--success); }
|
||||
.ap-of { font: 500 13px var(--font-mono); color: var(--text-muted); }
|
||||
.ap-sub { font-size: 12.5px; color: var(--text-muted); overflow-wrap: anywhere; }
|
||||
|
||||
/* subnet summary above the address list of the dialog */
|
||||
.an-dlg .an-subs { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; max-height: 5.5em; overflow: auto; }
|
||||
.an-subs .an-subs-h { font: 700 11px var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
|
||||
.an-subs .an-subs-more { font: 500 12px var(--font-mono); color: var(--text-muted); }
|
||||
.an-subs .an-sub-chip { font: 500 12px var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 2px; padding: 2px 8px; cursor: pointer; }
|
||||
.an-subs .an-sub-chip:hover { background: var(--surface-alt); }
|
||||
.an-subs .an-sub-chip[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-strong); border-color: var(--accent); }
|
||||
.an-subs .an-sub-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
||||
@media (max-height: 540px) { .an-dlg .an-subs { display: none; } }
|
||||
Reference in new issue
Block a user