Admin UI: audit viewer, legal-holds manager, read-only viewer badge (#79) #81
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/admin-ui"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Three of the four parts of #79. Deliberately not closing the issue — see below.
Audit viewer (#61) — dialog reachable from Settings, lists events newest-first from
GET /api/v1/admin/auditwith user and path-prefix filters, and flags any event whoseresult != "ok".Legal-holds manager (#63) — list, place (path + optional note), lift. Shows who placed each hold and when.
Read-only viewer badge (#64) —
internal/api/api.gonow adds"readOnly"to the list response via an optionalReadOnly(ctx, path) boolinterface assertion on the store, so the change is inert for any store that doesn't implement it. The client disables mkdir/upload and shows a "View only" chip. Advisory only: the scope driver remains the enforcer, this just stops offering actions that would be refused.All strings in en/de/fr/it. The script block uses its own small
adminFetchhelper rather than assuming the shape of an existing wrapper.What's not here, and why. The retention editor is missing because splicing it revealed something worse:
trashAutoPurgedoes not appear anywhere inindex.html. The v0.3.19 auto-purge backend is real and tested, but the Settings controls I described in that changelog entry never landed — an earlier patch step must have aborted before applying them and I didn't verify the UI half. So there is currently no way to enable auto-purge from the browser. Retention and auto-purge both belong in the same Settings block, so they should be done together, against the now-known anchors (set-saveat line 426, its handler at 1745) rather than guessed ones. Tracked as a follow-up; #79 stays open for it.