No description
  • JavaScript 96.9%
  • CSS 2.9%
  • HTML 0.2%
Find a file
Matt 317bc15087 fix: separate stops[] from routeStart/routeEnd for multi-stop routing
- stops[] now contains ONLY intermediate waypoints
- routeStart and routeEnd are separate sources of truth
- addIntermediateStop() adds empty placeholder to stops[]
- updateStop() and removeStop() manage intermediate waypoints
- computeRoute() chains sequential 2-point routes for multi-stop
- DirectionsPanel renders: origin -> stops.map() -> destination
- Each intermediate stop has remove button (Trash2 icon)

Test scenarios verified:
- Origin + destination routes normally (no stops involved)
- Add Stop creates empty input between origin and destination
- Setting intermediate location triggers route recalculation
- Multiple stops can be added sequentially
- Removing a stop recalculates route without it
- Clear all returns to empty state

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-05-09 14:59:31 +00:00
frontend fix: separate stops[] from routeStart/routeEnd for multi-stop routing 2026-05-09 14:59:31 +00:00