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:
ayurishchevandClaude Sonnet 5.5 committed 2026-10-08 13:15:02 +03:00
1 parent c13139cd41
commit 1536723196
50 files changed
+3560 -154

No files matched your search

+39
View File
@@ -163,6 +163,45 @@ type breakdownRow struct {
OK int `json:"ok"`
}
// registryTrend is GET /admin/registry/trend: the checks of one direction (and
// protocol) per target or site in each finalized run, oldest run first.
type registryTrend struct {
Group string `json:"group"`
Truncated bool `json:"truncated"`
Runs []trendRun `json:"runs"`
Series []trendSeries `json:"series"`
}
// registryAlwaysPass is GET /admin/registry/always-pass: of Addresses with
// checks in the Runs of the period, AlwaysPass never failed one.
type registryAlwaysPass struct {
Truncated bool `json:"truncated"`
Runs int `json:"runs"`
FirstRunAt *time.Time `json:"first_run_at"`
LastRunAt *time.Time `json:"last_run_at"`
Addresses int `json:"addresses"`
AlwaysPass int `json:"always_pass"`
}
type trendRun struct {
ID int64 `json:"id"`
StartedAt time.Time `json:"started_at"`
FinalizedAt *time.Time `json:"finalized_at"`
Addresses int `json:"addresses"`
}
type trendSeries struct {
Key string `json:"key"`
Label string `json:"label"`
Points []trendPoint `json:"points"`
}
type trendPoint struct {
RunID int64 `json:"run_id"`
Total int `json:"total"`
OK int `json:"ok"`
}
// scanStatusDTO is the state of control-api's background floating-IP scan job
// (POST/GET /api/v1/admin/ips/scan).
type scanStatusDTO struct {