feat(activity): one Activity page — runs, admin actions, server log and quota under one filter bar

The audit log, the server log and the admin quota view were three pages (the quota one a Stats tab),
each with its own filters, and the background runs had no list at all. Now one page ("Napló" /
"Activity") reads all four, each still its own table on the server: a shared bar (text, a period of
1 h to 90 days defaulting to 7, an account) and each tab's own filters, the whole view in the URL.
The old page ids open their tab.

Server side: the audit log and the new run list (`/api/admin/runs`) filter and page like the server
log, through one keyset helper (`routes/_keyset`) the log now shares; an audit row keeps the request
it was made in (migration 0111), so its log lines are a pivot away, as a run's are (`lrun`). The
quota breakdown takes since/until and one account. The Scheduler rows get a history button to their
job's runs.

Also fixed on the way: re-saving the value in force on the Configuration page staged its override
without committing it (the commit sat inside the audit branch), so the save was lost.
This commit is contained in:
2026-10-18 03:45:18 +02:00
parent d13483a593
commit 24448e7c6f
66 changed files with 2723 additions and 1119 deletions
@@ -0,0 +1,63 @@
{
"title": "Activity",
"tabs": {
"runs": "Runs",
"admin": "Admin actions",
"logs": "Server log",
"quota": "Quota"
},
"intro": {
"runs": "Every background run, newest first — scheduled, started by an admin, or a user's work on one channel. A row opens to what it did or why it failed, and to the lines it logged.",
"admin": "An append-only record of admin actions — who changed what, and when. A row opens to its before and after, and to the lines its request logged.",
"logs": "The server's stored log — lines from the API, the downloader and browsers, kept until the retention period ends. A line opens in place; its request, job or run id keeps only that one's lines."
},
"search": "Search…",
"windowLabel": "Period",
"windows": {
"1h": "1 hour",
"24h": "24 hours",
"7d": "7 days",
"30d": "30 days",
"90d": "90 days"
},
"account": "Account",
"any": "Any",
"noAccount": "No account (background)",
"older": "Load older",
"stale": "Couldn't refresh — what you see may be out of date",
"olderFailed": "Couldn't load the older rows",
"countsFailed": "Couldn't load the filter counts",
"runs": {
"job": "Job",
"statusLabel": "Filter by status",
"status": {
"error": "Failed",
"interrupted": "Interrupted",
"skipped": "Skipped",
"running": "Running",
"ok": "OK"
},
"empty": "No runs match the filters.",
"count_one": "{{count}} run shown · newest first",
"count_other": "{{count}} runs shown · newest first",
"fields": {
"started": "Started by",
"when": "Start → end",
"target": "Target",
"quota": "Quota units"
},
"logLines_one": "Its {{count}} log line →",
"logLines_other": "Its {{count}} log lines →",
"jobRuns": "This job's runs →"
},
"audit": {
"action": "Action",
"target": "Target",
"requestLines": "Its request's log lines →",
"count_one": "{{count}} action shown · newest first",
"count_other": "{{count}} actions shown · newest first"
},
"quota": {
"total": "Spend over {{window}}: {{units}} units"
}
}