feat: Monkeytype-style gliding caret with continuous word flow - #23
Merged
Conversation
Replace the single-word FocusLens with a TypingFlow component that renders the whole drill as a wrapping paragraph, and draw a single absolutely positioned caret that glides between characters (measured transform + CSS transition) instead of jumping inline. - Caret is solid while typing and blinks again after ~1s idle. - New persisted caretStyle setting: line / block / underline / off, with a control in the settings panel. - Remove the now-redundant "show adjacent words" setting (every word is always visible in the flow); reuse its slot for the caret style. - 3-line windowed scroll follows the active line for longer drills. - prefers-reduced-motion still collapses the glide and blink to instant. Per-word input model and stats are unchanged; this is a presentation-only rewrite. Coverage: TypingFlow cell states, committed/upcoming colouring, Thai cluster integrity, caret shapes, and a post-mount measurement check. https://claude.ai/code/session_01S4KZHE24V1onqrcZEnDP28
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Replace the single-word FocusLens with a TypingFlow component that renders the whole drill as a wrapping paragraph, and draw a single absolutely positioned caret that glides between characters (measured transform + CSS transition) instead of jumping inline.
Per-word input model and stats are unchanged; this is a presentation-only rewrite. Coverage: TypingFlow cell states, committed/upcoming colouring, Thai cluster integrity, caret shapes, and a post-mount measurement check.
https://claude.ai/code/session_01S4KZHE24V1onqrcZEnDP28