Add five new preset routes to RouteEditor component#37
Open
DigitalBlueprint239 wants to merge 5 commits into
Open
Add five new preset routes to RouteEditor component#37DigitalBlueprint239 wants to merge 5 commits into
DigitalBlueprint239 wants to merge 5 commits into
Conversation
❌ Deploy Preview for magical-starlight-0c1207 failed.
|
- Fix redo() stack ordering bug: was prepending to undoStack instead of appending, causing undo after redo to restore the wrong state - Cap undo stack at 50 entries to prevent unbounded memory growth - Keyboard shortcuts (Ctrl+Z, Ctrl+Shift+Z/Ctrl+Y) already wired correctly - localStorage correctly excludes undo/redo stacks https://claude.ai/code/session_01D8rPa1L5VCgc5Szikq5BCZ
ErrorBoundary already existed and was wired throughout the app. Added a "Try Again" button that resets error state without a full page reload, complementing the existing "Reload Page" button. https://claude.ai/code/session_01D8rPa1L5VCgc5Szikq5BCZ
When hovering over a preset route button in the RouteEditor, a ghost preview renders on the canvas from the selected player's position: - Cyan (#00D4FF) dashed line at 40% opacity with arrowhead - Drawn after routes but before players in the canvas draw order - Only appears when a player is selected - Clears instantly on mouse leave and on click (route assignment) - No persistent state modified; previewRoute excluded from localStorage https://claude.ai/code/session_01D8rPa1L5VCgc5Szikq5BCZ
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.
Summary
Expanded the preset routes available in the RouteEditor component by adding five new football route types commonly used in offensive playbooks.
Key Changes
PRESET_ROUTESarray:Implementation Details
Each route is defined with a unique ID, display name, and an array of coordinate points that define the route path on the field. The routes follow the existing coordinate system where positive X is horizontal movement and negative Y represents depth downfield.
https://claude.ai/code/session_01D8rPa1L5VCgc5Szikq5BCZ