#597 UI: departed-owners tab, transfer dialog, revoke-all, delete preview #628
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix-597-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?
UI slice of #597, per the approved rev-1 mockup (decisions: revoke-all as a new atomic endpoint; account picker for the transfer target; honest empty text on unverifiable instances).
Backend additions:
FileStore.DeleteByCreator— all-or-nothing removal of every record (grants and links) by one creator, rollback on failed save.POST /api/v1/admin/owners/revoke(requireAdmin) — 409 while the account still resolves; audit verbowner-revoke; returns {revoked, grants, links}.verifiable(local mode, or oidc with admin client) anddirectory(answers come from an IdP) flags; wired in main.go.Frontend (index.html):
ADM_TABS, pane, activation hook): rows with owner, grant/link counts, ≤3 sample paths (+N more), frozen-count chip, per-row Transfer/Revoke-all link-buttons; empty state honest perverifiable; outage hint whendirectory.#ownxferdlg: datalist picker fed by local-users + license seats, live consequence facts (move path, grants follow, links break, holds/quota/versions note), API refusal sentences shown inline, disabled until the plan is valid.askConfirmwith the counted, permanence-noting message./admin/owners/previewand folds the freeze counts into the confirm (silent when the account shared nothing).pure:departed(row model, empty key, transfer plan, picker filter) +web/test/departed.test.js(14 asserts). i18n ×4 for all 24 new keys.Red-green on the runner: RED (compile-fail on missing endpoint/fields) confirmed, then full go vet + go test + extract fence + all web suites green (commit
517d1ae).