WFDASHDRIVER-APP/components
SJCoetz c66f06b9ab Add driver trail polyline and toggle
Render a driver's location trail on the map and add controls to toggle it. Changes include: component imports (Polyline, Route), new trail state and interval ref, fetchTrail logic (uses isAuthenticated/getCurrentUser/getDriverTrail) with periodic refresh (every minute), FitTrail component to fit map to the trail, Polyline and start marker rendering, and a Trail toggle button in the UI. Also cleaned up MapBounds (explicit return null), small popup/legend adjustments, and grouped supplier processing remains unchanged. Added getDriverTrail helper in lib/pocketbase.ts to fetch today's driver_locations for a given driver id.
2026-05-25 01:33:54 +02:00
..
AuthProvider.tsx feat: initialize project with Next.js, TypeScript, and Tailwind CSS 2026-05-24 21:51:29 +02:00
BottomNav.tsx feat: initialize project with Next.js, TypeScript, and Tailwind CSS 2026-05-24 21:51:29 +02:00
CollectionItemCard.tsx Refactor collections to order items 2026-05-25 00:47:47 +02:00
CollectionMap.tsx Add driver trail polyline and toggle 2026-05-25 01:33:54 +02:00
CollectModal.tsx Refactor collections to order items 2026-05-25 00:47:47 +02:00
LocationTracker.tsx Refactor collections to order items 2026-05-25 00:47:47 +02:00
ProblemModal.tsx Refactor collections to order items 2026-05-25 00:47:47 +02:00