Spaces epic batch 3: space images + overview batch bar (#770) #775

Merged
Cordy merged 5 commits from feat-770 into main 2026-09-26 18:39:39 +00:00
Owner

Closes #770.

D — space images. New internal/api/spaceimg.go: PUT/DELETE/GET /api/v1/spaces/{name}/image riding the #768 metaTarget guard (owner-or-admin app-owned, admin-only directory; GET any signed-in user). Uploads are decoded, center-cropped wide (16:9, 640×360) and re-encoded JPEG q85 server-side — #757 avatar discipline, banner aspect. Files stored ID-keyed (spaceimg/<id>.jpg, ADR 0003 — rename-proof); spacemeta.Rec.Image holds a revision token surfaced in /meta and on /spaces listing rows (spaceImage) for cache busting. Audit verbs space-set-image/space-remove-image registered. UI: kebab "Edit image" dialog (wide preview, raw-body upload, removal behind askDanger), banner on tiles, overview thumb, space header and details hero.

E — overview batch bar. The overview gains a checkbox column and a batch bar: "n selected ✕" chip (clears), Deactivate (needs an active pick), Delete (enabled only when every selected space is already deactivated — mirrors the single-space kebab's lifecycle rule; askDanger lists every name). Actions refresh the overview in place.

Census bumps in the same push: qa693 askDanger 11→13, qa769 kebab-refresh ternary 2→3.

Verification: full cycle run locally on the exact pushed bytes before dispatch — RED (node + Go compile) → splice → gofmt/vet/build, go test ./..., 231-test node suite — then repeated authoritatively by the one-shot on the runner.

Closes #770. **D — space images.** New `internal/api/spaceimg.go`: PUT/DELETE/GET `/api/v1/spaces/{name}/image` riding the #768 `metaTarget` guard (owner-or-admin app-owned, admin-only directory; GET any signed-in user). Uploads are decoded, center-cropped wide (16:9, 640×360) and re-encoded JPEG q85 server-side — #757 avatar discipline, banner aspect. Files stored ID-keyed (`spaceimg/<id>.jpg`, ADR 0003 — rename-proof); `spacemeta.Rec.Image` holds a revision token surfaced in `/meta` and on `/spaces` listing rows (`spaceImage`) for cache busting. Audit verbs `space-set-image`/`space-remove-image` registered. UI: kebab "Edit image" dialog (wide preview, raw-body upload, removal behind askDanger), banner on tiles, overview thumb, space header and details hero. **E — overview batch bar.** The overview gains a checkbox column and a batch bar: "n selected ✕" chip (clears), Deactivate (needs an active pick), Delete (enabled only when every selected space is already deactivated — mirrors the single-space kebab's lifecycle rule; askDanger lists every name). Actions refresh the overview in place. Census bumps in the same push: qa693 askDanger 11→13, qa769 kebab-refresh ternary 2→3. Verification: full cycle run locally on the exact pushed bytes before dispatch — RED (node + Go compile) → splice → gofmt/vet/build, `go test ./...`, 231-test node suite — then repeated authoritatively by the one-shot on the runner.
Scaffold: fix-770-splice.py (verify-then-apply)
ci: #770 one-shot (red gates, splice, green gates, self-remove)
All checks were successful
fix-770 / fix (push) Successful in 1m7s
8ad3c66998
Closes #770
ci: #770 changelog one-shot
All checks were successful
chg-770 / chg (push) Successful in 8s
1f2df27bbf
docs: changelog for v0.6.288 (#770)
All checks were successful
ci / test-and-build (pull_request) Successful in 1m45s
363c3db2b0
Cordy merged commit ad7844ab9c into main 2026-09-26 18:39:39 +00:00
Cordy deleted branch feat-770 2026-09-26 18:39:41 +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#775
No description provided.