community app: an app designed from the control panel ships with NO logo — the kit's LogoCircle bytes are never persisted #1692

Closed
opened 2026-09-21 16:30:14 +00:00 by ben · 2 comments
Owner

What is wrong

A community app designed from the control panel after founding ships with no community logo, and nothing says so.

  • control-plane/cmd/control-plane/communityapp_design.go:162 sends the logo to Coa only when k.LogoCircle.Bytes is non-empty, where k is the kit read back from idss/brand-kit.json (clan.ReadCommunityKit).
  • Nothing ever populates Kit.LogoCircle.Bytes. controlapi.KitFromDraft (internal/controlapi/settings.go:~332) and founding's Draft.brandKit() (internal/founding/draft.go:~438) both set LogoCircle.Source / .Background and drop the bytes. ApplyBrandKit (control-plane/cmd/control-plane/compose.go:289) decodes LogoData but never LogoCircleData. The comments at settings.go:86-89 and settings.go:341 say the circle is landed by the apply. It is not.
  • So the persisted kit never carries the circle, and the panel design path always takes the no-logo branch.

Founding is NOT affected: internal/founding/communityapptail.go:349 decodes the circle straight from the draft's LogoCircleData, so an app submitted at founding does carry the logo. The hole is only the post-founding design path.

Acceptance

  • Given a kit applied from Settings with a designed logo circle, when the operator designs the community app from the control panel, then the Coa submission carries the circle's bytes (a Go test over the design path proves the logo reaches the submission).
  • Given a founded community whose founder designed a circle, the same holds after founding: the circle is persisted where the panel design path reads it (founding lands it, not just the tail's draft read).
  • The misleading comments at settings.go:86-89 / :341 are corrected to what the code does.
  • A kit with no circle still compiles and submits exactly as today (additive).

Context

Found 2026-09-21 while tracing the logo path for the Portal pattern field (the Portal redesign arc). #1328 built the circle and deferred its consumers to "their own tickets"; this one was never filed. Separate from the Settings reload dropping Secondary / the circle (#1506's acceptance), which is being fixed inside the Portal arc because the pattern field changes the same read.

## What is wrong A community app designed from the **control panel** after founding ships with **no community logo**, and nothing says so. - `control-plane/cmd/control-plane/communityapp_design.go:162` sends the logo to Coa only when `k.LogoCircle.Bytes` is non-empty, where `k` is the kit read back from `idss/brand-kit.json` (`clan.ReadCommunityKit`). - **Nothing ever populates `Kit.LogoCircle.Bytes`.** `controlapi.KitFromDraft` (`internal/controlapi/settings.go:~332`) and founding's `Draft.brandKit()` (`internal/founding/draft.go:~438`) both set `LogoCircle.Source` / `.Background` and drop the bytes. `ApplyBrandKit` (`control-plane/cmd/control-plane/compose.go:289`) decodes `LogoData` but never `LogoCircleData`. The comments at `settings.go:86-89` and `settings.go:341` say the circle is landed by the apply. It is not. - So the persisted kit never carries the circle, and the panel design path always takes the no-logo branch. **Founding is NOT affected:** `internal/founding/communityapptail.go:349` decodes the circle straight from the draft's `LogoCircleData`, so an app submitted at founding does carry the logo. The hole is only the post-founding design path. ## Acceptance - Given a kit applied from Settings with a designed logo circle, when the operator designs the community app from the control panel, then the Coa submission carries the circle's bytes (a Go test over the design path proves the logo reaches the submission). - Given a founded community whose founder designed a circle, the same holds after founding: the circle is persisted where the panel design path reads it (founding lands it, not just the tail's draft read). - The misleading comments at `settings.go:86-89` / `:341` are corrected to what the code does. - A kit with no circle still compiles and submits exactly as today (additive). ## Context Found 2026-09-21 while tracing the logo path for the Portal pattern field (the Portal redesign arc). #1328 built the circle and deferred its consumers to "their own tickets"; this one was never filed. Separate from the Settings reload dropping Secondary / the circle (#1506's acceptance), which is being fixed inside the Portal arc because the pattern field changes the same read.

swarm-claim host=elitebook-distributed-server-03 run=29402
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=29402 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #1692 — status success

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

envelope
{
  "issue": 1692,
  "status": "success",
  "commits": [
    "b8f0cb81774e8fbdaf7911ba2892f487fd3d5ca1"
  ],
  "changed_files": [
    "STATUS.md",
    "control-plane/cmd/control-plane/communityapp_design_test.go",
    "control-plane/cmd/control-plane/compose.go",
    "internal/clan/community_test.go",
    "internal/controlapi/settings.go",
    "internal/founding/draft.go",
    "internal/founding/logo_test.go"
  ],
  "tests": [
    {
      "command": "go test ./control-plane/cmd/control-plane/",
      "exit_code": 0
    },
    {
      "command": "go test ./internal/founding/",
      "exit_code": 0
    },
    {
      "command": "go test ./internal/clan/",
      "exit_code": 0
    },
    {
      "command": "go test ./internal/controlapi/",
      "exit_code": 0
    },
    {
      "command": "go build ./... && go vet ./... && go build -tags dev ./...",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Given a kit applied from Settings with a designed logo circle, when the operator designs the community app from the control panel, then the Coa submission carries the circle's bytes (a Go test over the design path proves the logo reaches the submission)": "ApplyBrandKit (control-plane/cmd/control-plane/compose.go) now decodes draft.LogoCircleData onto kit.LogoCircle.Bytes before the commit, so idss/brand-kit.json persists the circle. Proven by TestDesigner_PersistedLogoCircleReachesSubmission (communityapp_design_test.go): apply from Settings -> clan.ReadCommunityKit -> communityAppDesigner.Design -> the fake Coa submission carries the exact 'circle-bytes' with ImageType png.",
    "Given a founded community whose founder designed a circle, the same holds after founding: the circle is persisted where the panel design path reads it (founding lands it, not just the tail's draft read)": "founding Draft.brandKit(false) (internal/founding/draft.go) now decodes LogoCircleData onto the persisted projection's LogoCircle.Bytes (best-effort). Proven by TestBrandKit_CircleBytesLandOnPersistedProjection (persisted projection carries the bytes, preview does not) and TestReadCommunityKit_FullHeader (the community-header round-trip clan.WriteCommunityKit/ReadCommunityKit preserves LogoCircle.Bytes -- the exact reader the panel design path uses).",
    "The misleading comments at settings.go:86-89 / :341 are corrected to what the code does": "internal/controlapi/settings.go: the BrandKitDraft.LogoCircle* doc and the KitFromDraft comment now state the circle rides ON the kit doc (LogoCircle.Bytes), decoded by the apply -- not 'landed by the apply beside the source'.",
    "A kit with no circle still compiles and submits exactly as today (additive)": "The decode is gated on a non-empty LogoCircleData in both paths; an empty circle leaves LogoCircle.Bytes nil. Proven by TestDesigner_NoCircleSubmitsNoLogo (no-circle kit persists byte-less and submits with no logo bytes)."
  },
  "summary": "Persist the designed logo-circle bytes on the kit doc in both the post-founding Settings apply and the founding projection, so a panel-designed community app ships with its logo; correct the misleading settings.go comments.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1692 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1692, "status": "success", "commits": [ "b8f0cb81774e8fbdaf7911ba2892f487fd3d5ca1" ], "changed_files": [ "STATUS.md", "control-plane/cmd/control-plane/communityapp_design_test.go", "control-plane/cmd/control-plane/compose.go", "internal/clan/community_test.go", "internal/controlapi/settings.go", "internal/founding/draft.go", "internal/founding/logo_test.go" ], "tests": [ { "command": "go test ./control-plane/cmd/control-plane/", "exit_code": 0 }, { "command": "go test ./internal/founding/", "exit_code": 0 }, { "command": "go test ./internal/clan/", "exit_code": 0 }, { "command": "go test ./internal/controlapi/", "exit_code": 0 }, { "command": "go build ./... && go vet ./... && go build -tags dev ./...", "exit_code": 0 } ], "criteria": { "Given a kit applied from Settings with a designed logo circle, when the operator designs the community app from the control panel, then the Coa submission carries the circle's bytes (a Go test over the design path proves the logo reaches the submission)": "ApplyBrandKit (control-plane/cmd/control-plane/compose.go) now decodes draft.LogoCircleData onto kit.LogoCircle.Bytes before the commit, so idss/brand-kit.json persists the circle. Proven by TestDesigner_PersistedLogoCircleReachesSubmission (communityapp_design_test.go): apply from Settings -> clan.ReadCommunityKit -> communityAppDesigner.Design -> the fake Coa submission carries the exact 'circle-bytes' with ImageType png.", "Given a founded community whose founder designed a circle, the same holds after founding: the circle is persisted where the panel design path reads it (founding lands it, not just the tail's draft read)": "founding Draft.brandKit(false) (internal/founding/draft.go) now decodes LogoCircleData onto the persisted projection's LogoCircle.Bytes (best-effort). Proven by TestBrandKit_CircleBytesLandOnPersistedProjection (persisted projection carries the bytes, preview does not) and TestReadCommunityKit_FullHeader (the community-header round-trip clan.WriteCommunityKit/ReadCommunityKit preserves LogoCircle.Bytes -- the exact reader the panel design path uses).", "The misleading comments at settings.go:86-89 / :341 are corrected to what the code does": "internal/controlapi/settings.go: the BrandKitDraft.LogoCircle* doc and the KitFromDraft comment now state the circle rides ON the kit doc (LogoCircle.Bytes), decoded by the apply -- not 'landed by the apply beside the source'.", "A kit with no circle still compiles and submits exactly as today (additive)": "The decode is gated on a non-empty LogoCircleData in both paths; an empty circle leaves LogoCircle.Bytes nil. Proven by TestDesigner_NoCircleSubmitsNoLogo (no-circle kit persists byte-less and submits with no logo bytes)." }, "summary": "Persist the designed logo-circle bytes on the kit doc in both the post-founding Settings apply and the founding projection, so a panel-designed community app ships with its logo; correct the misleading settings.go comments.", "reason": "", "blockers": [], "no_code_change": "" } ``` </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#1692
No description provided.