coaclient: send the founder's logo background (LogoCircle.Background) to Coa as brand.logoBackground #1882

Closed
opened 2026-09-25 15:01:58 +00:00 by ben · 2 comments
Owner

Why

At founding the operator chooses the colour behind the circular logo (DDR 0227). It is persisted as brandkit.Kit.LogoCircle.Background; whakatohea-demo has #ffffff. internal/coaclient submits the round logo plus primaryColour/secondaryColour but not that colour. The community app therefore puts the round logo on the dark primary #404040, not the chosen white (Ben, 2026-09-25).

Want

  • coaclient submission adds brand.logoBackground from LogoCircle.Background when it is set, and omits it when empty.
  • Wire it from compose.go (LogoCircleBackground: kit.LogoCircle.Background already exists) through founding → coaclient.
  • Test: a kit with LogoCircle.Background = "#ffffff" submits "logoBackground":"#ffffff"; an empty value submits no field.
  • Depends on Coa #156 accepting the field (Coa rejects unknown fields? check SubmissionSchema strictness before landing).

Pairs with matou-app #651 (the icon uses it). The standing whakatohea-demo community then needs one resubmission (panel Try again, or Coa release + resubmit) and a rebuild.

🤖 Generated with Claude Code

## Why At founding the operator chooses the colour behind the circular logo (DDR 0227). It is persisted as `brandkit.Kit.LogoCircle.Background`; whakatohea-demo has `#ffffff`. `internal/coaclient` submits the round logo plus `primaryColour`/`secondaryColour` but **not** that colour. The community app therefore puts the round logo on the dark primary `#404040`, not the chosen white (Ben, 2026-09-25). ## Want - `coaclient` submission adds `brand.logoBackground` from `LogoCircle.Background` when it is set, and omits it when empty. - Wire it from `compose.go` (`LogoCircleBackground: kit.LogoCircle.Background` already exists) through `founding` → `coaclient`. - Test: a kit with `LogoCircle.Background = "#ffffff"` submits `"logoBackground":"#ffffff"`; an empty value submits no field. - Depends on Coa #156 accepting the field (Coa rejects unknown fields? check `SubmissionSchema` strictness before landing). Pairs with matou-app #651 (the icon uses it). The standing whakatohea-demo community then needs one resubmission (panel Try again, or Coa release + resubmit) and a rebuild. 🤖 Generated with [Claude Code](https://claude.com/claude-code)

swarm-claim host=bens-mac-04 run=32766
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=bens-mac-04 run=32766 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #1882 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1882,
  "status": "success",
  "commits": [
    "cff1ba04"
  ],
  "changed_files": [
    "STATUS.md",
    "internal/coaclient/client.go",
    "internal/coaclient/client_test.go",
    "internal/founding/communityapp_test.go",
    "internal/founding/communityapptail.go"
  ],
  "tests": [
    {
      "command": "go test ./internal/coaclient/... ./internal/founding/... ./cmd/rehearsal-coa/...",
      "exit_code": 0
    },
    {
      "command": "gofmt -l (coaclient+founding changed files)",
      "exit_code": 0
    },
    {
      "command": "go vet ./internal/coaclient/ ./internal/founding/ ./cmd/rehearsal-coa/",
      "exit_code": 0
    },
    {
      "command": "golangci-lint run ./internal/coaclient/... ./internal/founding/...",
      "exit_code": 0
    }
  ],
  "criteria": {
    "coaclient submission adds brand.logoBackground from LogoCircle.Background when set, omits when empty": "internal/coaclient/client.go: coaBrand.LogoBackground `json:\"logoBackground,omitempty\"` set from sub.LogoBackground in submissionBody; tests TestSubmit_BrandCarriesLogoBackgroundWhenSet / TestSubmit_BrandOmitsLogoBackgroundWhenEmpty",
    "wired from compose.go through founding to coaclient": "compose.go:274 already sets draft.Brand.LogoCircleBackground; coaSubmissionFor (communityapptail.go) sets CoaSubmission.LogoBackground = d.Brand.LogoCircleBackground; submissionBody maps it to coaBrand.LogoBackground",
    "test: #ffffff kit submits logoBackground:#ffffff; empty submits no field": "TestSubmit_BrandCarriesLogoBackgroundWhenSet asserts brand[\"logoBackground\"]==\"#ffffff\"; TestSubmit_BrandOmitsLogoBackgroundWhenEmpty asserts field absent; TestCoaSubmission_CarriesLogoBackground covers the founding seam",
    "check Coa SubmissionSchema strictness before landing (Coa rejects unknown fields?)": "Fetched Matou/coa main packages/schema/src/brand.ts: BrandSchema is a plain z.object (default strips unknown keys, NOT .strict()), so sending logoBackground before Coa #156 lands is silently stripped, never a refusal. Coa #156 (open) uses brand.logoBackground optional #rrggbb — field name matches."
  },
  "summary": "coaclient now submits the founder's round-logo background as Coa's optional brand.logoBackground, wired from the founding draft and sent only when set.",
  "blockers": []
}
**close-report** for #1882 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1882, "status": "success", "commits": [ "cff1ba04" ], "changed_files": [ "STATUS.md", "internal/coaclient/client.go", "internal/coaclient/client_test.go", "internal/founding/communityapp_test.go", "internal/founding/communityapptail.go" ], "tests": [ { "command": "go test ./internal/coaclient/... ./internal/founding/... ./cmd/rehearsal-coa/...", "exit_code": 0 }, { "command": "gofmt -l (coaclient+founding changed files)", "exit_code": 0 }, { "command": "go vet ./internal/coaclient/ ./internal/founding/ ./cmd/rehearsal-coa/", "exit_code": 0 }, { "command": "golangci-lint run ./internal/coaclient/... ./internal/founding/...", "exit_code": 0 } ], "criteria": { "coaclient submission adds brand.logoBackground from LogoCircle.Background when set, omits when empty": "internal/coaclient/client.go: coaBrand.LogoBackground `json:\"logoBackground,omitempty\"` set from sub.LogoBackground in submissionBody; tests TestSubmit_BrandCarriesLogoBackgroundWhenSet / TestSubmit_BrandOmitsLogoBackgroundWhenEmpty", "wired from compose.go through founding to coaclient": "compose.go:274 already sets draft.Brand.LogoCircleBackground; coaSubmissionFor (communityapptail.go) sets CoaSubmission.LogoBackground = d.Brand.LogoCircleBackground; submissionBody maps it to coaBrand.LogoBackground", "test: #ffffff kit submits logoBackground:#ffffff; empty submits no field": "TestSubmit_BrandCarriesLogoBackgroundWhenSet asserts brand[\"logoBackground\"]==\"#ffffff\"; TestSubmit_BrandOmitsLogoBackgroundWhenEmpty asserts field absent; TestCoaSubmission_CarriesLogoBackground covers the founding seam", "check Coa SubmissionSchema strictness before landing (Coa rejects unknown fields?)": "Fetched Matou/coa main packages/schema/src/brand.ts: BrandSchema is a plain z.object (default strips unknown keys, NOT .strict()), so sending logoBackground before Coa #156 lands is silently stripped, never a refusal. Coa #156 (open) uses brand.logoBackground optional #rrggbb — field name matches." }, "summary": "coaclient now submits the founder's round-logo background as Coa's optional brand.logoBackground, wired from the founding draft and sent only when set.", "blockers": [] } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
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#1882
No description provided.