brand-reach: svc:data-collections wears the kit — Grist logo + palette via CSS bind-mount #1263

Closed
opened 2026-09-06 05:36:57 +00:00 by ben · 2 comments
Owner

Parent

Spec #1253 (brand-reach arc, DDR 0225 + DDR 0220 amendments).

What to build

A kit change lands Grist's logo and palette: first enable is a rebuild (env + bind-mount), later CSS-only kit edits apply live on page reload.

Acceptance criteria

  • A brandkit surface with capability exactly logo.full · the four colour tokens; pure Render emits the custom.css artifact (logo + theme vars) with golden tests; out-of-capability tokens report Unsupported
  • The surface joins the default registry, the brand-consuming-slugs set and the logo-bearing path
  • First enable rebuilds (static-include env + bind-mount); a later CSS-only kit change applies without rebuild
  • The card line derives its logo-and-colours statement (no name — Grist carries no brand.name)

Blocked by

## Parent Spec #1253 (brand-reach arc, DDR 0225 + DDR 0220 amendments). ## What to build A kit change lands Grist's logo and palette: first enable is a rebuild (env + bind-mount), later CSS-only kit edits apply live on page reload. ## Acceptance criteria - [ ] A brandkit surface with capability exactly logo.full · the four colour tokens; pure Render emits the custom.css artifact (logo + theme vars) with golden tests; out-of-capability tokens report Unsupported - [ ] The surface joins the default registry, the brand-consuming-slugs set and the logo-bearing path - [ ] First enable rebuilds (static-include env + bind-mount); a later CSS-only kit change applies without rebuild - [ ] The card line derives its logo-and-colours statement (no name — Grist carries no brand.name) ## Blocked by - #1256

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

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

close-report for #1263 — status success

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

envelope
{
  "issue": 1263,
  "status": "success",
  "commits": [
    "c7d2888988680160c4c6edf49560a69db95a1b57"
  ],
  "changed_files": [
    "STATUS.md",
    "internal/brandkit/datacollections_surface_test.go",
    "internal/brandkit/logoobject_test.go",
    "internal/brandkit/surface.go",
    "internal/brandkit/testdata/golden/contrast-shortfall.snapshot",
    "internal/brandkit/testdata/golden/extras-nextcloud.snapshot",
    "internal/brandkit/testdata/golden/palette-full.snapshot",
    "internal/brandkit/testdata/golden/preset-forest-empty-greeting.snapshot",
    "internal/brandkit/testdata/golden/preset-matou-default.snapshot",
    "internal/brandkit/testdata/golden/preset-reef-service.snapshot",
    "internal/brandkit/testdata/golden/preset-tussock-status-override.snapshot",
    "internal/catalogue/catalogue.go",
    "internal/clan/branddeploy.go",
    "internal/clan/branddeploy_test.go",
    "internal/clan/datacollections.go",
    "internal/clan/datacollections_test.go",
    "internal/controlapi/catalogue_read_integration_test.go",
    "internal/controlapi/settings.go",
    "internal/founding/deploy_test.go"
  ],
  "tests": [
    {
      "command": "go build ./...",
      "exit_code": 0
    },
    {
      "command": "go test ./internal/brandkit/ ./internal/clan/ ./internal/catalogue/ ./internal/controlapi/ ./internal/founding/",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci (pre-push gate: build+vet+lint+test all packages)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "A brandkit surface with capability exactly logo.full + the four colour tokens; pure Render emits the custom.css artifact (logo + theme vars) with golden tests; out-of-capability tokens report Unsupported": "internal/brandkit/surface.go DataCollectionsSurface (cap = logo.full + accent/accent-hover/text-on-accent/background); Render emits custom.css with --icon-GristLogo url(\"logo\") + --grist-theme-* vars, all !important; golden corpus regenerated (all 7 snapshots carry the svc:data-collections custom.css block + coverage); datacollections_surface_test.go TestDataCollections_Boundary/_RenderPureCustomCSS/_LogoReferencesFixedSibling/_UnsupportedFacets",
    "The surface joins the default registry, the brand-consuming-slugs set and the logo-bearing path": "surface.go DefaultRegistry adds DataCollectionsSurface(); internal/clan/branddeploy.go brandConsumingSlugs[DataCollectionsSlug] (branddeploy_test proves node-i joins); LogoBearingSurfaces derives it from logo.full (logoobject_test + founding deploy_test surface sets include svc:data-collections)",
    "First enable rebuilds (static-include env + bind-mount); a later CSS-only kit change applies without rebuild": "internal/clan/datacollections.go: container gains APP_STATIC_INCLUDE_CUSTOM_CSS + custom.css/logo bind-mounts under lib.optionalAttrs/lib.optionals haveBrand (first-enable rebuild); the bind-mount SOURCES are STABLE host paths refreshed by the data-collections-brand oneshot (restartTriggers=[brandConf]), never the store-path conf literal, so a CSS-only change updates bytes without churning the container spec. Tests: TestRenderDataCollections_BrandCustomCSSBindMount + _LaterCSSChangeAppliesWithoutRebuild + _BrandGuardedWhenNoKit",
    "The card line derives its logo-and-colours statement (no name — Grist carries no brand.name)": "internal/catalogue/catalogue.go data-collections entry gains Surface: \"svc:data-collections\"; AdoptionLine(cap) = \"Carries your logo & colours\"; controlapi/catalogue_read_integration_test.go asserts the data-collections brand_line; brandkit TestDataCollections_AdoptionLineLogoAndColours"
  },
  "summary": "svc:data-collections (Grist) becomes a brand surface at logo-and-colours fidelity via a custom.css bind-mount — first enable rebuilds, later CSS-only kit changes apply live.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1263 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1263, "status": "success", "commits": [ "c7d2888988680160c4c6edf49560a69db95a1b57" ], "changed_files": [ "STATUS.md", "internal/brandkit/datacollections_surface_test.go", "internal/brandkit/logoobject_test.go", "internal/brandkit/surface.go", "internal/brandkit/testdata/golden/contrast-shortfall.snapshot", "internal/brandkit/testdata/golden/extras-nextcloud.snapshot", "internal/brandkit/testdata/golden/palette-full.snapshot", "internal/brandkit/testdata/golden/preset-forest-empty-greeting.snapshot", "internal/brandkit/testdata/golden/preset-matou-default.snapshot", "internal/brandkit/testdata/golden/preset-reef-service.snapshot", "internal/brandkit/testdata/golden/preset-tussock-status-override.snapshot", "internal/catalogue/catalogue.go", "internal/clan/branddeploy.go", "internal/clan/branddeploy_test.go", "internal/clan/datacollections.go", "internal/clan/datacollections_test.go", "internal/controlapi/catalogue_read_integration_test.go", "internal/controlapi/settings.go", "internal/founding/deploy_test.go" ], "tests": [ { "command": "go build ./...", "exit_code": 0 }, { "command": "go test ./internal/brandkit/ ./internal/clan/ ./internal/catalogue/ ./internal/controlapi/ ./internal/founding/", "exit_code": 0 }, { "command": "nix develop .#go-ci (pre-push gate: build+vet+lint+test all packages)", "exit_code": 0 } ], "criteria": { "A brandkit surface with capability exactly logo.full + the four colour tokens; pure Render emits the custom.css artifact (logo + theme vars) with golden tests; out-of-capability tokens report Unsupported": "internal/brandkit/surface.go DataCollectionsSurface (cap = logo.full + accent/accent-hover/text-on-accent/background); Render emits custom.css with --icon-GristLogo url(\"logo\") + --grist-theme-* vars, all !important; golden corpus regenerated (all 7 snapshots carry the svc:data-collections custom.css block + coverage); datacollections_surface_test.go TestDataCollections_Boundary/_RenderPureCustomCSS/_LogoReferencesFixedSibling/_UnsupportedFacets", "The surface joins the default registry, the brand-consuming-slugs set and the logo-bearing path": "surface.go DefaultRegistry adds DataCollectionsSurface(); internal/clan/branddeploy.go brandConsumingSlugs[DataCollectionsSlug] (branddeploy_test proves node-i joins); LogoBearingSurfaces derives it from logo.full (logoobject_test + founding deploy_test surface sets include svc:data-collections)", "First enable rebuilds (static-include env + bind-mount); a later CSS-only kit change applies without rebuild": "internal/clan/datacollections.go: container gains APP_STATIC_INCLUDE_CUSTOM_CSS + custom.css/logo bind-mounts under lib.optionalAttrs/lib.optionals haveBrand (first-enable rebuild); the bind-mount SOURCES are STABLE host paths refreshed by the data-collections-brand oneshot (restartTriggers=[brandConf]), never the store-path conf literal, so a CSS-only change updates bytes without churning the container spec. Tests: TestRenderDataCollections_BrandCustomCSSBindMount + _LaterCSSChangeAppliesWithoutRebuild + _BrandGuardedWhenNoKit", "The card line derives its logo-and-colours statement (no name — Grist carries no brand.name)": "internal/catalogue/catalogue.go data-collections entry gains Surface: \"svc:data-collections\"; AdoptionLine(cap) = \"Carries your logo & colours\"; controlapi/catalogue_read_integration_test.go asserts the data-collections brand_line; brandkit TestDataCollections_AdoptionLineLogoAndColours" }, "summary": "svc:data-collections (Grist) becomes a brand surface at logo-and-colours fidelity via a custom.css bind-mount — first enable rebuilds, later CSS-only kit changes apply live.", "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.

Reference
Matou/idss#1263
No description provided.