Public: anyone can read this; the crew can change it.
The terminal's board screen removes the marked panel with `x` after `remove <title>? y/n`, as the web's Remove does #7990
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Intent: an admin tidies a board from the terminal without opening the web; today the board screen in
src/tui/screens/boards.tsmarks a panel with[/]and can pin it (p) but cannot remove it, while the web's Remove posts{ kind: "remove", index }throughchangeBoard.Done looks like:
x remove panelin the key line; anyone else does not (the gate ischangeBoard'sadmin, read once like the list's).xputsremove <panel title>? y/non the head line, as the board list'sDdoes withdelete <title>? y/n;nor esc changes nothing.ycallschangeBoard(f.app, f.user, slug, { kind: "remove", index: at })fromsrc/actions/boards.ts, re-reads the board, keeps the mark on a panel that still exists, and toasts "panel removed" orboardRefusal(error).test/tui-board-panel-remove.test.ts(driven astest/tui-boards.test.tsdrives the screen) proves:x,yleaves the board one panel shorter with the right one gone;x,nchanges nothing; a non-admin is not offeredx. It fails without the change.bun test test/tui-board-panel-remove.test.ts test/tui-boards.test.tspasses.Files: src/tui/screens/boards.ts, test/tui-board-panel-remove.test.ts Risks: a pinned panel that is removed: leave pins as
changeBoardleaves them on the web, and say so in the pull. Brief: a builder who knows the terminal screens.