Nextcloud wears the whole kit: logo bytes + background colour ride the theming push #409

Closed
opened 2026-08-10 18:07:40 +00:00 by ben · 2 comments
Owner

Ben's drive-17 walkthrough ruling (2026-08-10, drive 20260810T144654Z): the Nextcloud login page carries the accent (#619793 asserted), but the signed-in chrome and background are default Nextcloud — no community logo in the header, default blue background.

Verified on the live drive-17 guest: occ config:list theming shows only name + primary_color landed. Two gaps:

  1. Logo bytes never ship to the files node. nextcloud-brand.service (DDR 0007) already tries theming:config logo <value> but the compiled value is a repo-relative path with no bytes on the machine — the apply fails and is deliberately non-fatal (#362). The kanidm brand push solved exactly this: clan.WriteBrandLogo lands the logo bytes seed-leg at a fixed path, and the oneshot pushes them (DDR 0145/0147). Do the same for the files node: land the logo bytes, point theming:config logo at them.
  2. Background colour is never pushed. Nextcloud 32's theming:config supports background_color (verified in the guest's occ help; setting it replaces the default blue background image with a plain colour). Push the kit palette's background (brandkit.Palette.Background, white default) so the signed-in surface stops wearing Nextcloud blue. A background image in the kit is a separate needs-design founding-S3 question (companion ticket) — out of scope here.

Acceptance: after a files deploy, occ config:list theming carries name, primary_color, background_color and a logo; the login page and signed-in header show the community logo; the e2e drive grows assertions for it (app/tests/e2e/fixtures/provision.ts assertBrandedLogin + a signed-in brand assertion — mind the drive-15 false-green lesson: assert bytes/status, not URL reachability).

Precedents: DDR 0007 (theming push), DDR 0147 (logo bytes oneshot, byte-equality proof), DDR 0151 (the brand wears the chrome). Implementation surface: internal/clan/files.go (brand oneshot + seed leg).

no-triage until the bridge worktree merges — the current files-port truth (drive-17 campaign, 7 commits) is unpushed on worktree-bridge-cse_01PLKLFxEnGVFCawokpodMEo; a swarm agent building this off main would collide with it. Flip to ready-for-agent after Ben's merge/push call.

Ben's drive-17 walkthrough ruling (2026-08-10, drive `20260810T144654Z`): the Nextcloud **login page** carries the accent (`#619793` asserted), but the signed-in chrome and background are default Nextcloud — no community logo in the header, default blue background. **Verified on the live drive-17 guest:** `occ config:list theming` shows only `name` + `primary_color` landed. Two gaps: 1. **Logo bytes never ship to the files node.** `nextcloud-brand.service` (DDR 0007) already tries `theming:config logo <value>` but the compiled value is a repo-relative path with no bytes on the machine — the apply fails and is deliberately non-fatal (#362). The kanidm brand push solved exactly this: `clan.WriteBrandLogo` lands the logo bytes seed-leg at a fixed path, and the oneshot pushes them (DDR 0145/0147). Do the same for the files node: land the logo bytes, point `theming:config logo` at them. 2. **Background colour is never pushed.** Nextcloud 32's `theming:config` supports `background_color` (verified in the guest's occ help; setting it replaces the default blue background image with a plain colour). Push the kit palette's background (`brandkit.Palette.Background`, white default) so the signed-in surface stops wearing Nextcloud blue. A background *image* in the kit is a separate `needs-design` founding-S3 question (companion ticket) — out of scope here. **Acceptance:** after a files deploy, `occ config:list theming` carries name, primary_color, background_color and a logo; the login page and signed-in header show the community logo; the e2e drive grows assertions for it (`app/tests/e2e/fixtures/provision.ts` `assertBrandedLogin` + a signed-in brand assertion — mind the drive-15 false-green lesson: assert bytes/status, not URL reachability). Precedents: DDR 0007 (theming push), DDR 0147 (logo bytes oneshot, byte-equality proof), DDR 0151 (the brand wears the chrome). Implementation surface: `internal/clan/files.go` (brand oneshot + seed leg). **`no-triage` until the bridge worktree merges** — the current files-port truth (drive-17 campaign, 7 commits) is unpushed on `worktree-bridge-cse_01PLKLFxEnGVFCawokpodMEo`; a swarm agent building this off main would collide with it. Flip to `ready-for-agent` after Ben's merge/push call.
Author
Owner

Flip condition met: the bridge worktree merged to main and pushed as 90ddba3 (2026-08-10, Ben's call) — the drive-17 provisioning truth, DDRs 0156–0158, and the ✎ wireframes are all on origin/main. no-triage → ready-for-agent.

Flip condition met: the bridge worktree merged to main and pushed as `90ddba3` (2026-08-10, Ben's call) — the drive-17 provisioning truth, DDRs 0156–0158, and the ✎ wireframes are all on origin/main. `no-triage` → `ready-for-agent`.
Author
Owner

Landed on origin/main as ddbc1f5.

Both drive-17 gaps closed in renderNextcloudBrand (internal/clan/files.go, the DDR 0007 oneshot):

  1. Logo bytes — the compiled conf's logo=logo line is a bare sibling filename, not bytes occ can read (the #362 gap). Founding already lands the uploaded bytes seed-leg beside the conf (WriteSurfaceLogos, #356 / DDR 0147's files-node mirror), so the oneshot now points occ theming:config logo at that landed object as a Nix path literal (themingLogo, the world-readable store copy the nextcloud user reads), guarded by haveLogo = builtins.pathExists (no upload → the block is lib.optionalString-omitted, never a bytes-less apply) and added to restartTriggers (a re-upload re-themes).
  2. Background colour — NC32's plain-colour background is background_color; the bare background occ key expects an image PATH, so the conf's background=<hex> silently no-opped. It now rides background_color. name + primary colour still ride the generic key loop, each apply non-fatal (T5, #362).

Acceptance / evidence:

  • Seam: internal/clan/files_test.go — TestRenderFiles_ThemingPushesLogoBytesAndBackgroundColor (new) + the two existing theming tests updated; rendered files.nix Nix-parses clean.
  • e2e drive: assertBrandedChrome (app/tests/e2e/fixtures/provision.ts, wired into provision-nextcloud.live.spec.ts) asks the guest's own occ config:list theming --output=json and compares name/primary_color/background_color values + asserts a stored logoMime (the landed bytes' mime — #415's value-not-presence rule), then fetches the theming image endpoint asserting a non-empty 200 image body — bytes/status, never URL reachability (the drive-15 false-green lesson). guestExec (strict throwing twin of guestSsh) added for the occ ask.
  • go test ./internal/{clan,brandkit,founding}/... green; gofmt/vet clean; vue-tsc clean; full pre-push gate green.

UNPROVEN LIVE until the next Nextcloud-provision drive exercises assertBrandedChrome. Companion #408 (background image at founding S3) stays deferred. STATUS.md header + milestone log updated.

Landed on `origin/main` as `ddbc1f5`. **Both drive-17 gaps closed in `renderNextcloudBrand` (`internal/clan/files.go`, the DDR 0007 oneshot):** 1. **Logo bytes** — the compiled conf's `logo=logo` line is a bare sibling filename, not bytes occ can read (the #362 gap). Founding already lands the uploaded bytes seed-leg beside the conf (`WriteSurfaceLogos`, #356 / DDR 0147's files-node mirror), so the oneshot now points `occ theming:config logo` at that landed object as a Nix path literal (`themingLogo`, the world-readable store copy the nextcloud user reads), guarded by `haveLogo = builtins.pathExists` (no upload → the block is `lib.optionalString`-omitted, never a bytes-less apply) and added to `restartTriggers` (a re-upload re-themes). 2. **Background colour** — NC32's plain-colour background is `background_color`; the bare `background` occ key expects an image PATH, so the conf's `background=<hex>` silently no-opped. It now rides `background_color`. name + primary colour still ride the generic key loop, each apply non-fatal (T5, #362). **Acceptance / evidence:** - Seam: `internal/clan/files_test.go` — `TestRenderFiles_ThemingPushesLogoBytesAndBackgroundColor` (new) + the two existing theming tests updated; rendered `files.nix` Nix-parses clean. - e2e drive: `assertBrandedChrome` (`app/tests/e2e/fixtures/provision.ts`, wired into `provision-nextcloud.live.spec.ts`) asks the guest's own `occ config:list theming --output=json` and **compares** name/`primary_color`/`background_color` values + asserts a stored `logoMime` (the landed bytes' mime — #415's value-not-presence rule), then fetches the theming image endpoint asserting a **non-empty 200 image body** — bytes/status, never URL reachability (the drive-15 false-green lesson). `guestExec` (strict throwing twin of `guestSsh`) added for the occ ask. - `go test ./internal/{clan,brandkit,founding}/...` green; gofmt/vet clean; `vue-tsc` clean; full pre-push gate green. **UNPROVEN LIVE** until the next Nextcloud-provision drive exercises `assertBrandedChrome`. Companion #408 (background *image* at founding S3) stays deferred. STATUS.md header + milestone log updated.
ben closed this issue 2026-08-11 00:22:15 +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#409
No description provided.