Repository navigation
Grape waits until you stop writing before it underlines words - #418
Merged
Merged
Conversation
The page in view was read for misspelt and misread words 1 s after the pen lifted, so a pause inside a word underlined it half written. It now waits CHECK_QUIET_MS (3 s) from the last lift, a pen landing clears the wait, and a check the pen interrupted shows nothing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…eps taps working WordCheckTimer (pure, tested) holds the one waiting check, so ink-view stays within its cap. A check the pen interrupts before showing leaves the old entry and underlines alone; one interrupted after showing keeps its entry, marked stale, so taps still answer and the next rest checks again. A wiring test drives penActivity: nothing at 1 s, restarted by a stroke, read 3 s after the last lift. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… test builds the field Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Not verified on device. Joost's report was not reproduced on the iPad; the cause was read from the code (the check ran 1 s after the pen lifted), and the fix is pinned by tests.
What changed and why
Grape underlined misspelt or misread words 1 second after the Pencil lifted, so a pause inside a word got it underlined half written. The page in view is now checked only after the Pencil has been up 3 seconds, and every stroke starts that wait again. If the Pencil lands while a check is still working out its underlines, it shows nothing new and checks again at the next pause. Reported in Joost's "FineNotes bugs and improvements" notebook.
Proof
tests/view/ink-view-file.test.ts› "checks words 3 s after the last lift, and writing on restarts the wait": drivespenActivity; nothing is read at 1 s, a stroke at 2 s restarts the wait, the read comes 3 s after the last lift. Fails with the oldpenQuietcheck put back (checked).tests/view/word-check-timer.test.ts(new pure moduleWordCheckTimer),tests/view/write-hold.test.ts(CHECK_QUIET_MS,checkQuietIn).npm run gatespasses.ink-view.tsstays under its cap (10199/10200): the timer moved into its own module.Test on the device
Not verified
CHECK_QUIET_MSinwrite-hold.ts).🤖 Generated with Claude Code