founding: the S3 logo upload never shows and its bytes never travel — post-upload state + carriage into community config #254

Closed
opened 2026-08-01 19:22:55 +00:00 by ben · 3 comments
Owner

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-kit lands logo_source in the draft and it survives resume (the #236 conversion is working).

The two real gaps

  1. S3 renders zero post-upload state. FoundingBrandKit.vue records logoSource = 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).

  2. The picked file's bytes are never read. logoChosen() uses only file.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 reference brand/<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

  • Given a logo file picked on S3, When the choice lands, Then the screen visibly reflects it per the amended wireframe, and clearing/replacing it is possible
  • Given a founded community with an uploaded logo, When the gateway deploys, Then the logo bytes are genuinely in community config and the portal/sign-in render them (strong-fidelity surfaces only, ADR 0038 — sign-in stays name + mono logo)
  • Given no logo uploaded, When previews and deploy run, Then the letter-mark fallback behaves exactly as today

Context

  • Live sweep evidence + diagnosis: #183 comment 3814
  • The #236 stdio bridge fix is confirmed working; do not re-litigate the transport
  • Wireframe contract home: docs/ux/wireframes/p1-founding/p1-s3-brand-kit.html
## 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-kit` lands `logo_source` in the draft and it survives `resume` (the #236 conversion is working). ## The two real gaps 1. **S3 renders zero post-upload state.** `FoundingBrandKit.vue` records `logoSource = 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). 2. **The picked file's bytes are never read.** `logoChosen()` uses only `file.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 reference `brand/<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 - [ ] Given a logo file picked on S3, When the choice lands, Then the screen visibly reflects it per the amended wireframe, and clearing/replacing it is possible - [ ] Given a founded community with an uploaded logo, When the gateway deploys, Then the logo bytes are genuinely in community config and the portal/sign-in render them (strong-fidelity surfaces only, ADR 0038 — sign-in stays name + mono logo) - [ ] Given no logo uploaded, When previews and deploy run, Then the letter-mark fallback behaves exactly as today ## Context - Live sweep evidence + diagnosis: #183 comment 3814 - The #236 stdio bridge fix is confirmed working; do not re-litigate the transport - Wireframe contract home: docs/ux/wireframes/p1-founding/p1-s3-brand-kit.html
Author
Owner

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.

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.
ben closed this issue 2026-08-02 02:59:36 +00:00
Author
Owner

Design ruled — the needs-design gate closes (Ben, 2026-08-02, in session; landed a8ba5de on main).

The contract: docs/ux/wireframes/p1-founding/p1-s3-brand-kit.html ✎ now carries a second frame, S3 — logo chosen:

  • The letter-mark chip becomes the uploaded mark itself, filename beside it; the "no logo? we make a letter-mark from the name" hint retires.
  • Replace… re-opens the picker; Remove returns exactly to the no-logo frame.
  • Both live previews consume the mark: portal in full colour, sign-in as a one-colour mark — the brand-kit boundary holds (DDR 0007 with ADR 0038's IdP exception: sign-in stays name + mono logo, never the full palette).
  • The frames carry 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 — through save-brand-kit and it survives resume; 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.

**Design ruled — the needs-design gate closes** (Ben, 2026-08-02, in session; landed `a8ba5de` on main). **The contract:** `docs/ux/wireframes/p1-founding/p1-s3-brand-kit.html` ✎ now carries a second frame, **S3 — logo chosen**: - The letter-mark chip becomes the uploaded mark itself, filename beside it; the "no logo? we make a letter-mark from the name" hint retires. - **Replace…** re-opens the picker; **Remove** returns exactly to the no-logo frame. - Both live previews consume the mark: **portal in full colour**, **sign-in as a one-colour mark** — the brand-kit boundary holds (DDR 0007 with ADR 0038's IdP exception: sign-in stays name + mono logo, never the full palette). - The frames carry `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 — through `save-brand-kit` and it survives `resume`; 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.
ben 2026-08-02 03:00:02 +00:00
ben self-assigned this 2026-08-02 04:25:28 +00:00
Author
Owner

Shipped in 2f10f01 (on origin/main).

The two gaps are closed, to DDR 0124 and the amended wireframe:

  1. Post-upload state. FoundingBrandKit.vue now 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 the no-logo frame). 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.

  2. 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.LogoData logo_data (Go); it round-trips the #236 wire mapping, persists through save-brand-kit, and survives resume. A brand/<name> reference now always has a real object behind it.

  • AC1 — picking a logo visibly reflects it per the amended wireframe; clearing/replacing works. ✓
  • AC2 — the logo bytes are genuinely carried in the draft the deploy's applyBrand reads (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.Compile is 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.
  • AC3 — no logo → the letter-mark fallback behaves exactly as today, in previews and the compiled kit. ✓

Evidence: app/tests/unit/foundingWizard.test.ts (+5: logo-chosen, Remove, resume, fail-loud, fallback), app/tests/unit/founding.test.ts (logo_data on the wire), internal/founding/logo_test.go (content survives resume; no-logo mark unchanged). App + Go suites green; vue-tsc, eslint, gofmt, go vet/build clean.

Shipped in `2f10f01` (on `origin/main`). **The two gaps are closed, to DDR 0124 and the amended wireframe:** 1. **Post-upload state.** `FoundingBrandKit.vue` now 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 the `no-logo` frame). 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. 2. **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.LogoData` `logo_data` (Go); it round-trips the #236 wire mapping, persists through `save-brand-kit`, and **survives `resume`**. A `brand/<name>` reference now always has a real object behind it. - **AC1** — picking a logo visibly reflects it per the amended wireframe; clearing/replacing works. ✓ - **AC2** — the logo bytes are genuinely carried in the draft the deploy's `applyBrand` reads (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.Compile` is 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. - **AC3** — no logo → the letter-mark fallback behaves exactly as today, in previews and the compiled kit. ✓ **Evidence:** `app/tests/unit/foundingWizard.test.ts` (+5: logo-chosen, Remove, resume, fail-loud, fallback), `app/tests/unit/founding.test.ts` (`logo_data` on the wire), `internal/founding/logo_test.go` (content survives resume; no-logo mark unchanged). App + Go suites green; `vue-tsc`, `eslint`, `gofmt`, `go vet/build` clean.
ben closed this issue 2026-08-02 04:35:13 +00:00
Sign in to join this conversation.
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
Matou/idss#254
No description provided.