web: Show history details as approvals show them #7

Merged
dev merged 1 commits from audit-history-detail into main 2026-11-27 16:34:58 +00:00

The audit log kept each request's detail as text, so a request's history page showed it as one <pre> block. It now keeps the structured Detail (an untagged Shown enum, so old text records still read), and the history renders it with the same macro as pending cards: fields in view, tables, lists and coloured diffs folded under Details.

The journal line, slop-approve log and its --json still work; the JSON now has the structure.

Tested: cargo test (new tests for the old/new record formats and the request page), clippy.

🤖 Generated with Claude Code

The audit log kept each request's detail as text, so a request's history page showed it as one `<pre>` block. It now keeps the structured `Detail` (an untagged `Shown` enum, so old text records still read), and the history renders it with the same macro as pending cards: fields in view, tables, lists and coloured diffs folded under *Details*. The journal line, `slop-approve log` and its `--json` still work; the JSON now has the structure. Tested: `cargo test` (new tests for the old/new record formats and the request page), clippy. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
slop-cannon Bot added 1 commit 2026-11-27 16:14:55 +00:00
web: Show history details as approvals show them
CI / Check (pull_request) Successful in 4m48s
ac6d9dace8
The audit log kept a request's detail as text, so the web app's history
showed it as one preformatted block. Keep the structure instead, and
render it with the same fields, tables and coloured diffs as a pending
request. Older records' text still reads, as a text section.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
slop-cannon Bot force-pushed audit-history-detail from 752f198aa5 to ac6d9dace8 2026-11-27 16:14:55 +00:00 Compare
dev merged commit 0b2cdf4155 into main 2026-11-27 16:34:58 +00:00
dev deleted branch audit-history-detail 2026-11-27 16:34:58 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dev/slop-broker#7