fix(spaces): parse members JSON in the dialog (#210) #229

Merged
Cordy merged 3 commits from hotfix-members-json into main 2026-08-13 17:33:17 +00:00
Owner

Live-dogfood hotfix. Opening a space's Members dialog threw data.members is not iterable and rendered nothing.

Cause: refreshMembers did const data = await api(...) — but api() returns the raw Response, so data.members was undefined. (GET /members returns 200 with {owner, members:[]} correctly; it was only the client that never parsed it.) This is a pre-existing bug in the members dialog, surfaced now that app-owned spaces make the dialog reachable everywhere (#210/#211).

One-line fix: await (await api(...)).json(). This also feeds my #217 owner/member-set validation (which read data.owner/data.members). node --check clean.

Verified live: create-space works, feature-detect shows the Members button, error-surfacing showed the real JS error. Re-testing the full members flow after this deploys.

Live-dogfood hotfix. Opening a space's **Members** dialog threw `data.members is not iterable` and rendered nothing. Cause: `refreshMembers` did `const data = await api(...)` — but `api()` returns the raw `Response`, so `data.members` was `undefined`. (`GET /members` returns `200` with `{owner, members:[]}` correctly; it was only the client that never parsed it.) This is a pre-existing bug in the members dialog, surfaced now that app-owned spaces make the dialog reachable everywhere (#210/#211). One-line fix: `await (await api(...)).json()`. This also feeds my #217 owner/member-set validation (which read `data.owner`/`data.members`). `node --check` clean. Verified live: create-space works, feature-detect shows the Members button, error-surfacing showed the real JS error. Re-testing the full members flow after this deploys.
scaffold: run hotfix
All checks were successful
ship-hotfix / edit (push) Successful in 6s
5519b7deb1
fix(spaces): parse members JSON in the dialog (#210)
All checks were successful
ci / test-and-build (pull_request) Successful in 35s
97107a3cd6
Cordy merged commit 4dd1b444fe into main 2026-08-13 17:33:17 +00:00
Cordy deleted branch hotfix-members-json 2026-08-13 17:33:19 +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#229
No description provided.