Spaces epic batch 3: space images + overview batch bar (#770) #775
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat-770"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #770.
D — space images. New
internal/api/spaceimg.go: PUT/DELETE/GET/api/v1/spaces/{name}/imageriding the #768metaTargetguard (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.Imageholds a revision token surfaced in/metaand on/spaceslisting rows (spaceImage) for cache busting. Audit verbsspace-set-image/space-remove-imageregistered. 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.