web: Show history details as approvals show them
CI / Check (push) Successful in 4m44s

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>
This commit was merged in pull request #7.
This commit is contained in:
jackos1998andClaude Opus 5.5 authored and Jack O'Sullivan committed 2026-11-27 16:34:58 +00:00
1 parent 9d08b5cf8f
commit 0b2cdf4155
8 files changed
+106 -24

No files matched your search

+3 -2
View File
@@ -328,8 +328,9 @@ operation, and nothing acts on the structure besides showing it.
Each request, decision, approver, lease use and result is an event with the request's ID. The
broker writes it to the journal as a line of text and to `audit.jsonl` in its state directory as a
line of JSON. `slop-approve log [-n 50] [--json]` shows the recent events through the approve
socket, with each request's full detail. Secret operations record the file and the blob ID of the
line of JSON, keeping what approvers were shown with its structure, so the web app's history shows
it as the request did. `slop-approve log [-n 50] [--json]` shows the recent events through the
approve socket, with each request's full detail. Secret operations record the file and the blob ID of the
ciphertext they were sent, never values.
## Operations