From 244f10fcec2c41be88c518a5e50c46c82414303e Mon Sep 17 00:00:00 2001 From: SaelixCode Date: Fri, 3 Jul 2026 19:13:37 -0400 Subject: [PATCH] fix: replace native title tooltips with Radix tooltips on Fleet toolbar Converted Refresh, Export Dossier, Search, Sort direction, Node Update, and Manage Nodes buttons from native HTML title attributes to the shared Radix Tooltip component so they match the app-wide glass tooltip design. --- frontend/src/components/FleetView.tsx | 57 ++++++---- .../components/FleetView/OverviewToolbar.tsx | 107 +++++++++++------- 2 files changed, 101 insertions(+), 63 deletions(-) diff --git a/frontend/src/components/FleetView.tsx b/frontend/src/components/FleetView.tsx index c15855f4..5532e9a2 100644 --- a/frontend/src/components/FleetView.tsx +++ b/frontend/src/components/FleetView.tsx @@ -4,6 +4,7 @@ import { Network, SlidersHorizontal, Send, KeyRound, ArrowLeftRight, Wrench, Workflow, } from 'lucide-react'; +import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/components/ui/tooltip'; import { FleetMasthead } from './fleet/FleetMasthead'; import { ReconnectingOverlay } from './FleetView/ReconnectingOverlay'; import { NodeUpdatesSheet } from './FleetView/NodeUpdatesSheet'; @@ -167,29 +168,41 @@ export function FleetView({ onNavigateToNode, onOpenSettingsSection, fleetUpdate
- + + + + + + Refresh + + {isAdmin && ( - + + + + + + Export Dossier + + )}
diff --git a/frontend/src/components/FleetView/OverviewToolbar.tsx b/frontend/src/components/FleetView/OverviewToolbar.tsx index 2df5cae2..f318eecb 100644 --- a/frontend/src/components/FleetView/OverviewToolbar.tsx +++ b/frontend/src/components/FleetView/OverviewToolbar.tsx @@ -9,6 +9,7 @@ import { Input } from '@/components/ui/input'; import { Combobox } from '@/components/ui/combobox'; import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover'; import { MultiSelectCombobox } from '@/components/ui/multi-select-combobox'; +import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/components/ui/tooltip'; import { SegmentedControl, type SegmentedControlOption } from '@/components/ui/segmented-control'; import { LabelDot } from '../LabelPill'; import type { LabelColor } from '../label-types'; @@ -110,16 +111,22 @@ export function OverviewToolbar({ /> ) : ( - + + + + + + Search nodes or stacks + + )}
- + + + + + + {prefs.sortDir === 'asc' ? 'Switch to descending' : 'Switch to ascending'} + + + + + + + + Check for node updates + + )} {onAddNode && ( - + + + + + + Manage nodes + + )} );