feat: per-finger key colouring and current-key highlight#10
Merged
Conversation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Resolve the layout before generating the target and pop the screen from on_mount instead of compose, so an invalid layout backs out to the menu without deadlocking the settling screen stack. Refresh the README install instructions and bump the lockfile to 0.2.0. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Live stats widget renders net WPM and running error count per keystroke. Follows the dumb-view pattern of LessonGuide: holds computed values and exposes pure render_text() for testability without a terminal. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Drop the redundant LiveStats persistence test and assert exact zero WPM for a single keystroke instead of a non-informative lower bound. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Show a LazyVim-style start screen: a centered TYPEHERO wordmark and a muted tagline with the running version and cleared-lesson count above the lesson list. The version is read from package metadata so it tracks pyproject. Bump the package to 1.0.0. Release-As: 1.0.0 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Pin the course layout to a LayoutName StrEnum and reject unknown layouts, malformed tips, and non-typable target chars in the content loader. Enforce KeyboardLayout/Key invariants (single-char keys, trailing space row, no duplicate chars) and let LessonGuide render a tip without a principle. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <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.
What this does
Adds a finger-map widget to lessons so the trainee can see which finger to use for the next key, with the current key highlighted as they type.
domain/layout data + lookup).FingerMapwidget renders the keyboard with per-finger colouring and a shift hint.TypingViewexposes the current character and posts aCursorMovedmessage; the first character is highlighted on mount, and backspace moves the highlight back..gitignore: ignore Claude Code local settings and the scheduled-tasks lock file.Base branch
Targets
main(notfeature/core-engine): this branch forked frommainat24819f8, so againstmainthe diff is exactly the ten finger-map commits.feature/core-enginelacks the already-merged release/content PRs and would produce a noisy diff.Tests
Unit tests cover layout lookup (including the error path via
pytest.raises), per-finger and space-key highlighting, the FingerMap widget, andCursorMovedon mount and on backspace.🤖 Generated with Claude Code