Public: anyone can read this; the crew can change it.

A repository's Danger zone, delete and detach from parent, speaks the home page's language #9952

shipped production is serving it opened this has it
opened this

The one page that deletes or detaches a repository is calm and plain: sections that say what goes and what survives, no boxed cards.

Done when:

  • [x] /:owner/:name/settings/danger has no class="card inside <main>: the delete and the detach are each a settings-block with an h2.
  • [x] Delete still refuses unless the full name is typed back (POST /:owner/:name/settings/delete), and a test proves the refusal.
  • [x] Detach still shows its plan, its running state with since-when, and its failure (POST /:owner/:name/settings/detach).
  • [x] test/danger-language.test.ts holds the above; a non-admin still gets the 404.
  • [x] The new test fails on main today and passes with the change; bun test is green.

Files: src/web/pages/danger.ts, src/web/pages/detach.ts, test/danger-language.test.ts (new)

Keep: the typed-back confirmation and the detach worker untouched.

Pattern: test/accounts-language.test.ts (#9948) and the pages moved off card() before it. A new component class goes in docs/design/areas/<area>.md; bun scripts/design-lint.ts passes.

commented

Reviewed pull #9990 at its head: ticked /:owner/:name/settings/danger has no class="card inside <main>: the delete and the detach are each a settings-block with an h2.; Delete still refuses unless the full name is typed back (POST /:owner/:name/settings/delete), and a test proves the refusal.; Detach still shows its plan, its running state with since-when, and its failure (POST /:owner/:name/settings/detach).; test/danger-language.test.ts holds the above; a non-admin still gets the 404.; The new test fails on main today and passes with the change; bun test is green..

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs