Skip to content

Boards: insert space with the by-line lasso (#276) - #292

Merged
Joost-8 merged 2 commits into
mainfrom
claude/issue-276-board-insert-space-5af52f
Nov 22, 2026
Merged

Joost-8 merged 2 commits into
mainfrom
claude/issue-276-board-insert-space-5af52f

Conversation

@Joost-8

@Joost-8 Joost-8 commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

For discussion #276: insert space on boards.

Boards have no writing lines, so the lasso's By line type fell back to a rectangle there. On a board it now inserts space:

  • Press anywhere and drag down: everything that starts below the pen moves down, across the whole board, in whole steps of the paper's spacing (dots 40 px, squares 28 px, blank 40 px). Drag right instead to push things right; the first direction of the drag picks.
  • Drag back (up or left) to close empty space; it never closes over anything drawn.
  • Everything moves: ink, pictures, sticky notes with their ink and text, text boxes, tables, graphs, equations, comments, headings, named regions. Snapped straight lines and arrows across the line stretch, so mind-map branches stay joined. Locked pictures stay. Handwriting across the line stays, as on lined paper.
  • One undo step (ShiftBoardSpace). The board grows to hold what was pushed by its usual rule.
  • While the tool is on, the notebook's margin arrows stand in one column at the view's left edge. No new controls.

Also: paper without lines, and the arrows

  • Notebook pages with no lines (blank, dotted, squared, planners) had the same fallback. They now insert space the board's way too, inside the page: nothing is pushed past the page's edge, and the readout says "No room left on this page" when nothing fits. PDFs and covers keep the old fallback.
  • The insert-space arrows sit in a soft accent rail with smaller chevrons, on lined paper too (styles.css).

Review page (before/after gallery shots, decisions): https://claude.ai/artifact/Wad2if4nqjAVPzm5Cn5h56

Code

  • src/model/board-space.ts (new, pure): planner, command, strip, step. 13 tests in tests/model/board-space.test.ts.
  • src/view/ink-surface.ts: dragBoardSpace, planBoardSpaceFor, boardSpaceColumn; 4 tests in tests/view/ink-surface.test.ts.
  • Two English readouts, guide entry (guide/04-on-the-page.md + generated data), CHANGELOG.

How to test

  1. Open a board (dotted paper is easiest to see), draw a small mind map: a topic, a few boxes below it joined by straight lines (hold the pen to snap them), a sticky note.
  2. Lasso › type By line. A column of up/down arrows appears at the left edge and stays there as you scroll.
  3. Press between the topic and the boxes and drag down: a dashed band across the board shows the space; the readout says "Insert space". Let go: the boxes, their text and the note move down; the lines stretch and stay joined.
  4. Undo: everything returns exactly. Redo.
  5. Press below the boxes and drag up: the empty space closes, never over the boxes. Under ink it says "No empty space to remove here".
  6. Drag right from a point left of some content: that content moves right.
  7. A tap with By line still selects; a notebook page with lines behaves as before (with the new arrow rail).
  8. On a squared or dotted notebook page: press anywhere and drag down; things move by whole squares. Near the bottom of a full page, the push stops at the edge. On a PDF page, By line still drags a rectangle.

Not yet tried on the iPad. Gates: lint, lint:review, lint:css, typecheck, tests (9927), build all green locally. Branch is on 941ac42; merges cleanly with main at 353dbd2.

🤖 Generated with Claude Code

Joost-8 and others added 2 commits November 21, 2026 23:47
A board has no lines, so By line fell back to a rectangle lasso there.
On a board it now inserts space: press anywhere and drag down (or right)
to push everything that starts past the pen across the whole board, in
whole steps of the paper's spacing; drag back to close empty space, never
over anything drawn. Every element kind moves (sticky notes with their
ink and text, comments, headings, regions); snapped straight lines and
arrows across the line stretch so branches stay joined; locked pictures
stay. One invertible ShiftBoardSpace command, planned by the pure
src/model/board-space.ts. The notebook's margin arrows stand in one
column at the view's left edge while the tool is on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
By line on a notebook page with no lines (blank, dotted, squared, planners)
fell back to a rectangle lasso, as it did on boards. It now inserts space
the board's way: press anywhere, drag down or right, by whole steps of the
paper, never pushing anything past the page's edge ("No room left on this
page" when nothing fits). Not on PDFs, whose notes belong by the printed
words, nor on covers. One column of arrows in the page's margin shows it.

The insert-space arrows sit in a soft accent rail, with smaller, cleaner
chevrons, on lined paper too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Joost-8
Joost-8 merged commit d87fcd2 into main Nov 22, 2026
1 check passed
@Joost-8
Joost-8 deleted the claude/issue-276-board-insert-space-5af52f branch November 22, 2026 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant