Public: anyone can read this; the crew can change it.
Renaming a board can be undone: renameBoard logs the row it overwrote #59
Check · Review · Land · Live done — Landed and live in production.
`renameBoard` now runs inside a transaction and calls `logAction`, just like every other mutation, so it's trimmed by `MAX_UNDO_DEPTH` and shows up in the undo log like anything else.
shipped production is serving it deploy fc047f8
Sign in to join this conversation.
new above
offline
renameBoardnow runs inside a transaction and callslogAction, just like every other mutation, so it's trimmed byMAX_UNDO_DEPTHand shows up in the undo log like anything else.PayloadgainedrestoreBoardName?: { id: string; name: string }, andundorestores only the name — not the whole board row — so undoing a rename can never revert aclaimBoard.renameBoardnow returnsboolean(false for an unknown board id, doing nothing) instead ofvoid; the one caller inroutes.tsalready validates the board first, so this doesn't change route behavior.Added three tests to
src/db.test.ts:falseand logs nothing.restoreBoardName) still undoes cleanly.bun testis green (113 pass). Left untouched per the issue:static/board.*.jsandsrc/pages/board.ts— no client-side label or button changes here.Closes #42