diff --git a/flight-comparator/frontend/src/pages/ScanDetails.tsx b/flight-comparator/frontend/src/pages/ScanDetails.tsx index 94aa88a..4fec1a9 100644 --- a/flight-comparator/frontend/src/pages/ScanDetails.tsx +++ b/flight-comparator/frontend/src/pages/ScanDetails.tsx @@ -15,6 +15,7 @@ import { Loader2, RotateCcw, Trash2, + Info, } from 'lucide-react'; import { scanApi } from '../api'; import type { Scan, Route, Flight } from '../api'; @@ -419,6 +420,19 @@ export default function ScanDetails() { {route.destination_name || route.destination_city || ''} + {/* Info icon + tooltip — only when useful name data exists */} + {(route.destination_name && route.destination_name !== route.destination) || route.destination_city ? ( + e.stopPropagation()} + > + + + {[route.destination_name, route.destination_city].filter(s => s && s !== route.destination).join(', ')} + + + + ) : null} {/* Flights */}