Skip to content

Add five new preset routes to RouteEditor component#37

Open
DigitalBlueprint239 wants to merge 5 commits into
masterfrom
claude/add-missing-routes-TKdeN
Open

Add five new preset routes to RouteEditor component#37
DigitalBlueprint239 wants to merge 5 commits into
masterfrom
claude/add-missing-routes-TKdeN

Conversation

@DigitalBlueprint239

Copy link
Copy Markdown
Owner

Summary

Expanded the preset routes available in the RouteEditor component by adding five new football route types commonly used in offensive playbooks.

Key Changes

  • Added five new preset routes to the PRESET_ROUTES array:
    • Flat: A shallow horizontal route (30 yards out, -5 yards deep)
    • Comeback: A vertical route that breaks back toward the quarterback (65 yards deep, 15 yards back)
    • Curl: A vertical route with an inward break (-45 yards deep, -5 yards in)
    • Wheel: A curved route combining horizontal and vertical movement (35 yards out, -60 yards deep)
    • Screen: A short route behind the line of scrimmage (30 yards out, 5 yards back)
  • Updated the route selection dropdown to include all five new route options

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

@netlify

netlify Bot commented Mar 23, 2026

Copy link
Copy Markdown

Deploy Preview for magical-starlight-0c1207 failed.

Name Link
🔨 Latest commit 581dfd2
🔍 Latest deploy log https://app.netlify.com/projects/magical-starlight-0c1207/deploys/69c1cae7fd77d00008e17e99

claude added 4 commits March 23, 2026 17:19
- 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
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