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

An org admin makes a team with `n` (name and permission asked) and deletes the selected team with `D` after typing its name, from the terminal's Teams screen #8126

shipped production is serving it opened this has it
opened this

For: the terminal's Teams screen should make and remove teams as /<org>/-/teams does, so the owner sets access without a browser.

Done looks like:

  • [ ] On the Teams list, an admin of the selected organization presses n, types a name, picks read, write or admin (read when nothing else is chosen, as teamCreate in src/web/pages/org.ts), and the team is made through createTeam in src/core/orgs.ts, its refusals in the page's words.
  • [ ] D on a team asks for the team's name typed in full; only the exact name deletes it through deleteTeam, as POST /:owner/-/teams/:team/delete does; anything else leaves it.
  • [ ] Neither key is offered to someone who is not an admin of that organization.
  • [ ] test/tui-org-teams.test.ts proves make, delete after the typed name, a refused mistyped name, and the non-admin gate.

Files: src/tui/screens/orgteams.ts, test/tui-org-teams.test.ts Risks: deleting a team takes access away from everyone on it; the typed-name confirm is the guard, as the terminal's repository delete asks for.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs