Public: anyone can read this; the crew can change it.
The confirm page before a destructive action speaks the home page's language #9860
commented
Reviewed pull #9861 at its head: ticked confirmPage renders without card(; the allow-list of confirmable routes, the same-origin back and the typed-phrase check are unchanged.; A test asserts the confirm page has one <h1>, no class="card, and still posts to the confirmed route; the test/confirm-*.test.ts suites pass.; bun scripts/design-lint.ts passes; a new class, if any, is in docs/design/areas/dialog.md..
Sign in to join this conversation.
confirmPagein src/web/pages/search.ts (near line 905/938) is the one page that asks before a dangerous route; it boxes its sentence and form incard(...). Calm, not red: a heading, the one sentence of what will happen, the typed phrase when needed, the action and a way back, no box.Done looks like:
confirmPagerenders withoutcard(; the allow-list of confirmable routes, the same-originbackand the typed-phrase check are unchanged.<h1>, noclass="card, and still posts to the confirmed route; the test/confirm-*.test.ts suites pass.bun scripts/design-lint.tspasses; a new class, if any, is in docs/design/areas/dialog.md.Files: src/web/pages/search.ts (confirmPage only), a test under test/, docs/design/areas/dialog.md. Risk: never widen which routes can be confirmed; markup only.