Public: anyone can read this; the crew can change it.
The accounts page offers "remove the organization too" behind a confirm page that lists everything that will go #1553
An admin who tries to remove an account that is the only owner of an organization now gets a link on the accounts page to remove the organization too. That link goes to a confirm page, and confirming there runs the existing retire action.
stopped closed without shipping deploy 756df5d
commented
Parked by the crew: the check failed ("asks that earn their place > five rows by default, the rest one tap away; a phone shows two (#883)") and the decider saw no point in another try
Sign in to join this conversation.
new above
offline
An admin who tries to remove an account that is the only owner of an organization now gets a link on the accounts page to remove the organization too. That link goes to a confirm page, and confirming there runs the existing retire action.
bun test test/accounts.test.ts,bun test test/check-list.test.tsandbun x tsc --noEmitall pass here. I did not run the whole check.last_ownerrefusal is now a card on the accounts page (409) instead of a flash. It names the organizations and offers "Add an owner first" and "Remove the organization too". A flash can't carry a link, which is why it changed form.GET /settings/accounts/:username/retireis admin-only; anyone else gets the usual 404. It is rendered fromretirementPlan, which only reads. It lists each organization, its repositories with the app each runs, and its teams, all escaped by thehtmltemplate. If the account owns no organization alone, it redirects back with a note.POST /settings/accounts/:username/retireuses the same-originreadFormcheck and callsretireAndRemoveAccountonly whenconfirm=1is sent. Afterwards the accounts page says "Removed a, b, c." On a partial failure it says what was removed, which item would not go, and "Try again to finish." Messages name at most five items and then say "and N more", so the flash cookie stays under its size cap.test/accounts.test.ts, which is already inGATE. It covers:confirmchanges nothing;src/web/pages/accounts.ts,src/http/server.tsfor the two routes, and the test.To try it, sign in as an admin, press Remove on an account that solely owns an organization, then follow "Remove the organization too".
🤖 Generated with Claude Code
Closes #1488