WFDASHDRIVER-APP/lib
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
..
pocketbase.ts Add driver trail polyline and toggle 2026-05-25 01:33:54 +02:00
types.ts Refactor collections to order items 2026-05-25 00:47:47 +02:00
utils.ts feat: update collection and supplier handling across components 2026-05-24 22:31:35 +02:00