From 4fb2fe683b75464917dec4b1a0aaee63830f3b9a Mon Sep 17 00:00:00 2001
From: Ariel Costas Guerrero <ariel@costas.dev>
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/components/layout/NavBar.tsx | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

(limited to 'src/frontend/app/components/layout/NavBar.tsx')

diff --git a/src/frontend/app/components/layout/NavBar.tsx b/src/frontend/app/components/layout/NavBar.tsx
index 58228c7..fab47e0 100644
--- a/src/frontend/app/components/layout/NavBar.tsx
+++ b/src/frontend/app/components/layout/NavBar.tsx
@@ -1,4 +1,4 @@
-import { Home, Map, Navigation2, Route } from "lucide-react";
+import { Home, Map, Route } from "lucide-react";
 import type { LngLatLike } from "maplibre-gl";
 import { useTranslation } from "react-i18next";
 import { Link, useLocation, useNavigate } from "react-router";
@@ -30,7 +30,7 @@ export default function NavBar({ orientation = "horizontal" }: NavBarProps) {
   const { mapState, updateMapState, mapPositionMode } = useApp();
   const location = useLocation();
   const navigate = useNavigate();
-  const { deselectItinerary } = usePlanner();
+  const { deselectItinerary } = usePlanner({ autoLoad: false });
 
   const navItems = [
     {
@@ -69,11 +69,6 @@ export default function NavBar({ orientation = "horizontal" }: NavBarProps) {
         );
       },
     },
-    {
-      name: t("navbar.planner", "Planificador"),
-      icon: Navigation2,
-      path: "/planner",
-    },
     {
       name: t("navbar.lines", "Líneas"),
       icon: Route,
-- 
cgit v1.3

