panel-apply: the brand re-apply fixture still picks the preset swatch #1506 deleted — DS2 offers only the PRIMARY picker + hex field #1593

Closed
opened 2026-09-18 18:26:18 +00:00 by matou-build-agent · 2 comments

The failure

Drive 20260918T173924Z (drive-rented-services, commit 7759b45d) went red at panel-apply — the only red of 31 legs (artifacts/legs.json; 30 green, artifacts/verdict.json firstRedLeg: panel-apply). It failed on its own affordance guard, 30s to element(s) not found:

no preset swatch for #2C4770 — pick one the palette offers
Locator: locator('[data-field="brand-kit-editor"]').locator('[data-action="palette-#2C4770"]')

Nothing about the re-apply itself was reached: the leg died before Apply, so #1504's tooth (a brand re-apply riding the box's own redeploy) proved nothing this drive.

The evidence

The product deleted the control, deliberately. ecab2b0f — "sandcastle: #1506 — Settings → Brand kit wears the founding page's anatomy; button reads 'Apply'", Ben's 2026-09-16 ruling off the Whakatōhea Demo — re-cut dashboard/src/components/shell/BrandKitScreen.vue's colours block to the founding anatomy (FoundingBrandKit.vue, DDR 0130 + DDR 0227). Its own message: "The preset swatch grid + oc-btn3 oc-setcolour composite are removed" and "drop the now-unused presetColours prop / PALETTE_PRESETS wiring". The template now carries a standing comment saying so — BrandKitScreen.vue:52-53: "The preset swatch row is gone — what an operator sees at founding and here in Settings is one screen."

ecab2b0f is an ancestor of the drive's commit 7759b45d (git merge-base --is-ancestor exits 0), so the box carried bits with no swatch row. grep -rn 'data-action="palette-' dashboard/src app/src returns nothing — the selector matches no element in either app. PALETTE_PRESETS still stands at dashboard/src/lib/brandkit.ts:54-60 (Navy #2C4770 at :57) but is now imported by nothing in dashboard/src or app/src; it is dead data, not a rendered palette.

The box agrees, in the drive's own snapshot. artifacts/journey.rented-services-pr-f12e2-journey-on-a-rented-gateway/error-context.md:47-60 is the editor as it rendered at the moment of failure — the new anatomy, no swatches:

- text: Colours PRIMARY
- textbox: "#619793"
- textbox "#619793"
- text: SECONDARY
- textbox: "#000000"
- textbox "derived"
- text: derived from your primary until you pick one Primary is for buttons and the things you act on…
…
- alert:
  - paragraph: "normalize kit: accent: invalid hex colour \"\""
- button "Apply"

The alert corroborates the mechanism: the PRIMARY hex textbox is EMPTY (#619793 is its placeholder, BrandKitScreen.vue:76), because founding lands compiled artifacts but writes no idss/brand-kit.json — exactly what the fixture's own comment at provision.ts:1787-1788 records. Nothing ever set the accent, so Validate is already refusing the draft. No ssh to the live box was needed or taken: this is a missing DOM node in the operator dashboard's own bundle, and the snapshot is the whole answer.

The stale fixture. app/tests/e2e/fixtures/provision.ts:1791-1798:

  // The new accent off the preset palette — the same seam-compile path as a custom
  // pick (BrandKitScreen.onPickColour).
  const swatch = editor.locator(`[data-action="palette-${kit.accent}"]`);
  await expect(
    swatch,
    `no preset swatch for ${kit.accent} — pick one the palette offers`,
  ).toBeVisible();
  await swatch.click();

Its doc comments carry the same dead contract: provision.ts:1772-1774 ("The accent is picked off the preset palette (data-action="palette-<hex>", BrandKitScreen.vue)"), :1757 ("a preset hex the swatch palette offers") and :306 (REAPPLY_ACCENT's "the #2C4770 preset").

Blast radius — two drives, not one. reapplyBrandKitInSettings has two callers: app/tests/e2e/journey.rented-services.spec.ts:670 (this drive's leg 18b) and app/tests/e2e/settings-brand-reapply.live.spec.ts:153 (the #365 re-apply drive). Both are red on this selector until the fixture is repaired; the kept-demo profile is unaffected, as it filters panel-apply out (app/tests/e2e/fixtures/demoProfile.ts:76).

Suspected layer

Harness/fixture, not product. The product is doing what #1506 ruled it should; the e2e fixture was not carried along in that commit. ecab2b0f updated dashboard/tests/unit/brandKitTheming.test.ts to the new anatomy but left app/tests/e2e/fixtures/provision.ts pointing at the removed grid — the drift went unnoticed for two days because panel-apply only runs on a paid rented-box drive.

The proposed repair

Drive the accent through the control DS2 now offers, which is the same seam-compile path (BrandKitScreen.onEdit → validate → debounced compilePreview → the draft Apply commits) the swatch drove via onPickColour. The exact idiom already exists in this repo for founding's identical anatomy — app/tests/e2e/fixtures/wizard.ts:150-153:

    await live.page.waitForSelector('[data-action="open-picker"]');
    await live.page.fill('[data-field="custom-hex"]', brand.primary);
    await expect(live.page.locator('[data-field="custom-hex"]')).toHaveValue(brand.primary);

So provision.ts:1791-1798 becomes: locate editor.locator('[data-field="custom-hex"]'), guard it visible, .fill(kit.accent), and read it back with toHaveValue(kit.accent) before clicking Apply. The value the LEG proves is untouched — assertNextcloudTheming still reads primary_color off the live guest's occ config:list theming and still demands REAPPLY_ACCENT (#2C4770), a value founding's #619793 kit could never land. REAPPLY_ACCENT itself should NOT change. The three stale doc comments (:306, :1757, :1772-1774) want updating in the same commit so the next reader is not sent back to the palette.

Which refusal rule fired, and why

Rule 1 (would weaken a check). Any correct fix must remove expect(swatch, 'no preset swatch for …').toBeVisible() at provision.ts:1794-1797, and there is no byte-for-byte twin to re-add — the replacement guard asserts a DIFFERENT subject ([data-field="custom-hex"] rather than [data-action="palette-<hex>"]). That is a removed assertion whose subject changed, not a move, so the healer rails would refuse it. The only way to satisfy the line exactly as written is to put the preset swatch grid back into BrandKitScreen.vue — which is the design #1506 deliberately removed, tripping rule 3 (a product-surface design/one-way decision) as well.

The ruling wanted is narrow: confirm the fixture should FOLLOW #1506 (the swatch row is gone for good, and the PRIMARY hex field is the sanctioned equivalent drive), rather than #1506 having lost an affordance the re-apply arc still needs. Everything downstream of that ruling is mechanical and precedented.

drive 20260918T173924Z red at panel-apply: no preset swatch for #2C4770 — pick one the palette offers expect(locator).toBeVisible() failed Locator: locator('[data-field="brand-kit-editor"]').locator('[data-action="palette-#2C4770"]') Expecte
evidence: /home/dev/swarm/Matou/idss/test-results/drive-rented-services/20260918T173924Z on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured

## The failure Drive `20260918T173924Z` (`drive-rented-services`, commit `7759b45d`) went red at `panel-apply` — the only red of 31 legs (`artifacts/legs.json`; 30 green, `artifacts/verdict.json` `firstRedLeg: panel-apply`). It failed on its own affordance guard, 30s to `element(s) not found`: ``` no preset swatch for #2C4770 — pick one the palette offers Locator: locator('[data-field="brand-kit-editor"]').locator('[data-action="palette-#2C4770"]') ``` Nothing about the re-apply itself was reached: the leg died before Apply, so #1504's tooth (a brand re-apply riding the box's own redeploy) proved nothing this drive. ## The evidence **The product deleted the control, deliberately.** `ecab2b0f` — *"sandcastle: #1506 — Settings → Brand kit wears the founding page's anatomy; button reads 'Apply'"*, Ben's 2026-09-16 ruling off the Whakatōhea Demo — re-cut `dashboard/src/components/shell/BrandKitScreen.vue`'s colours block to the founding anatomy (FoundingBrandKit.vue, DDR 0130 + DDR 0227). Its own message: *"The preset swatch grid + `oc-btn3 oc-setcolour` composite are removed"* and *"drop the now-unused presetColours prop / PALETTE_PRESETS wiring"*. The template now carries a standing comment saying so — `BrandKitScreen.vue:52-53`: *"The preset swatch row is gone — what an operator sees at founding and here in Settings is one screen."* `ecab2b0f` is an ancestor of the drive's commit `7759b45d` (`git merge-base --is-ancestor` exits 0), so the box carried bits with no swatch row. `grep -rn 'data-action="palette-' dashboard/src app/src` returns nothing — the selector matches no element in either app. `PALETTE_PRESETS` still stands at `dashboard/src/lib/brandkit.ts:54-60` (Navy `#2C4770` at :57) but is now imported by nothing in `dashboard/src` or `app/src`; it is dead data, not a rendered palette. **The box agrees, in the drive's own snapshot.** `artifacts/journey.rented-services-pr-f12e2-journey-on-a-rented-gateway/error-context.md:47-60` is the editor as it rendered at the moment of failure — the new anatomy, no swatches: ``` - text: Colours PRIMARY - textbox: "#619793" - textbox "#619793" - text: SECONDARY - textbox: "#000000" - textbox "derived" - text: derived from your primary until you pick one Primary is for buttons and the things you act on… … - alert: - paragraph: "normalize kit: accent: invalid hex colour \"\"" - button "Apply" ``` The alert corroborates the mechanism: the PRIMARY hex textbox is EMPTY (`#619793` is its placeholder, `BrandKitScreen.vue:76`), because founding lands compiled artifacts but writes no `idss/brand-kit.json` — exactly what the fixture's own comment at `provision.ts:1787-1788` records. Nothing ever set the accent, so `Validate` is already refusing the draft. No ssh to the live box was needed or taken: this is a missing DOM node in the operator dashboard's own bundle, and the snapshot is the whole answer. **The stale fixture.** `app/tests/e2e/fixtures/provision.ts:1791-1798`: ```ts // The new accent off the preset palette — the same seam-compile path as a custom // pick (BrandKitScreen.onPickColour). const swatch = editor.locator(`[data-action="palette-${kit.accent}"]`); await expect( swatch, `no preset swatch for ${kit.accent} — pick one the palette offers`, ).toBeVisible(); await swatch.click(); ``` Its doc comments carry the same dead contract: `provision.ts:1772-1774` (*"The accent is picked off the preset palette (`data-action="palette-<hex>"`, BrandKitScreen.vue)"*), `:1757` (*"a preset hex the swatch palette offers"*) and `:306` (`REAPPLY_ACCENT`'s *"the `#2C4770` preset"*). **Blast radius — two drives, not one.** `reapplyBrandKitInSettings` has two callers: `app/tests/e2e/journey.rented-services.spec.ts:670` (this drive's leg 18b) and `app/tests/e2e/settings-brand-reapply.live.spec.ts:153` (the #365 re-apply drive). Both are red on this selector until the fixture is repaired; the kept-demo profile is unaffected, as it filters `panel-apply` out (`app/tests/e2e/fixtures/demoProfile.ts:76`). ## Suspected layer Harness/fixture, not product. The product is doing what #1506 ruled it should; the e2e fixture was not carried along in that commit. `ecab2b0f` updated `dashboard/tests/unit/brandKitTheming.test.ts` to the new anatomy but left `app/tests/e2e/fixtures/provision.ts` pointing at the removed grid — the drift went unnoticed for two days because `panel-apply` only runs on a paid rented-box drive. ## The proposed repair Drive the accent through the control DS2 now offers, which is the same seam-compile path (`BrandKitScreen.onEdit` → validate → debounced compilePreview → the draft Apply commits) the swatch drove via `onPickColour`. The exact idiom already exists in this repo for founding's identical anatomy — `app/tests/e2e/fixtures/wizard.ts:150-153`: ```ts await live.page.waitForSelector('[data-action="open-picker"]'); await live.page.fill('[data-field="custom-hex"]', brand.primary); await expect(live.page.locator('[data-field="custom-hex"]')).toHaveValue(brand.primary); ``` So `provision.ts:1791-1798` becomes: locate `editor.locator('[data-field="custom-hex"]')`, guard it visible, `.fill(kit.accent)`, and read it back with `toHaveValue(kit.accent)` before clicking Apply. The value the LEG proves is untouched — `assertNextcloudTheming` still reads `primary_color` off the live guest's `occ config:list theming` and still demands `REAPPLY_ACCENT` (`#2C4770`), a value founding's `#619793` kit could never land. `REAPPLY_ACCENT` itself should NOT change. The three stale doc comments (`:306`, `:1757`, `:1772-1774`) want updating in the same commit so the next reader is not sent back to the palette. ## Which refusal rule fired, and why **Rule 1 (would weaken a check).** Any correct fix must remove `expect(swatch, 'no preset swatch for …').toBeVisible()` at `provision.ts:1794-1797`, and there is no byte-for-byte twin to re-add — the replacement guard asserts a DIFFERENT subject (`[data-field="custom-hex"]` rather than `[data-action="palette-<hex>"]`). That is a removed assertion whose subject changed, not a move, so the healer rails would refuse it. The only way to satisfy the line exactly as written is to put the preset swatch grid back into `BrandKitScreen.vue` — which is the design #1506 deliberately removed, tripping **rule 3** (a product-surface design/one-way decision) as well. The ruling wanted is narrow: confirm the fixture should FOLLOW #1506 (the swatch row is gone for good, and the PRIMARY hex field is the sanctioned equivalent drive), rather than #1506 having lost an affordance the re-apply arc still needs. Everything downstream of that ruling is mechanical and precedented. drive `20260918T173924Z` red at `panel-apply`: `no preset swatch for #2C4770 — pick one the palette offers expect(locator).toBeVisible() failed Locator: locator('[data-field="brand-kit-editor"]').locator('[data-action="palette-#2C4770"]') Expecte` evidence: `/home/dev/swarm/Matou/idss/test-results/drive-rented-services/20260918T173924Z` on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured <!-- rehearsal-sig: 5cd1743c164b -->
Owner

Claimed by the #1547 babysitting session (Claude, Ben's laptop): the fixture types the accent into the PRIMARY hex field ([data-field="custom-hex"], the same fill founding's wizard fixture uses) instead of clicking the deleted preset swatch. Landing now; this ticket closes through the API when it is on main.

Claimed by the #1547 babysitting session (Claude, Ben's laptop): the fixture types the accent into the PRIMARY hex field (`[data-field="custom-hex"]`, the same fill founding's wizard fixture uses) instead of clicking the deleted preset swatch. Landing now; this ticket closes through the API when it is on main.
Owner

Landed on main as df08e6c6: reapplyBrandKitInSettings fills [data-field="custom-hex"] with the accent and asserts the value, instead of clicking the removed palette-<hex> swatch. Type-check clean; fixture unit tests pass. Live proof is the next #1547 fire (panel-apply). Closing so the drive re-fires.

Landed on main as `df08e6c6`: `reapplyBrandKitInSettings` fills `[data-field="custom-hex"]` with the accent and asserts the value, instead of clicking the removed `palette-<hex>` swatch. Type-check clean; fixture unit tests pass. Live proof is the next #1547 fire (`panel-apply`). Closing so the drive re-fires.
ben closed this issue 2026-09-18 18:33:34 +00:00
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#1593
No description provided.