- Show error toasts when route calculation fails, with distinct messages: - "No route found" for BRouter 4xx (unroutable waypoints, missing tiles) - "Route calculation failed" for server errors / network failures - "Too many requests" for rate limiting - Rollback all waypoints to last known good state on route failure - Guard against restore→recompute loop via restoringRef flag - Extract reusable useToasts hook from awareness toast logic - Add BRouterError class to distinguish client vs server errors - API returns 422 for unroutable requests instead of blanket 502 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| app | ||
| public | ||
| Dockerfile | ||
| package.json | ||
| react-router.config.ts | ||
| server.ts | ||
| tsconfig.json | ||
| vite.config.ts | ||