feat(#765): space description (owner + admin) and storage-used display #766

Merged
Cordy merged 15 commits from feat-765 into main 2026-09-26 04:37:14 +00:00
Owner

Closes #765. Mockup-approved slice from #695 round 13 (cheap half; image and quota limits are follow-ups).

  • spacestore.Space gains Description (age-encrypted store, SetDescription via the clone-persist-commit mutate()).
  • POST /api/v1/spaces/{name}/description: owner-or-admin (write members refused), trimmed, 240-rune limit → 422, empty clears, audited as space-set-description (registered in the append-only verbs table — the verbs_test sweep caught that on the first green run).
  • fillSpaceStates now stamps description and spaceSize (from the background SpaceSizes cache) onto /spaces listing rows.
  • UI: description as the row subtitle (deactivated label still wins), measured size in the dir size cell, details pane gains Type "Space" + wrapping Description + Storage used rows, the space kebab gains a state-gated "Edit description" with a counter dialog, the admin drawer shows it with Edit.
  • i18n ×4; Go test (guard/limit/clear lifecycle) + qa765 static pins; both suites green.

One deviation from the mockup, called out: the details pane skips the "measured in the background" hint line — the honest dash covers the unmeasured case without inventing a refresh interval.

Closes #765. Mockup-approved slice from #695 round 13 (cheap half; image and quota limits are follow-ups). - `spacestore.Space` gains `Description` (age-encrypted store, `SetDescription` via the clone-persist-commit `mutate()`). - `POST /api/v1/spaces/{name}/description`: owner-or-admin (write members refused), trimmed, 240-rune limit → 422, empty clears, audited as `space-set-description` (registered in the append-only verbs table — the verbs_test sweep caught that on the first green run). - `fillSpaceStates` now stamps `description` and `spaceSize` (from the background `SpaceSizes` cache) onto `/spaces` listing rows. - UI: description as the row subtitle (deactivated label still wins), measured size in the dir size cell, details pane gains Type "Space" + wrapping Description + Storage used rows, the space kebab gains a state-gated "Edit description" with a counter dialog, the admin drawer shows it with Edit. - i18n ×4; Go test (guard/limit/clear lifecycle) + qa765 static pins; both suites green. One deviation from the mockup, called out: the details pane skips the "measured in the background" hint line — the honest dash covers the unmeasured case without inventing a refresh interval.
scout-765: byte-exact anchors for space description slice
All checks were successful
scout-765 / scout (push) Successful in 1s
0d09624062
test(#765): RED — space description store field, endpoint guard, limit, clear
All checks were successful
scout-765 / scout (push) Successful in 1s
dfc480d62a
scaffold(#765): verify-then-apply splice (5 files)
All checks were successful
scout-765 / scout (push) Successful in 1s
27159859fd
scaffold(#765): one-shot red-splice-green workflow
All checks were successful
scout-765 / scout (push) Successful in 1s
dacd404a26
scaffold(#765): pin scan skips this slice's own RED test (it pins the NEW shape)
All checks were successful
scout-765 / scout (push) Successful in 1s
8b21d70aea
Space gains an owner-written 240-rune description: stored age-encrypted, guarded endpoint (owner or admin, member-refused), shown as the row subtitle, in the details pane (with Storage used from the background size sweep), editable from the state-gated space kebab and the admin drawer. Closes #765
docs: changelog for v0.6.285 (#765)
All checks were successful
ci / test-and-build (pull_request) Successful in 1m23s
195e67352b
Cordy merged commit abee3d6e5c into main 2026-09-26 04:37:14 +00:00
Cordy deleted branch feat-765 2026-09-26 04:37:18 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Cordy/Cairn#766
No description provided.