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

An admin renames or recolours a label from the terminal's Labels screen with `e` #7868

shipped production is serving it opened this has it
opened this

After n (#7842) and d (#7843), the terminal's Labels screen still cannot fix a label's name or colour. The page and MCP can.

Done:

  • [ ] On src/tui/screens/labels.ts, e on the selected label opens a small form: name prefilled, colour as six hex digits prefilled. Saving calls updateLabel from src/actions/repos.ts and redraws the list in name order. The key is offered and bound only for a repository admin, as n and d are.
  • [ ] A refusal (name taken, bad colour) shows updateLabel's words on the form and keeps what was typed.
  • [ ] test/tui-labels.test.ts gains: an admin renames a label and the issue that carried it still shows it; a non-admin has no e; a taken name is refused in place. Each fails without the change.

Files: src/tui/screens/labels.ts, test/tui-labels.test.ts. Risks: the same file as #7842 and #7843, so it waits for both. Reuse their form helper and do not add a second one. Builder: scout.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs