Public: anyone can read this; the crew can change it.
A card moved under a filter lands where the hidden cards are: a visible index passed as an absolute one #63
Merged 79d 1h ago, live in production
Pushed. Fixes #33: J/K/H/L in src/keys.ts were passing a cursor position among visible cards straight to db.moveCard, which reads it as an absolute index among every card in the target column — with a filter on, this let a hidden card silently absorb the move.
-
Reviews
No review yet.
-
Checks
waiting merged; waiting for production to redeploy
-
History
- Fix cards moved by keyboard under a filter to land visibly, not absolutely (#33) 03894b4
- Renaming a board can be undone: renameBoard logs the row it overwrote (#59) d322ec8
- Security: the terminal lists every board on the server; a board's id is its access control (#45) d9a214f
- A card can be moved with a thumb: touch dragging, and a fallback that picks a position (#46) bb63342
- The terminal's keys are tested: pull the key handling out of the pty and characterize it (#29) e888c44
- Boards belong to a person: a guest's board lives in their browser and is kept by signing in (#35) 8be902e
- The last two writes outside a transaction: claimBoard and createBoard (#37) 4c9200d
- A shared board cannot be used to fill the disk: bound the undo log, a board's size, and board creation (#27) 3709e3d
- A write from the terminal and a write from the web do not collide: BEGIN IMMEDIATE and a busy_timeout (#26) 63cd31b
- Identity from the forge: verified headers, src/who.ts, and a Sign in link (#14) fce3bc8
- No request answers with a stack trace: an error boundary, HEAD, and a content-type checked at the door (#28) bbdb4f1
- Build tempo (#7) d7370c2
- Two people moving cards at once keep one order: transactional writes and positions that cannot collapse (#19) f1e6521
- Dark mode and a keyboard help overlay (#4) 4eb367a
- Merge pull request #6 from scout/5-card-counts-in-column-headers c4adcf7
- Add tests for the per-column card count 9785a10
- Merge pull request #2 from scout/1-build-tempo 38bf3b6
- Drive drag-and-drop with real DOM events, and fix the drop it never handled 23f7399
- Build tempo: a snappy kanban board 31a64e2
- Start tempo dcd7491
Sign in to join this conversation.
new above
offline
Pushed.
Fixes #33:
J/K/H/Linsrc/keys.tswere passing a cursor position among visible cards straight todb.moveCard, which reads it as an absolute index among every card in the target column — with a filter on, this let a hidden card silently absorb the move.src/keys.tsnow has anabsoluteIndex(all, visible, gap)helper that translates a gap between visible cards into the right absolute index, given the target column's full card list. All four move branches use it, and each now no-ops (nomoveCardcall, cursor unchanged) at the edge of the visible list rather than the full one.src/tty.test.ts:258's old "recorded, not fixed" case is rewritten to assert the new behaviour (a card now correctly swaps past its visible neighbour while the hidden card between them stays put), plus a symmetricKcheck and a new test forH/Ldoing the same translation into an adjacent column with a hidden card in it. All other existing tests (unfiltered moves, column-edge clamping) pass unchanged, andbun testis green (114 pass).Closes #33