operator app: each health-board card wears its community's brand — logo and colours (DDR 0302) #2165

Closed
opened 2026-11-04 18:14:08 +00:00 by ben · 5 comments
Owner

What

Each card on the operator app's health board (HB) wears its community's brand kit: the uploaded logo in place of the two-letter initials, and the community's colours on the card. Ben's ruling (2026-11-04): "full brand with colours".

Design contract:

  • DDR 0302: docs/adr/0302-design-each-health-board-card-wears-its-communitys-brand.md (amends DDR 0299)
  • Wireframe: docs/ux/wireframes/shell/shell-hb-health-board.html (the branded band)
  • Flow: unchanged (node HB in docs/ux/flows/shell.mermaid)

Where

  • app/src/lib/healthBoard.ts: BoardCard gains the brand. loadBoard reads each session's founding.shellBrand(), independent of the probe.
  • app/src/components/shell/HealthBoard.vue: the band, the logo, and the scoped identity colours.
  • No helper or Go change: the brand-tokens op already answers per community (DDR 0151 d.1).

Acceptance criteria

  1. Brand read. Each card reads its community's brand over that community's own found bridge (shellBrand). The read never waits on the control-panel probe, the probe never waits on it, and one card's slow read never holds up another card (DDR 0302 d.1).

  2. Branded in every state. A card is branded in all four status states: Checking, Reachable, Not answering and Founding paused (d.1).

  3. The band. A band across the top of the card has the community's --oc-accent as its ground. On it sit the logo, the name and the path line in --oc-text-on-accent. The card's one action button wears the community's accent (d.2).

  4. The logo. The uploaded logo replaces the initials chip. It is fitted inside the chip's square without cropping, and its accessible name is the community's name. With no logo, the initials chip shows on the band in the community's colours (d.5).

  5. Scope.

    • Only the five identity colours (--oc-accent, --oc-accent-hover, --oc-text-on-accent, --oc-secondary, --oc-text-on-secondary) are applied, and only to the card element.
    • --oc-background and --oc-status-* from a kit are never applied to the card.
    • Nothing is applied to :root.
    • A test proves that two cards with different kits don't bleed into each other or into the window (d.4).
  6. Status never takes the brand.

    • The status pill, its sub-line, and the border's status meaning (red for Not answering, dashed for Founding paused) stay on the product status tokens.
    • The board's title bar, Refresh and + Found another community stay on the product default.
    • A test runs a kit whose --oc-status-healthy differs from the product's and shows that the pill does not change (d.3).
  7. Fallbacks (d.6). These cases show the DDR 0299 neutral card with initials, data-brand="default", and no error shown:

    • no kit (default kit);
    • a missing community folder;
    • a failed or timed-out brand read.

    A paused founding whose draft has a saved kit wears the draft's kit.

  8. Freshness. The brand is re-read on every board load and on Refresh (d.7).

  9. Element-ID contract.

    • New: data-field="community-brand-<id>" with data-brand="kit|default" on the band, and data-field="community-logo-<id>" on the logo, present only when there is one.
    • DDR 0299's existing data-field / data-status / data-action are unchanged, and the existing board tests stay green.
  10. Tests. Seam/unit tests cover criteria 1 and 4–7. Run them over fake founding clients answering a kit with a logo, a kit without a logo, the default kit, and a rejected read.

Not in scope

  • The opened community's own dressing of :root and the title bar (DDR 0151, unchanged).
  • Loading kit fonts per card. The board keeps one face (d.8).
## What Each card on the operator app's health board (HB) wears its community's brand kit: the uploaded logo in place of the two-letter initials, and the community's colours on the card. Ben's ruling (2026-11-04): "full brand with colours". **Design contract:** - DDR 0302: `docs/adr/0302-design-each-health-board-card-wears-its-communitys-brand.md` (amends DDR 0299) - Wireframe: `docs/ux/wireframes/shell/shell-hb-health-board.html` (the branded band) - Flow: unchanged (node HB in `docs/ux/flows/shell.mermaid`) ## Where - `app/src/lib/healthBoard.ts`: `BoardCard` gains the brand. `loadBoard` reads each session's `founding.shellBrand()`, independent of the probe. - `app/src/components/shell/HealthBoard.vue`: the band, the logo, and the scoped identity colours. - No helper or Go change: the `brand-tokens` op already answers per community (DDR 0151 d.1). ## Acceptance criteria 1. **Brand read.** Each card reads its community's brand over that community's own `found` bridge (`shellBrand`). The read never waits on the control-panel probe, the probe never waits on it, and one card's slow read never holds up another card (DDR 0302 d.1). 2. **Branded in every state.** A card is branded in all four status states: Checking, Reachable, Not answering and Founding paused (d.1). 3. **The band.** A band across the top of the card has the community's `--oc-accent` as its ground. On it sit the logo, the name and the path line in `--oc-text-on-accent`. The card's one action button wears the community's accent (d.2). 4. **The logo.** The uploaded logo replaces the initials chip. It is fitted inside the chip's square without cropping, and its accessible name is the community's name. With no logo, the initials chip shows on the band in the community's colours (d.5). 5. **Scope.** - Only the five identity colours (`--oc-accent`, `--oc-accent-hover`, `--oc-text-on-accent`, `--oc-secondary`, `--oc-text-on-secondary`) are applied, and only to the card element. - `--oc-background` and `--oc-status-*` from a kit are never applied to the card. - Nothing is applied to `:root`. - A test proves that two cards with different kits don't bleed into each other or into the window (d.4). 6. **Status never takes the brand.** - The status pill, its sub-line, and the border's status meaning (red for Not answering, dashed for Founding paused) stay on the product status tokens. - The board's title bar, Refresh and + Found another community stay on the product default. - A test runs a kit whose `--oc-status-healthy` differs from the product's and shows that the pill does not change (d.3). 7. **Fallbacks** (d.6). These cases show the DDR 0299 neutral card with initials, `data-brand="default"`, and no error shown: - no kit (default kit); - a missing community folder; - a failed or timed-out brand read. A paused founding whose draft has a saved kit wears the draft's kit. 8. **Freshness.** The brand is re-read on every board load and on Refresh (d.7). 9. **Element-ID contract.** - New: `data-field="community-brand-<id>"` with `data-brand="kit|default"` on the band, and `data-field="community-logo-<id>"` on the logo, present only when there is one. - DDR 0299's existing `data-field` / `data-status` / `data-action` are unchanged, and the existing board tests stay green. 10. **Tests.** Seam/unit tests cover criteria 1 and 4–7. Run them over fake founding clients answering a kit with a logo, a kit without a logo, the default kit, and a rejected read. ## Not in scope - The opened community's own dressing of `:root` and the title bar (DDR 0151, unchanged). - Loading kit fonts per card. The board keeps one face (d.8).

close-report for #2165 — status success

⛔ close-report gates REFUSED this close — the following claims did not verify:

  • criteria has 10 entries, but the issue body lists 12 acceptance clause(s) — every acceptance clause needs a criteria entry (presence, not truth, #206)
envelope
{
  "issue": 2165,
  "status": "success",
  "commits": [
    "c64c4056560f313d86c74227cb5aac7fbe3931a3"
  ],
  "changed_files": [
    "STATUS.md",
    "app/src/components/shell/HealthBoard.vue",
    "app/src/lib/healthBoard.ts",
    "app/tests/e2e/preview-harness/health-board.harness.ts",
    "app/tests/unit/healthBoard.test.ts",
    "app/tests/unit/healthBoardScreen.test.ts",
    "packages/ui-kit/src/brandTokens.ts",
    "packages/ui-kit/src/index.ts"
  ],
  "tests": [
    {
      "command": "node_modules/.bin/vitest run tests/unit/healthBoard.test.ts tests/unit/healthBoardScreen.test.ts tests/unit/foundAnother.test.ts tests/unit/sessionHub.test.ts tests/unit/communitySessions.test.ts (in app/)",
      "exit_code": 0
    },
    {
      "command": "node_modules/.bin/vue-tsc -p tsconfig.json (in app/)",
      "exit_code": 0
    },
    {
      "command": "vue-tsc --noEmit -p tsconfig.json (in packages/ui-kit/)",
      "exit_code": 0
    },
    {
      "command": "vitest run (in packages/ui-kit/, 247 tests)",
      "exit_code": 0
    },
    {
      "command": "eslint over changed app + ui-kit files",
      "exit_code": 0
    }
  ],
  "criteria": {
    "1. Brand read over each community's own shellBrand, never waits on the probe, probe never waits on it, one card's slow read never holds up another": "app/src/lib/healthBoard.ts loadBoard() starts readBrand() then kicks resolveStatus() off before awaiting the brand; tests healthBoard.test.ts 'the probe never waits on the brand read...', 'a checking card is branded as soon as its local brand read answers...', 'one card's slow brand read never holds up another card'",
    "2. Branded in all four status states (Checking, Reachable, Not answering, Founding paused)": "loadBoard attaches brand on both the checking emit and the terminal emit; tests 'attaches each card's brand to its emits, in every status state' + 'a not-answering card is branded too'",
    "3. The band: accent ground, logo/name/path in text-on-accent, action button in the community accent": "HealthBoard.vue __band[data-brand=kit]{background:var(--oc-accent);color:var(--oc-text-on-accent)} + OcButton variant=primary inherits the card's scoped --oc-accent; test 'a kit with a logo shows the logo...'",
    "4. The logo replaces the initials chip, fitted without cropping, accessible name = community name; no logo -> initials chip on the branded band": "HealthBoard.vue <img> v-if card.brand?.logoDataUrl (object-fit:contain, :alt=name) else initials span; tests 'a kit with a logo shows the logo (not initials), named for the community' + 'a kit without a logo shows the initials chip on the band'",
    "5. Scope: only the five identity colours applied, only to the card element; --oc-background and --oc-status-* never applied; nothing on :root; two kits don't bleed": "brandFromShell keeps only OC_IDENTITY_VARS; HealthBoard.vue :style=brandStyle(card) on the article; tests 'applies ONLY the five identity colours, scoped to the card — never the ground, status, or :root' + healthBoard.test.ts 'keeps ONLY the five identity colours'",
    "6. Status never takes the brand: pill/sub-line/border status meaning + board chrome stay on product tokens; a kit re-tinting --oc-status-healthy leaves the pill unchanged": "card element never carries --oc-status-* (scoped to identity only) so OcPill reads :root product tokens; border uses --oc-status-critical; test 'status never takes the brand: a kit re-tinting --oc-status-healthy leaves the pill on the product token'",
    "7. Fallbacks (no kit / missing folder / failed-or-timed-out read) -> DDR 0299 neutral card, data-brand=default, initials, no error; a paused draft with a saved kit wears it": "brandFromShell returns default on default-preset/unparseable; readBrand catches a rejected read -> default; missingCard carries no brand -> brandKind=default; tests 'the default kit keeps the DDR 0299 neutral card...' + 'a failed brand read falls back to the neutral card, no error shown' + healthBoard.test.ts rejected/unparseable cases",
    "8. Freshness: brand re-read on every board load and on Refresh": "HealthBoard.vue load() (onMounted + Refresh click) clears byId and re-runs loadBoard, which re-reads shellBrand per card each time; unchanged load/refresh path from DDR 0299 now carries the brand read",
    "9. Element-ID contract: new data-field=community-brand-<id> + data-brand, data-field=community-logo-<id> (only when a logo); DDR 0299's existing ids unchanged and existing board tests green": "HealthBoard.vue band + logo attributes; existing DDR 0299 data-field/data-status/data-action untouched; existing healthBoardScreen.test.ts (11) + healthBoard.test.ts DDR 0299 cases stay green",
    "10. Seam/unit tests cover criteria 1 and 4-7 over fake clients answering a kit with a logo, a kit without a logo, the default kit, and a rejected read": "healthBoard.test.ts (brandFromShell + loadBoard brand reads) + healthBoardScreen.test.ts (branded-board describe) over kitBrand(with logo), kitBrand(no logo), kitBrand() default, and a rejected/throwing shellBrand"
  },
  "summary": "Each health-board card now wears its community's brand kit — scoped logo + identity colours in an accent band, with the status signal and board chrome staying on the product tokens (DDR 0302).",
  "unproven_by_seam": "The seam's shellBrand is a fake; a real community's compiled kit over a live found bridge is not exercised in-sandbox.",
  "blockers": []
}
**close-report** for #2165 — status `success` :no_entry: **close-report gates REFUSED this close** — the following claims did not verify: - criteria has 10 entries, but the issue body lists 12 acceptance clause(s) — every acceptance clause needs a criteria entry (presence, not truth, #206) <details><summary>envelope</summary> ```json { "issue": 2165, "status": "success", "commits": [ "c64c4056560f313d86c74227cb5aac7fbe3931a3" ], "changed_files": [ "STATUS.md", "app/src/components/shell/HealthBoard.vue", "app/src/lib/healthBoard.ts", "app/tests/e2e/preview-harness/health-board.harness.ts", "app/tests/unit/healthBoard.test.ts", "app/tests/unit/healthBoardScreen.test.ts", "packages/ui-kit/src/brandTokens.ts", "packages/ui-kit/src/index.ts" ], "tests": [ { "command": "node_modules/.bin/vitest run tests/unit/healthBoard.test.ts tests/unit/healthBoardScreen.test.ts tests/unit/foundAnother.test.ts tests/unit/sessionHub.test.ts tests/unit/communitySessions.test.ts (in app/)", "exit_code": 0 }, { "command": "node_modules/.bin/vue-tsc -p tsconfig.json (in app/)", "exit_code": 0 }, { "command": "vue-tsc --noEmit -p tsconfig.json (in packages/ui-kit/)", "exit_code": 0 }, { "command": "vitest run (in packages/ui-kit/, 247 tests)", "exit_code": 0 }, { "command": "eslint over changed app + ui-kit files", "exit_code": 0 } ], "criteria": { "1. Brand read over each community's own shellBrand, never waits on the probe, probe never waits on it, one card's slow read never holds up another": "app/src/lib/healthBoard.ts loadBoard() starts readBrand() then kicks resolveStatus() off before awaiting the brand; tests healthBoard.test.ts 'the probe never waits on the brand read...', 'a checking card is branded as soon as its local brand read answers...', 'one card's slow brand read never holds up another card'", "2. Branded in all four status states (Checking, Reachable, Not answering, Founding paused)": "loadBoard attaches brand on both the checking emit and the terminal emit; tests 'attaches each card's brand to its emits, in every status state' + 'a not-answering card is branded too'", "3. The band: accent ground, logo/name/path in text-on-accent, action button in the community accent": "HealthBoard.vue __band[data-brand=kit]{background:var(--oc-accent);color:var(--oc-text-on-accent)} + OcButton variant=primary inherits the card's scoped --oc-accent; test 'a kit with a logo shows the logo...'", "4. The logo replaces the initials chip, fitted without cropping, accessible name = community name; no logo -> initials chip on the branded band": "HealthBoard.vue <img> v-if card.brand?.logoDataUrl (object-fit:contain, :alt=name) else initials span; tests 'a kit with a logo shows the logo (not initials), named for the community' + 'a kit without a logo shows the initials chip on the band'", "5. Scope: only the five identity colours applied, only to the card element; --oc-background and --oc-status-* never applied; nothing on :root; two kits don't bleed": "brandFromShell keeps only OC_IDENTITY_VARS; HealthBoard.vue :style=brandStyle(card) on the article; tests 'applies ONLY the five identity colours, scoped to the card — never the ground, status, or :root' + healthBoard.test.ts 'keeps ONLY the five identity colours'", "6. Status never takes the brand: pill/sub-line/border status meaning + board chrome stay on product tokens; a kit re-tinting --oc-status-healthy leaves the pill unchanged": "card element never carries --oc-status-* (scoped to identity only) so OcPill reads :root product tokens; border uses --oc-status-critical; test 'status never takes the brand: a kit re-tinting --oc-status-healthy leaves the pill on the product token'", "7. Fallbacks (no kit / missing folder / failed-or-timed-out read) -> DDR 0299 neutral card, data-brand=default, initials, no error; a paused draft with a saved kit wears it": "brandFromShell returns default on default-preset/unparseable; readBrand catches a rejected read -> default; missingCard carries no brand -> brandKind=default; tests 'the default kit keeps the DDR 0299 neutral card...' + 'a failed brand read falls back to the neutral card, no error shown' + healthBoard.test.ts rejected/unparseable cases", "8. Freshness: brand re-read on every board load and on Refresh": "HealthBoard.vue load() (onMounted + Refresh click) clears byId and re-runs loadBoard, which re-reads shellBrand per card each time; unchanged load/refresh path from DDR 0299 now carries the brand read", "9. Element-ID contract: new data-field=community-brand-<id> + data-brand, data-field=community-logo-<id> (only when a logo); DDR 0299's existing ids unchanged and existing board tests green": "HealthBoard.vue band + logo attributes; existing DDR 0299 data-field/data-status/data-action untouched; existing healthBoardScreen.test.ts (11) + healthBoard.test.ts DDR 0299 cases stay green", "10. Seam/unit tests cover criteria 1 and 4-7 over fake clients answering a kit with a logo, a kit without a logo, the default kit, and a rejected read": "healthBoard.test.ts (brandFromShell + loadBoard brand reads) + healthBoardScreen.test.ts (branded-board describe) over kitBrand(with logo), kitBrand(no logo), kitBrand() default, and a rejected/throwing shellBrand" }, "summary": "Each health-board card now wears its community's brand kit — scoped logo + identity colours in an accent band, with the status signal and board chrome staying on the product tokens (DDR 0302).", "unproven_by_seam": "The seam's shellBrand is a fake; a real community's compiled kit over a live found bridge is not exercised in-sandbox.", "blockers": [] } ``` </details>

⏩ independent reviewer for #2165 — verdict unauthenticated

review JSON
{
  "verdict": "unauthenticated",
  "findings": []
}
:fast_forward: **independent reviewer** for #2165 — verdict `unauthenticated` <details><summary>review JSON</summary> ```json { "verdict": "unauthenticated", "findings": [] } ``` </details>

close-report for #2165 — status success

✅ close-report gates passed — every claim verified against the pushed worker branch sandcastle/worker/20261104-184050-a6fd6b (pre-land — the host promotes it to main only after its post-run verify, #193/#283); issue closed.

envelope
{
  "issue": 2165,
  "status": "success",
  "commits": [
    "c64c4056560f313d86c74227cb5aac7fbe3931a3"
  ],
  "changed_files": [
    "STATUS.md",
    "app/src/components/shell/HealthBoard.vue",
    "app/src/lib/healthBoard.ts",
    "app/tests/e2e/preview-harness/health-board.harness.ts",
    "app/tests/unit/healthBoard.test.ts",
    "app/tests/unit/healthBoardScreen.test.ts",
    "packages/ui-kit/src/brandTokens.ts",
    "packages/ui-kit/src/index.ts"
  ],
  "tests": [
    {
      "command": "node_modules/.bin/vitest run tests/unit/healthBoard.test.ts tests/unit/healthBoardScreen.test.ts tests/unit/foundAnother.test.ts tests/unit/sessionHub.test.ts tests/unit/communitySessions.test.ts (in app/)",
      "exit_code": 0
    },
    {
      "command": "node_modules/.bin/vue-tsc -p tsconfig.json (in app/)",
      "exit_code": 0
    },
    {
      "command": "vue-tsc --noEmit -p tsconfig.json (in packages/ui-kit/)",
      "exit_code": 0
    },
    {
      "command": "vitest run (in packages/ui-kit/, 247 tests)",
      "exit_code": 0
    },
    {
      "command": "eslint over changed app + ui-kit files",
      "exit_code": 0
    }
  ],
  "criteria": {
    "1. Brand read over each community's own shellBrand, never waits on the probe, probe never waits on it, one card's slow read never holds up another (d.1)": "app/src/lib/healthBoard.ts loadBoard() starts readBrand() then kicks resolveStatus() off before awaiting the brand; tests healthBoard.test.ts 'the probe never waits on the brand read...', 'a checking card is branded as soon as its local brand read answers...', 'one card's slow brand read never holds up another card'",
    "2. Branded in all four status states (Checking, Reachable, Not answering, Founding paused) (d.1)": "loadBoard attaches brand on both the checking emit and the terminal emit; tests 'attaches each card's brand to its emits, in every status state' + 'a not-answering card is branded too'",
    "3. The band: accent ground, logo/name/path in text-on-accent, action button in the community accent (d.2)": "HealthBoard.vue __band[data-brand=kit]{background:var(--oc-accent);color:var(--oc-text-on-accent)} + OcButton variant=primary inherits the card's scoped --oc-accent; test 'a kit with a logo shows the logo...'",
    "4. The logo replaces the initials chip, fitted without cropping, accessible name = community name; no logo -> initials chip on the branded band (d.5)": "HealthBoard.vue <img> v-if card.brand?.logoDataUrl (object-fit:contain, :alt=name) else initials span; tests 'a kit with a logo shows the logo (not initials), named for the community' + 'a kit without a logo shows the initials chip on the band'",
    "5a. Scope: only the five identity colours are applied, and only to the card element": "brandFromShell keeps only OC_IDENTITY_VARS; HealthBoard.vue :style=brandStyle(card) on the <article>; tests 'applies ONLY the five identity colours, scoped to the card' + healthBoard.test.ts 'keeps ONLY the five identity colours'",
    "5b. --oc-background and --oc-status-* from a kit are never applied to the card": "OC_IDENTITY_VARS excludes --oc-background and the --oc-status-* pair; test asserts c1.style --oc-background and --oc-status-healthy are both empty",
    "5c. Nothing is applied to :root": "component only sets inline custom props on the card element; test records :root OC_IDENTITY_VARS before and asserts unchanged after mount",
    "5d. A test proves that two cards with different kits don't bleed into each other or into the window": "test 'applies ONLY the five identity colours...' mounts c1 (green) and c2 (purple) and asserts each card's own --oc-accent plus :root unchanged",
    "6a. The status pill, its sub-line, and the border's status meaning (red/dashed) stay on the product status tokens": "card never carries --oc-status-* so OcPill reads :root product tokens; HealthBoard.vue border uses --oc-status-critical; __band[data-brand=kit] does not touch the pill/sub",
    "6b. The board's title bar, Refresh and + Found another community stay on the product default": "those elements sit outside any card so carry no scoped brand style; test asserts refresh-board carries no inline --oc-accent",
    "6c. A test runs a kit whose --oc-status-healthy differs from the product's and shows the pill does not change": "test 'status never takes the brand: a kit re-tinting --oc-status-healthy leaves the pill on the product token' (card carries no --oc-status-healthy)",
    "7. Fallbacks (no kit / missing folder / failed-or-timed-out read) -> DDR 0299 neutral card, data-brand=default, initials, no error; a paused draft with a saved kit wears it (d.6)": "brandFromShell returns default on default-preset/unparseable; readBrand catches a rejected read -> default; missingCard carries no brand -> brandKind=default; tests 'the default kit keeps the DDR 0299 neutral card...' + 'a failed brand read falls back to the neutral card, no error shown' + healthBoard.test.ts rejected/unparseable cases",
    "8. Freshness: brand re-read on every board load and on Refresh (d.7)": "HealthBoard.vue load() (onMounted + Refresh click) clears byId and re-runs loadBoard, which re-reads shellBrand per card each time; the DDR 0299 load/refresh path now carries the brand read",
    "9a. New: data-field=community-brand-<id> with data-brand=kit|default on the band, and data-field=community-logo-<id> on the logo present only when there is one": "HealthBoard.vue band header + <img> attributes; tests assert the band's data-brand and the presence/absence of community-logo-<id>",
    "9b. DDR 0299's existing data-field/data-status/data-action are unchanged and the existing board tests stay green": "existing attributes untouched on the <article> and buttons; existing healthBoardScreen.test.ts (11) + healthBoard.test.ts DDR 0299 cases stay green",
    "10. Seam/unit tests cover criteria 1 and 4-7 over fake clients answering a kit with a logo, a kit without a logo, the default kit, and a rejected read": "healthBoard.test.ts (brandFromShell + loadBoard brand reads) + healthBoardScreen.test.ts (branded-board describe) over kitBrand(with logo), kitBrand(no logo), kitBrand() default, and a rejected/throwing shellBrand"
  },
  "summary": "Each health-board card now wears its community's brand kit — scoped logo + identity colours in an accent band, with the status signal and board chrome staying on the product tokens (DDR 0302).",
  "unproven_by_seam": "The seam's shellBrand is a fake; a real community's compiled kit over a live found bridge is not exercised in-sandbox.",
  "blockers": []
}
**close-report** for #2165 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against the pushed worker branch `sandcastle/worker/20261104-184050-a6fd6b` (pre-land — the host promotes it to `main` only after its post-run verify, #193/#283); issue closed. <details><summary>envelope</summary> ```json { "issue": 2165, "status": "success", "commits": [ "c64c4056560f313d86c74227cb5aac7fbe3931a3" ], "changed_files": [ "STATUS.md", "app/src/components/shell/HealthBoard.vue", "app/src/lib/healthBoard.ts", "app/tests/e2e/preview-harness/health-board.harness.ts", "app/tests/unit/healthBoard.test.ts", "app/tests/unit/healthBoardScreen.test.ts", "packages/ui-kit/src/brandTokens.ts", "packages/ui-kit/src/index.ts" ], "tests": [ { "command": "node_modules/.bin/vitest run tests/unit/healthBoard.test.ts tests/unit/healthBoardScreen.test.ts tests/unit/foundAnother.test.ts tests/unit/sessionHub.test.ts tests/unit/communitySessions.test.ts (in app/)", "exit_code": 0 }, { "command": "node_modules/.bin/vue-tsc -p tsconfig.json (in app/)", "exit_code": 0 }, { "command": "vue-tsc --noEmit -p tsconfig.json (in packages/ui-kit/)", "exit_code": 0 }, { "command": "vitest run (in packages/ui-kit/, 247 tests)", "exit_code": 0 }, { "command": "eslint over changed app + ui-kit files", "exit_code": 0 } ], "criteria": { "1. Brand read over each community's own shellBrand, never waits on the probe, probe never waits on it, one card's slow read never holds up another (d.1)": "app/src/lib/healthBoard.ts loadBoard() starts readBrand() then kicks resolveStatus() off before awaiting the brand; tests healthBoard.test.ts 'the probe never waits on the brand read...', 'a checking card is branded as soon as its local brand read answers...', 'one card's slow brand read never holds up another card'", "2. Branded in all four status states (Checking, Reachable, Not answering, Founding paused) (d.1)": "loadBoard attaches brand on both the checking emit and the terminal emit; tests 'attaches each card's brand to its emits, in every status state' + 'a not-answering card is branded too'", "3. The band: accent ground, logo/name/path in text-on-accent, action button in the community accent (d.2)": "HealthBoard.vue __band[data-brand=kit]{background:var(--oc-accent);color:var(--oc-text-on-accent)} + OcButton variant=primary inherits the card's scoped --oc-accent; test 'a kit with a logo shows the logo...'", "4. The logo replaces the initials chip, fitted without cropping, accessible name = community name; no logo -> initials chip on the branded band (d.5)": "HealthBoard.vue <img> v-if card.brand?.logoDataUrl (object-fit:contain, :alt=name) else initials span; tests 'a kit with a logo shows the logo (not initials), named for the community' + 'a kit without a logo shows the initials chip on the band'", "5a. Scope: only the five identity colours are applied, and only to the card element": "brandFromShell keeps only OC_IDENTITY_VARS; HealthBoard.vue :style=brandStyle(card) on the <article>; tests 'applies ONLY the five identity colours, scoped to the card' + healthBoard.test.ts 'keeps ONLY the five identity colours'", "5b. --oc-background and --oc-status-* from a kit are never applied to the card": "OC_IDENTITY_VARS excludes --oc-background and the --oc-status-* pair; test asserts c1.style --oc-background and --oc-status-healthy are both empty", "5c. Nothing is applied to :root": "component only sets inline custom props on the card element; test records :root OC_IDENTITY_VARS before and asserts unchanged after mount", "5d. A test proves that two cards with different kits don't bleed into each other or into the window": "test 'applies ONLY the five identity colours...' mounts c1 (green) and c2 (purple) and asserts each card's own --oc-accent plus :root unchanged", "6a. The status pill, its sub-line, and the border's status meaning (red/dashed) stay on the product status tokens": "card never carries --oc-status-* so OcPill reads :root product tokens; HealthBoard.vue border uses --oc-status-critical; __band[data-brand=kit] does not touch the pill/sub", "6b. The board's title bar, Refresh and + Found another community stay on the product default": "those elements sit outside any card so carry no scoped brand style; test asserts refresh-board carries no inline --oc-accent", "6c. A test runs a kit whose --oc-status-healthy differs from the product's and shows the pill does not change": "test 'status never takes the brand: a kit re-tinting --oc-status-healthy leaves the pill on the product token' (card carries no --oc-status-healthy)", "7. Fallbacks (no kit / missing folder / failed-or-timed-out read) -> DDR 0299 neutral card, data-brand=default, initials, no error; a paused draft with a saved kit wears it (d.6)": "brandFromShell returns default on default-preset/unparseable; readBrand catches a rejected read -> default; missingCard carries no brand -> brandKind=default; tests 'the default kit keeps the DDR 0299 neutral card...' + 'a failed brand read falls back to the neutral card, no error shown' + healthBoard.test.ts rejected/unparseable cases", "8. Freshness: brand re-read on every board load and on Refresh (d.7)": "HealthBoard.vue load() (onMounted + Refresh click) clears byId and re-runs loadBoard, which re-reads shellBrand per card each time; the DDR 0299 load/refresh path now carries the brand read", "9a. New: data-field=community-brand-<id> with data-brand=kit|default on the band, and data-field=community-logo-<id> on the logo present only when there is one": "HealthBoard.vue band header + <img> attributes; tests assert the band's data-brand and the presence/absence of community-logo-<id>", "9b. DDR 0299's existing data-field/data-status/data-action are unchanged and the existing board tests stay green": "existing attributes untouched on the <article> and buttons; existing healthBoardScreen.test.ts (11) + healthBoard.test.ts DDR 0299 cases stay green", "10. Seam/unit tests cover criteria 1 and 4-7 over fake clients answering a kit with a logo, a kit without a logo, the default kit, and a rejected read": "healthBoard.test.ts (brandFromShell + loadBoard brand reads) + healthBoardScreen.test.ts (branded-board describe) over kitBrand(with logo), kitBrand(no logo), kitBrand() default, and a rejected/throwing shellBrand" }, "summary": "Each health-board card now wears its community's brand kit — scoped logo + identity colours in an accent band, with the status signal and board chrome staying on the product tokens (DDR 0302).", "unproven_by_seam": "The seam's shellBrand is a fake; a real community's compiled kit over a live found bridge is not exercised in-sandbox.", "blockers": [] } ``` </details>

🚨 Reopened — a push-mode close did NOT land on main (#283). close-report closed this issue against the pushed worker branch, but the host's post-run verify rolled the land back (the promote did not advance main (a no-op push to main)), so origin/main never carried the commits (c64c4056560f313d86c74227cb5aac7fbe3931a3). The gates-passed comment above is therefore NOT true of main. Reopening and relabelling ready-for-session so the work is redone where it can land; the commits are parked on a rescue branch for triage (see this run's alarm).

:rotating_light: **Reopened — a push-mode close did NOT land on `main` (#283).** close-report closed this issue against the pushed worker branch, but the host's post-run verify rolled the land back (`the promote did not advance main (a no-op push to main)`), so `origin/main` never carried the commits (`c64c4056560f313d86c74227cb5aac7fbe3931a3`). The gates-passed comment above is therefore NOT true of `main`. Reopening and relabelling `ready-for-session` so the work is redone where it can land; the commits are parked on a rescue branch for triage (see this run's alarm).

Close report — landed on main (push mode).

Each health-board card now wears its community's brand (DDR 0302, amends DDR 0299).

Commit: 34beb4eb — health board: each card wears its community's brand — logo + colours (#2165, DDR 0302).

What landed

  • Brand read, independent of the probe (AC 1, d.1). app/src/lib/healthBoard.ts: loadBoard gained an optional onBrand(id, brand) stream; each session's brand is read over its own shellBrand (the brand-tokens op) and kicked off before the seat/probe path, so the read never waits on the probe, the probe never waits on it, and one card's slow read never holds up another. A new CardBrand rides the card model.
  • Branded in every state (AC 2). The brand is read from this computer, so a Not answering and a Checking… card are branded too (proven by the screen test on the not-answering card).
  • The band + logo (AC 3, 4). HealthBoard.vue: a header band in the community's --oc-accent / --oc-text-on-accent carries the logo (object-fit: contain, accessible-named for the community), the name and the path; the action button inherits the accent. No logo → the letter-mark chip (transparent + on-accent outline, the title bar's fallback).
  • Scope (AC 5, 6). New ui-kit OC_IDENTITY_COLOR_VARS + identityBrandTokens(); the model carries only the five identity colours, and a v-brand directive applies them via the ui-kit's applyBrandTokens to the card <article> alone — never --oc-background, --oc-status-*, or :root. The status pill, card border and board chrome stay on the product tokens; two kits never bleed.
  • Fallbacks (AC 7). Default kit, missing folder, and a failed/timed-out read all read data-brand="default" — the neutral DDR 0299 card, no error shown. A paused founding's saved kit shows (the read is draft-first).
  • Freshness (AC 8). Re-read on every board load and on Refresh.
  • Element-ID contract (AC 9). New data-field="community-brand-<id>" (data-brand="kit|default") + data-field="community-logo-<id>" (only when a logo exists). DDR 0299's existing data-field/data-status/data-action unchanged; the existing board tests stay green.

Proof (AC 10)

  • app/tests/unit/healthBoard.test.ts (+10): the brand read over fake founding clients answering a kit-with-logo, a kit-without-logo, the default kit, default-colours-with-a-name, and a rejected read; plus the three independence guards (read-not-waiting-on-probe, probe-not-waiting-on-read, one hung read not holding up another).
  • app/tests/unit/healthBoardScreen.test.ts (+4): band / data-brand / logo rendering; the five-tokens-only scope with no bleed and nothing on :root; the pill keeps the product --oc-status-healthy; a not-answering card is branded.
  • ui-kit suite (247) + full app unit suite (2381) green; vue-tsc (app + ui-kit) and eslint (incl. no-bare-literal) clean; the repo's pinned pre-push lint gate passed.

No helper or Go change — the brand-tokens op already answers per community (DDR 0151 d.1).

Ruled by agent under ADR 0174 — veto anytime (two-way: revertible per commit; provable by the two suites above).

**Close report — landed on `main` (push mode).** Each health-board card now wears its community's brand (DDR 0302, amends DDR 0299). **Commit:** `34beb4eb` — *health board: each card wears its community's brand — logo + colours (#2165, DDR 0302)*. **What landed** - **Brand read, independent of the probe (AC 1, d.1).** `app/src/lib/healthBoard.ts`: `loadBoard` gained an optional `onBrand(id, brand)` stream; each session's brand is read over its own `shellBrand` (the `brand-tokens` op) and kicked off *before* the seat/probe path, so the read never waits on the probe, the probe never waits on it, and one card's slow read never holds up another. A new `CardBrand` rides the card model. - **Branded in every state (AC 2).** The brand is read from this computer, so a *Not answering* and a *Checking…* card are branded too (proven by the screen test on the not-answering card). - **The band + logo (AC 3, 4).** `HealthBoard.vue`: a header band in the community's `--oc-accent` / `--oc-text-on-accent` carries the logo (`object-fit: contain`, accessible-named for the community), the name and the path; the action button inherits the accent. No logo → the letter-mark chip (transparent + on-accent outline, the title bar's fallback). - **Scope (AC 5, 6).** New ui-kit `OC_IDENTITY_COLOR_VARS` + `identityBrandTokens()`; the model carries only the five identity colours, and a `v-brand` directive applies them via the ui-kit's `applyBrandTokens` to the card `<article>` alone — never `--oc-background`, `--oc-status-*`, or `:root`. The status pill, card border and board chrome stay on the product tokens; two kits never bleed. - **Fallbacks (AC 7).** Default kit, missing folder, and a failed/timed-out read all read `data-brand="default"` — the neutral DDR 0299 card, no error shown. A paused founding's saved kit shows (the read is draft-first). - **Freshness (AC 8).** Re-read on every board load and on Refresh. - **Element-ID contract (AC 9).** New `data-field="community-brand-<id>"` (`data-brand="kit|default"`) + `data-field="community-logo-<id>"` (only when a logo exists). DDR 0299's existing `data-field`/`data-status`/`data-action` unchanged; the existing board tests stay green. **Proof (AC 10)** - `app/tests/unit/healthBoard.test.ts` (+10): the brand read over fake founding clients answering a kit-with-logo, a kit-without-logo, the default kit, default-colours-with-a-name, and a rejected read; plus the three independence guards (read-not-waiting-on-probe, probe-not-waiting-on-read, one hung read not holding up another). - `app/tests/unit/healthBoardScreen.test.ts` (+4): band / `data-brand` / logo rendering; the five-tokens-only scope with no bleed and nothing on `:root`; the pill keeps the product `--oc-status-healthy`; a not-answering card is branded. - ui-kit suite (247) + full app unit suite (2381) green; `vue-tsc` (app + ui-kit) and `eslint` (incl. `no-bare-literal`) clean; the repo's pinned pre-push lint gate passed. No helper or Go change — the `brand-tokens` op already answers per community (DDR 0151 d.1). Ruled by agent under ADR 0174 — veto anytime (two-way: revertible per commit; provable by the two suites above).
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#2165
No description provided.