Nextcloud login/dashboard keep the stock blue background: the brand oneshot sets background_color but never theming:config background backgroundColor, so NC32 stays in image mode and the kit colour + logo never show (Whakatōhea Demo) #1505

Closed
opened 2026-09-16 01:19:42 +00:00 by ben · 3 comments
Owner

Symptom

On the Whakatōhea Demo, Nextcloud's own login page (https://files.<apex>/login) still shows Nextcloud's stock blue background image instead of the community's kit: occ theming:config on the box reads primary_color: #333333, background_color: #ffffff, logo: image/png — and background: empty.

Cause

internal/clan/files.go renderNextcloudBrand (the nextcloud-brand oneshot) applies the kit's page colour through background_color and deliberately leaves the bare background key alone ("expects an image PATH, so the conf's hex colour silently no-ops there"). On Nextcloud 32 that key is what selects the login/dashboard BACKGROUND MODE: it wants the literal backgroundColor to switch from the default image to the plain background_color (occ theming:config background backgroundColor), or an image path to use a custom image. With it empty Nextcloud keeps the default image, so background_color never shows and the logo sits on Nextcloud blue.

Fix (two-way door)

In the oneshot, after background_color: occ theming:config background backgroundColor whenever the kit sets a page colour (and theming:config background --reset when it does not). Assert it in the branded-chrome expectation (ChromeBrandExpectation gains backgroundMode) so the drives prove the login wears the colour, not just that the key is stored. Verify on the demo box after the #1504 self-deploy repair lets a brand apply through.

Evidence

Demo box nextcloud-occ theming:config output; Ben's report 2026-09-16 ("the nextcloud background page is still the default page instead of loading the logo with the background colour").

## Symptom On the Whakatōhea Demo, Nextcloud's own login page (`https://files.<apex>/login`) still shows Nextcloud's stock blue background image instead of the community's kit: `occ theming:config` on the box reads `primary_color: #333333`, `background_color: #ffffff`, `logo: image/png` — and `background:` **empty**. ## Cause `internal/clan/files.go` `renderNextcloudBrand` (the nextcloud-brand oneshot) applies the kit's page colour through `background_color` and deliberately leaves the bare `background` key alone ("expects an image PATH, so the conf's hex colour silently no-ops there"). On Nextcloud 32 that key is what selects the login/dashboard BACKGROUND MODE: it wants the literal `backgroundColor` to switch from the default image to the plain `background_color` (`occ theming:config background backgroundColor`), or an image path to use a custom image. With it empty Nextcloud keeps the default image, so `background_color` never shows and the logo sits on Nextcloud blue. ## Fix (two-way door) In the oneshot, after `background_color`: `occ theming:config background backgroundColor` whenever the kit sets a page colour (and `theming:config background --reset` when it does not). Assert it in the `branded-chrome` expectation (`ChromeBrandExpectation` gains `backgroundMode`) so the drives prove the login wears the colour, not just that the key is stored. Verify on the demo box after the #1504 self-deploy repair lets a brand apply through. ## Evidence Demo box `nextcloud-occ theming:config` output; Ben's report 2026-09-16 ("the nextcloud background page is still the default page instead of loading the logo with the background colour").

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

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

close-report for #1505 — status success

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

  • commit 6bc657f16e is not reachable from origin/main (not landed)
  • changed_files: 'STATUS.md' is not in the diff of the claimed commits
  • changed_files: 'app/tests/e2e/fixtures/nextcloudTail.test.ts' is not in the diff of the claimed commits
  • changed_files: 'app/tests/e2e/fixtures/nextcloudTail.ts' is not in the diff of the claimed commits
  • changed_files: 'app/tests/e2e/fixtures/provision.ts' is not in the diff of the claimed commits
  • changed_files: 'app/tests/e2e/provision-nextcloud.live.spec.ts' is not in the diff of the claimed commits
  • changed_files: 'docs/GOTCHAS.md' is not in the diff of the claimed commits
  • changed_files: 'internal/clan/files.go' is not in the diff of the claimed commits
  • changed_files: 'internal/clan/files_test.go' is not in the diff of the claimed commits
envelope
{
  "issue": 1505,
  "status": "success",
  "commits": [
    "6bc657f16e004cf9533bddf8dd76b5e00ca8b110"
  ],
  "changed_files": [
    "STATUS.md",
    "app/tests/e2e/fixtures/nextcloudTail.test.ts",
    "app/tests/e2e/fixtures/nextcloudTail.ts",
    "app/tests/e2e/fixtures/provision.ts",
    "app/tests/e2e/provision-nextcloud.live.spec.ts",
    "docs/GOTCHAS.md",
    "internal/clan/files.go",
    "internal/clan/files_test.go"
  ],
  "tests": [
    {
      "command": "go test ./internal/clan/",
      "exit_code": 0
    },
    {
      "command": "go vet ./internal/clan/",
      "exit_code": 0
    },
    {
      "command": "CI=true pnpm exec vitest run tests/e2e/fixtures/nextcloudTail.test.ts",
      "exit_code": 0
    },
    {
      "command": "pnpm exec vue-tsc --noEmit -p tsconfig.json",
      "exit_code": 0
    },
    {
      "command": "pnpm run lint",
      "exit_code": 0
    }
  ],
  "criteria": {
    "In the oneshot, after background_color: occ theming:config background backgroundColor whenever the kit sets a page colour (and background --reset when it does not)": "internal/clan/files.go renderNextcloudBrand background) case: if [ -n \"$val\" ] sets background_color then background backgroundColor; else background --reset. Asserted by internal/clan/files_test.go TestRenderFiles_ThemingPushesLogoBytesAndBackgroundColor (mode-flip + reset teeth), go test green.",
    "Assert it in the branded-chrome expectation (ChromeBrandExpectation gains backgroundMode) so the drives prove the login wears the colour, not just that the key is stored": "app/tests/e2e/fixtures/provision.ts ChromeBrandExpectation gains backgroundMode; assertBrandedChrome compares theming.background to it; nextcloudChromeBrand() defaults backgroundMode='backgroundColor' (nextcloudTail.ts) and the live spec literal carries it. nextcloudTail.test.ts asserts the default (3/3 green), vue-tsc clean."
  },
  "summary": "The nextcloud-brand oneshot now flips NC32's background MODE to backgroundColor (or --resets it) so the login/dashboard wears the kit colour, and the branded-chrome expectation asserts the mode.",
  "reason": "Two-way door bug fix implementing the ticket's stated fix; ruled under ADR 0174.",
  "blockers": []
}
**close-report** for #1505 — status `success` :no_entry: **close-report gates REFUSED this close** — the following claims did not verify: - commit 6bc657f16e004cf9533bddf8dd76b5e00ca8b110 is not reachable from origin/main (not landed) - changed_files: 'STATUS.md' is not in the diff of the claimed commits - changed_files: 'app/tests/e2e/fixtures/nextcloudTail.test.ts' is not in the diff of the claimed commits - changed_files: 'app/tests/e2e/fixtures/nextcloudTail.ts' is not in the diff of the claimed commits - changed_files: 'app/tests/e2e/fixtures/provision.ts' is not in the diff of the claimed commits - changed_files: 'app/tests/e2e/provision-nextcloud.live.spec.ts' is not in the diff of the claimed commits - changed_files: 'docs/GOTCHAS.md' is not in the diff of the claimed commits - changed_files: 'internal/clan/files.go' is not in the diff of the claimed commits - changed_files: 'internal/clan/files_test.go' is not in the diff of the claimed commits <details><summary>envelope</summary> ```json { "issue": 1505, "status": "success", "commits": [ "6bc657f16e004cf9533bddf8dd76b5e00ca8b110" ], "changed_files": [ "STATUS.md", "app/tests/e2e/fixtures/nextcloudTail.test.ts", "app/tests/e2e/fixtures/nextcloudTail.ts", "app/tests/e2e/fixtures/provision.ts", "app/tests/e2e/provision-nextcloud.live.spec.ts", "docs/GOTCHAS.md", "internal/clan/files.go", "internal/clan/files_test.go" ], "tests": [ { "command": "go test ./internal/clan/", "exit_code": 0 }, { "command": "go vet ./internal/clan/", "exit_code": 0 }, { "command": "CI=true pnpm exec vitest run tests/e2e/fixtures/nextcloudTail.test.ts", "exit_code": 0 }, { "command": "pnpm exec vue-tsc --noEmit -p tsconfig.json", "exit_code": 0 }, { "command": "pnpm run lint", "exit_code": 0 } ], "criteria": { "In the oneshot, after background_color: occ theming:config background backgroundColor whenever the kit sets a page colour (and background --reset when it does not)": "internal/clan/files.go renderNextcloudBrand background) case: if [ -n \"$val\" ] sets background_color then background backgroundColor; else background --reset. Asserted by internal/clan/files_test.go TestRenderFiles_ThemingPushesLogoBytesAndBackgroundColor (mode-flip + reset teeth), go test green.", "Assert it in the branded-chrome expectation (ChromeBrandExpectation gains backgroundMode) so the drives prove the login wears the colour, not just that the key is stored": "app/tests/e2e/fixtures/provision.ts ChromeBrandExpectation gains backgroundMode; assertBrandedChrome compares theming.background to it; nextcloudChromeBrand() defaults backgroundMode='backgroundColor' (nextcloudTail.ts) and the live spec literal carries it. nextcloudTail.test.ts asserts the default (3/3 green), vue-tsc clean." }, "summary": "The nextcloud-brand oneshot now flips NC32's background MODE to backgroundColor (or --resets it) so the login/dashboard wears the kit colour, and the branded-chrome expectation asserts the mode.", "reason": "Two-way door bug fix implementing the ticket's stated fix; ruled under ADR 0174.", "blockers": [] } ``` </details>

close-report for #1505 — status success

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

envelope
{
  "issue": 1505,
  "status": "success",
  "commits": [
    "6bc657f16e004cf9533bddf8dd76b5e00ca8b110"
  ],
  "changed_files": [
    "STATUS.md",
    "app/tests/e2e/fixtures/nextcloudTail.test.ts",
    "app/tests/e2e/fixtures/nextcloudTail.ts",
    "app/tests/e2e/fixtures/provision.ts",
    "app/tests/e2e/provision-nextcloud.live.spec.ts",
    "docs/GOTCHAS.md",
    "internal/clan/files.go",
    "internal/clan/files_test.go"
  ],
  "tests": [
    {
      "command": "go test ./internal/clan/",
      "exit_code": 0
    },
    {
      "command": "go vet ./internal/clan/",
      "exit_code": 0
    },
    {
      "command": "CI=true pnpm exec vitest run tests/e2e/fixtures/nextcloudTail.test.ts",
      "exit_code": 0
    },
    {
      "command": "pnpm exec vue-tsc --noEmit -p tsconfig.json",
      "exit_code": 0
    },
    {
      "command": "pnpm run lint",
      "exit_code": 0
    }
  ],
  "criteria": {
    "In the oneshot, after background_color: occ theming:config background backgroundColor whenever the kit sets a page colour (and background --reset when it does not)": "internal/clan/files.go renderNextcloudBrand background) case: if [ -n \"$val\" ] sets background_color then background backgroundColor; else background --reset. Asserted by internal/clan/files_test.go TestRenderFiles_ThemingPushesLogoBytesAndBackgroundColor (mode-flip + reset teeth), go test green.",
    "Assert it in the branded-chrome expectation (ChromeBrandExpectation gains backgroundMode) so the drives prove the login wears the colour, not just that the key is stored": "app/tests/e2e/fixtures/provision.ts ChromeBrandExpectation gains backgroundMode; assertBrandedChrome compares theming.background to it; nextcloudChromeBrand() defaults backgroundMode='backgroundColor' (nextcloudTail.ts) and the live spec literal carries it. nextcloudTail.test.ts asserts the default (3/3 green), vue-tsc clean."
  },
  "summary": "The nextcloud-brand oneshot now flips NC32's background MODE to backgroundColor (or --resets it) so the login/dashboard wears the kit colour, and the branded-chrome expectation asserts the mode.",
  "reason": "Two-way door bug fix implementing the ticket's stated fix; ruled under ADR 0174.",
  "blockers": []
}
**close-report** for #1505 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1505, "status": "success", "commits": [ "6bc657f16e004cf9533bddf8dd76b5e00ca8b110" ], "changed_files": [ "STATUS.md", "app/tests/e2e/fixtures/nextcloudTail.test.ts", "app/tests/e2e/fixtures/nextcloudTail.ts", "app/tests/e2e/fixtures/provision.ts", "app/tests/e2e/provision-nextcloud.live.spec.ts", "docs/GOTCHAS.md", "internal/clan/files.go", "internal/clan/files_test.go" ], "tests": [ { "command": "go test ./internal/clan/", "exit_code": 0 }, { "command": "go vet ./internal/clan/", "exit_code": 0 }, { "command": "CI=true pnpm exec vitest run tests/e2e/fixtures/nextcloudTail.test.ts", "exit_code": 0 }, { "command": "pnpm exec vue-tsc --noEmit -p tsconfig.json", "exit_code": 0 }, { "command": "pnpm run lint", "exit_code": 0 } ], "criteria": { "In the oneshot, after background_color: occ theming:config background backgroundColor whenever the kit sets a page colour (and background --reset when it does not)": "internal/clan/files.go renderNextcloudBrand background) case: if [ -n \"$val\" ] sets background_color then background backgroundColor; else background --reset. Asserted by internal/clan/files_test.go TestRenderFiles_ThemingPushesLogoBytesAndBackgroundColor (mode-flip + reset teeth), go test green.", "Assert it in the branded-chrome expectation (ChromeBrandExpectation gains backgroundMode) so the drives prove the login wears the colour, not just that the key is stored": "app/tests/e2e/fixtures/provision.ts ChromeBrandExpectation gains backgroundMode; assertBrandedChrome compares theming.background to it; nextcloudChromeBrand() defaults backgroundMode='backgroundColor' (nextcloudTail.ts) and the live spec literal carries it. nextcloudTail.test.ts asserts the default (3/3 green), vue-tsc clean." }, "summary": "The nextcloud-brand oneshot now flips NC32's background MODE to backgroundColor (or --resets it) so the login/dashboard wears the kit colour, and the branded-chrome expectation asserts the mode.", "reason": "Two-way door bug fix implementing the ticket's stated fix; ruled under ADR 0174.", "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#1505
No description provided.