From 4fb2fe683b75464917dec4b1a0aaee63830f3b9a Mon Sep 17 00:00:00 2001 From: Ariel Costas Guerrero Date: Sun, 28 Dec 2025 15:59:32 +0100 Subject: feat: Refactor NavBar and Planner components; update geocoding services - Removed unused Navigation2 icon from NavBar. - Updated usePlanner hook to manage route history and improve local storage handling. - Enhanced PlannerApi with new fare properties and improved itinerary handling. - Added recent routes feature in StopList with navigation to planner. - Implemented NominatimGeocodingService for autocomplete and reverse geocoding. - Updated UI components for better user experience and accessibility. - Added translations for recent routes in multiple languages. - Improved CSS styles for map controls and overall layout. --- src/frontend/app/hooks/usePlanQuery.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/frontend/app/hooks/usePlanQuery.ts') diff --git a/src/frontend/app/hooks/usePlanQuery.ts b/src/frontend/app/hooks/usePlanQuery.ts index 103f5f4..8c81073 100644 --- a/src/frontend/app/hooks/usePlanQuery.ts +++ b/src/frontend/app/hooks/usePlanQuery.ts @@ -8,7 +8,8 @@ export const usePlanQuery = ( toLon: number | undefined, time?: Date, arriveBy: boolean = false, - enabled: boolean = true + enabled: boolean = true, + initialData?: any ) => { return useQuery({ queryKey: [ @@ -25,5 +26,6 @@ export const usePlanQuery = ( enabled: !!(fromLat && fromLon && toLat && toLon) && enabled, staleTime: 60000, // 1 minute retry: false, + initialData, }); }; -- cgit v1.3