Repository navigation
fix(web): page and filter the audit log; list approval decisions apart from the queue (#441) - #510
Merged
Merged
Conversation
…t from the queue (#441) The Audit log tab showed the newest 25 entries with no way to reach older ones, no filter, and rows that said "on agent" without naming which. The Approvals page loaded 100 approvals of any status and built "Recent decisions" from that page, so a long pending queue left it empty. - API: `GET /api/v1/audit-logs` accepts `area`, the action family before the first dot (`agent` matches `agent.deleted`, not `agent_x.y` or `team_run.started`); other values are refused with 400. `GET /api/v1/approvals?status=decided` lists every status but pending, newest decision first. - Audit tab: "Load older activity" pages through `nextCursor`, a "Show" select filters by area, and each row names its target (the recorded name, slug or email, else the short target id); "Details" shows the action, full target id, request id, IP and metadata. Types come from the generated `AuditLogPage`. - Approvals: pending (up to 200, with a notice when capped) and the 30 latest decisions are separate requests; deciding invalidates every approvals list, also from the execution page. - Docs: settings and approvals guides. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #441.
Summary
The Audit log tab showed the newest 25 entries with no way to reach older
ones, no filter, and rows that said "on agent" without naming which. The
Approvals page loaded 100 approvals of any status and built "Recent
decisions" from that page, so a long pending queue left it empty.
GET /api/v1/audit-logsacceptsarea, the action family before thefirst dot (
agentmatchesagent.deleted, notagent_x.yorteam_run.started); other values are refused with 400.GET /api/v1/approvals?status=decidedlists every status but pending,newest decision first.
nextCursor, a "Show"select filters by area, and each row names its target (the recorded
name, slug or email, else the short target id); "Details" shows the
action, full target id, request id, IP and metadata. Types come from the
generated
AuditLogPage.latest decisions are separate requests; deciding invalidates every
approvals list, also from the execution page.
Testing
cargo fmt --check,clippy -D warnings: clean;pnpm api:generate --check: passedcargo test --workspacewith a database: 0 failures (190 API integration tests), including newaudit_log_pages_and_filters_by_areaanddecided_approvals_are_listed_apart_from_pending_onestypecheckpassed;test98 passed (4 new inlib/audit.test.ts);pnpm docs:checkpassedAPI additions:
areaonGET /api/v1/audit-logs,status=decidedonGET /api/v1/approvals. Not checked in a browser. The pending queue is capped at the API maximum of 200 with a notice. Conflicts with #498 on the approvals page anddocs/guide/approvals.md; whichever merges second needs a merge.🤖 Generated with Claude Code