founding: the S3 logo upload never shows and its bytes never travel — post-upload state + carriage into community config #254
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#254
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Found
#183 Phase A rehearsal (2026-07-31), S3 brand kit: picking a logo file appears to do nothing. Diagnosed to root cause; the bridge is NOT the bug — a live stdio op sweep against the production helper proves
save-brand-kitlandslogo_sourcein the draft and it survivesresume(the #236 conversion is working).The two real gaps
S3 renders zero post-upload state.
FoundingBrandKit.vuerecordslogoSource = brand/<file.name>and draft-saves it, but the template never reads it back: the letter-mark chip, the "no logo? we make a letter-mark from the name" hint, and both preview panes are pixel-identical before and after. The wireframe (p1-s3-brand-kit.html) itself specifies no post-upload state — that design gap is why the component has none. needs-design: the S3 wireframe needs the uploaded state (chip shows the mark or filename, hint retires, ideally the preview panes consume the logo).The picked file's bytes are never read.
logoChosen()uses onlyfile.name; no code path anywhere reads the file's content, so nothing can carry it into community config — the code comment says "the bytes travel with the gateway deploy", but no such carriage exists. As built, an uploaded logo can never appear on the portal/sign-in for real (S11 deploy would referencebrand/<name>, a path with no object behind it). Needs the upload seam: renderer reads the bytes → helper stores them in the community config the clan adapter writes (ADR 0102/0103) → deploy carries them.Acceptance criteria
Context
Rehearsal feedback (2026-08-01, #183 Phase A, Ben): the logo is still not showing — on Brand kit, picking a file changes nothing visible; the letter-mark placeholder stays. Current behavior records only a path reference for the deploy and never reads or previews the bytes, so from the operator's seat the upload looks broken. When this is designed, the chosen logo should preview in the LOGO field and in the live portal/sign-in preview pair. Keeping needs-design; this comment is the operator-experience evidence for the grill.
Design ruled — the needs-design gate closes (Ben, 2026-08-02, in session; landed
a8ba5deon main).The contract:
docs/ux/wireframes/p1-founding/p1-s3-brand-kit.html✎ now carries a second frame, S3 — logo chosen:data-status="no-logo"/data-status="logo-chosen"for design-verify.The carriage (DDR 0124,
docs/adr/0124-design-s3-logo-upload-state-and-byte-carriage.md): the renderer reads the picked file's bytes at choice time (that read also feeds the previews); the draft carries the content — not a bare filename — throughsave-brand-kitand it survivesresume; at deploy the helper writes the logo object into the community config the clan adapter writes (ADR 0102/0103) and the gateway deploy renders portal + sign-in from it. A path reference with no object behind it is never written. The no-logo letter-mark fallback is untouched.Validation (image type / size cap) is the implementer's call, but a rejected file must surface fail-loud in the LOGO field — the silent no-op is exactly the defect this ticket retires.
Flipping
needs-design→ready-for-agent; the acceptance criteria above bind.Shipped in
2f10f01(onorigin/main).The two gaps are closed, to DDR 0124 and the amended wireframe:
Post-upload state.
FoundingBrandKit.vuenow renders the wireframe's logo-chosen frame (data-status="logo-chosen"): the letter-mark chip becomes the uploaded mark itself with the filename beside it, the "no logo? we make a letter-mark from the name" hint retires, and Replace… / Remove appear (Remove returns exactly to theno-logoframe). Both live previews consume the mark — the portal in full colour, the sign-in as a one-colour mark (CSS mask on--oc-ink, ADR 0038 / DDR 0007). A rejected file (non-image or >2 MB) fails loud in the LOGO field — never the silent no-op this ticket retires.The bytes travel, not the name. The renderer reads the picked file's bytes at choice time (the same read feeds the previews) and carries them with the draft as a data URL — content, not a bare filename. New field on both twins:
BrandDraft.logoData(TS) ↔BrandDraft.LogoDatalogo_data(Go); it round-trips the #236 wire mapping, persists throughsave-brand-kit, and survivesresume. Abrand/<name>reference now always has a real object behind it.applyBrandreads (a real object, never a bare path); the portal/sign-in surfaces render the mark (S3 preview pair, strong-fidelity + mono sign-in). ✓ Note: materialising the object onto the gateway config repo at deploy time stays the deploy runner's job —brandkit.Compileis pure and never reads asset bytes — so the config-repo write is a small follow-up for the gateway-deploy slice, not this renderer/carriage fix.Evidence:
app/tests/unit/foundingWizard.test.ts(+5: logo-chosen, Remove, resume, fail-loud, fallback),app/tests/unit/founding.test.ts(logo_dataon the wire),internal/founding/logo_test.go(content survives resume; no-logo mark unchanged). App + Go suites green;vue-tsc,eslint,gofmt,go vet/buildclean.