Skip to content

Move patch alignment into whiteboard-document - #1509

Merged
thesiti92 merged 2 commits into
mainfrom
patch-rows
Nov 4, 2026
Merged

thesiti92 merged 2 commits into
mainfrom
patch-rows

Conversation

@thesiti92

@thesiti92 thesiti92 commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

textualRows projected a unified patch onto the base/head line pairs that resolveDiffSelection reads, but lived in the server package, so a hosted board had to carry its own copy. It is now patchRows in @dev.fast/whiteboard-document, beside resolveDiffSelection and AlignmentRow, parsing the hunk headers itself and skipping git's file headers.

whiteboard-document 0.2.2 and board-protocol 0.1.4, published together: board-protocol's types bake in the document's block schema, so a consumer on mixed versions sees two Edit types. Consumer: devdotfast/cloudboard#74's sources route drops its port.

`textualRows` projected a unified patch onto the base/head line pairs that
`resolveDiffSelection` reads, but lived in the server package, so a
hosted board had to carry its own copy. It is now `patchRows` in
`@dev.fast/whiteboard-document`, beside `resolveDiffSelection` and
`AlignmentRow`, parsing the hunk headers itself and skipping git's file
headers. whiteboard-document 0.2.2.
Its types bake in the document's block schema, so the two move together.
@thesiti92
thesiti92 enabled auto-merge (squash) November 4, 2026 14:54
@thesiti92
thesiti92 merged commit e0d0e3c into main Nov 4, 2026
3 checks passed
@thesiti92
thesiti92 deleted the patch-rows branch November 4, 2026 14:57
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.

2 participants