Spaces epic dark on IdP-brokered instances: Mgr-mode SpacesAPI never got Ids/Meta/ImgDir #777

Closed
opened 2026-09-27 12:21:12 +00:00 by Cordy · 0 comments
Owner

Found driving the rev3 UI checklist on the enc dogfood (Keycloak-brokered). The idpManage && spacesMgr != nil SpacesAPI literal in main.go was never wired with Ids, Meta and ImgDir across batches 1–4, so on IdP-brokered instances the whole epic 501s: POST /spaces/{name}/subtitle → "space metadata is not configured", /alias-retire → "identity registry is not configured". No registry, no cosmetics, no images, no rename/relink.

Compounding: fillSpaceStates early-returns when Spaces.Members == nil, so /spaces listing rows lose ALL decoration there — including sizes the sweep has already measured (admin inventory shows 5.4 KB / 4.2 MB while the overview shows dashes).

Also frontend: the space kebab's Edit subtitle/description/image entries are gated on /state (app-owned lifecycle), so directory spaces never offer them even to admins whom metaTarget would allow — the inventory drawer is the only path.

Fix: wire Ids/Meta/ImgDir into the Mgr literal; relax the fillSpaceStates guard to decorate from Ids/Meta without Members (Deactivated stays Members-gated); show the three meta entries in the kebab for admins when /state is unavailable.

Found driving the rev3 UI checklist on the enc dogfood (Keycloak-brokered). The `idpManage && spacesMgr != nil` SpacesAPI literal in main.go was never wired with `Ids`, `Meta` and `ImgDir` across batches 1–4, so on IdP-brokered instances the whole epic 501s: `POST /spaces/{name}/subtitle` → "space metadata is not configured", `/alias-retire` → "identity registry is not configured". No registry, no cosmetics, no images, no rename/relink. Compounding: `fillSpaceStates` early-returns when `Spaces.Members == nil`, so `/spaces` listing rows lose ALL decoration there — including sizes the sweep has already measured (admin inventory shows 5.4 KB / 4.2 MB while the overview shows dashes). Also frontend: the space kebab's Edit subtitle/description/image entries are gated on `/state` (app-owned lifecycle), so directory spaces never offer them even to admins whom `metaTarget` would allow — the inventory drawer is the only path. Fix: wire Ids/Meta/ImgDir into the Mgr literal; relax the fillSpaceStates guard to decorate from Ids/Meta without Members (Deactivated stays Members-gated); show the three meta entries in the kebab for admins when `/state` is unavailable.
Cordy referenced this issue from a commit 2026-09-27 12:24:21 +00:00
Cordy closed this issue 2026-09-27 12:30:38 +00:00
Sign in to join this conversation.
No labels
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#777
No description provided.