feat(#768): Spaces epic batch 1 — identity registry, spacemeta, subtitle/description split, space header #772

Merged
Cordy merged 25 commits from feat-768 into main 2026-09-26 16:58:29 +00:00
Owner

Closes #768. Opens the Spaces epic (ADR 0003 in this PR; rev3 mockup approved).

Three slices, each its own red-green one-shot:

  • A0 — internal/spaceids: age-encrypted registry of immutable time-ordered IDs for every space (both kinds), case-insensitive name/alias resolution, lazy sighting from the /spaces listing, stamping at create. backendDir == name until batch 4 wires the resolver.
  • A1 — internal/spacemeta: ID-keyed cosmetics (subtitle 80 / description 4000, newlines preserved). Kind-aware guards: app-owned → owner or admin; directory → admin only (IdP spaces become describable). Union + listing decorate from meta; idempotent boot migration drains #765 descriptions (≤80 runes → subtitle, longer → description); space-set-subtitle registered in the audit verbs; the superseded #765 endpoint test retired.
  • G-UI — rows/tiles show the short subtitle (deactivated label still outranks); details pane gains Subtitle above the wrapping Description; the kebab offers Edit subtitle + Edit description with 80/4000 dialogs; the admin drawer edits both for both kinds; the space header (subtitle bold + description paragraphs, pre-line, textContent) renders at the space root via the new any-signed-in-user /meta endpoint and collapses entirely when empty; hidden in non-file views like the members button.

Invariants live as permanent tests (registry stability, guard matrix, migration run-twice, limits, decoration). Both suites green on every slice. i18n ×4 throughout.

Closes #768. Opens the Spaces epic (ADR 0003 in this PR; rev3 mockup approved). Three slices, each its own red-green one-shot: - **A0** — `internal/spaceids`: age-encrypted registry of immutable time-ordered IDs for every space (both kinds), case-insensitive name/alias resolution, lazy sighting from the /spaces listing, stamping at create. `backendDir == name` until batch 4 wires the resolver. - **A1** — `internal/spacemeta`: ID-keyed cosmetics (subtitle 80 / description 4000, newlines preserved). Kind-aware guards: app-owned → owner or admin; directory → **admin only** (IdP spaces become describable). Union + listing decorate from meta; idempotent boot migration drains #765 descriptions (≤80 runes → subtitle, longer → description); `space-set-subtitle` registered in the audit verbs; the superseded #765 endpoint test retired. - **G-UI** — rows/tiles show the short subtitle (deactivated label still outranks); details pane gains Subtitle above the wrapping Description; the kebab offers Edit subtitle + Edit description with 80/4000 dialogs; the admin drawer edits both for both kinds; the **space header** (subtitle bold + description paragraphs, `pre-line`, textContent) renders at the space root via the new any-signed-in-user `/meta` endpoint and collapses entirely when empty; hidden in non-file views like the members button. Invariants live as permanent tests (registry stability, guard matrix, migration run-twice, limits, decoration). Both suites green on every slice. i18n ×4 throughout.
test(#768 A0): RED — create registers identity; listing sights directory spaces
All checks were successful
scout-768 / scout (push) Successful in 1s
d9cbf8a93e
scaffold(#768 A0): one-shot red-splice-green workflow
All checks were successful
scout-768 / scout (push) Successful in 1s
89d90e631c
internal/spaceids: age-encrypted registry of immutable time-ordered IDs for every space, app-owned and directory-managed, with case-insensitive name/alias resolution. Wired: main opens it beside the membership store, create() stamps, the /spaces listing sights bare directories. backendDir stays equal to name until batch 4 wires the resolver.
test(#768 A): RED — spacemeta store: set/get/clear/persist, ID-keyed
All checks were successful
scout-768 / scout (push) Successful in 1s
30a9158cbb
scaffold(#768 A1): one-shot — retires the superseded #765 test in the same commit
All checks were successful
scout-768 / scout (push) Successful in 1s
bdaae94b63
ID-keyed cosmetics store (subtitle 80 / description 4000, newlines preserved); app-owned spaces edited by owner or admin, directory spaces admin-only - IdP-managed spaces become describable. Union and listing decorate from meta; the boot migration drains #765 descriptions (short to subtitle, long to description) idempotently; space-set-subtitle registered in the audit verbs.
test(#768 G): RED — the space-header meta endpoint serves any signed-in user
All checks were successful
scout-768 / scout (push) Successful in 1s
e6ec37160f
test(#768 G): RED — subtitle in rows/details/drawer, two dialogs, space header wiring
All checks were successful
scout-768 / scout (push) Successful in 1s
52b5c6fd8f
scaffold(#768 G-UI): one-shot — final slice of batch 1, cleans the scout too
All checks were successful
scout-768 / scout (push) Successful in 1s
4c3740e4d2
scaffold(#768 G-UI): run the companion splice too
All checks were successful
scout-768 / scout (push) Successful in 1s
6eaa856706
Rows and tiles show the short subtitle (deactivated label still wins); the details pane gains a Subtitle row above the wrapping Description; the space kebab offers Edit subtitle and Edit description with honest 80/4000 dialogs; the admin drawer edits both for both space kinds; the space header renders subtitle bold + description paragraphs at the space root via the new /meta endpoint and collapses entirely when empty. Closes #768
docs: changelog for v0.6.286 (#768)
All checks were successful
ci / test-and-build (pull_request) Successful in 1m25s
b3077126ae
Cordy merged commit f9beb7519b into main 2026-09-26 16:58:29 +00:00
Cordy deleted branch feat-768 2026-09-26 16:58:33 +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#772
No description provided.