From 0a2fed74652c1b7dbb363f7b3d01b09bdc6e5fea Mon Sep 17 00:00:00 2001 From: domverse Date: Fri, 27 Feb 2026 20:59:37 +0100 Subject: [PATCH] feat: add info icon tooltip for airport names in routes table Replaces the non-functional title attribute with a small Info icon next to the IATA code badge. Hovering shows a dark tooltip with the full airport name and city. Only rendered when useful name data exists. Clicking the icon stops propagation so it doesn't expand the flights row. Co-Authored-By: Claude Sonnet 4.6 --- .../frontend/src/pages/ScanDetails.tsx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 */}