Skip to content

v1.6.9 - the confirmation follows the panel theme

Choose a tag to compare

@stallenlu stallenlu released this 13 Nov 10:52
· 5 commits to main since this release

What changed

The one white box left in a dark panel is gone.

The confirmation used to be window.confirm, which the browser draws outside the document: it cannot see color-scheme, the dsh-design-baseline tokens or the host's dark theme, so a dark panel got a light rectangle in the middle of it.

It is now a dialog the panel draws itself:

  • the same information — how many targets, how much in total, every target with its size, and anything irreversible called out separately
  • painted with --dsb-*, so it follows light and dark exactly like the rest of the panel
  • dismissible with Escape, a click on the overlay, or Cancel
  • the destructive button deliberately holds no focus, so a stray Enter cannot delete anything
  • the plan-step confirmation goes through the same component, so a plan step and the main button ask the same question the same way

No behaviour change beyond the painting: the same ids, the same ages, the same guards.

Verification

  • node smoke.mjs — 114 assertions, 0 failed
  • A render probe drives the real component tree through scan → select → click → cancel → confirm, asserting the dialog appears, lists the targets, shows the irreversible line, sends nothing on cancel, and sends exactly one clean with confirm: true on confirm
  • dsh-design-baseline check.mjs: PASS (no hardcoded neutral, no private accent, no unknown --dsb- token)
  • Origin gate re-checked: all 11 cases pass, including the localhost origin that 1.6.7 got wrong

Install

dsh plugin --profile <profile> add dsh-disk-cleaner

Or the prebuilt tarball attached below, which skips DSH's build-approval step.