A modern platform for visual, flexible, and extensible graph-based investigations. For cybersecurity analysts and investigators.
feat(app): minimal ui updates
dextmorgndcce008b8dff
diff --git a/flowsint-app/src/components/layout/top-navbar.tsx b/flowsint-app/src/components/layout/top-navbar.tsxindex 123389f7..b00110b3 100644--- a/flowsint-app/src/components/layout/top-navbar.tsx+++ b/flowsint-app/src/components/layout/top-navbar.tsx@@ -18,7 +18,7 @@ import {DropdownMenuShortcut,DropdownMenuTrigger} from '@/components/ui/dropdown-menu'-import { Ellipsis, Upload } from 'lucide-react'+import { Settings2, Upload } from 'lucide-react'import { isMac } from '@/lib/utils'import { useGraphSettingsStore } from '@/stores/graph-settings-store'import { useMutation } from '@tanstack/react-query'@@ -78,7 +78,13 @@ export const TopNavbar = memo(() => {)})-export function InvestigationMenu({ investigationId, sketchId }: { investigationId?: string, sketchId: string }) {+export function InvestigationMenu({+ investigationId,+ sketchId+}: {+ investigationId?: string+ sketchId: string+}) {const toggleSettingsModal = useGraphSettingsStore((s) => s.toggleSettingsModal)const toggleKeyboardShortcutsModal = useGraphSettingsStore((s) => s.toggleKeyboardShortcutsModal)const setImportModalOpen = useGraphSettingsStore((s) => s.setImportModalOpen)@@ -137,7 +143,7 @@ export function InvestigationMenu({ investigationId, sketchId }: { investigation<DropdownMenuTrigger asChild><div><Button size="icon" variant="ghost">- <Ellipsis />+ <Settings2 /></Button></div></DropdownMenuTrigger>@@ -155,15 +161,23 @@ export function InvestigationMenu({ investigationId, sketchId }: { investigation</DropdownMenuGroup><DropdownMenuSeparator /><DropdownMenuItem>- <a className='h-full w-full' target='_blank' href="https://github.com/reconurge/flowsint">GitHub</a>+ <a className="h-full w-full" target="_blank" href="https://github.com/reconurge/flowsint">+ GitHub+ </a></DropdownMenuItem><DropdownMenuItem>- <a className='h-full w-full' target='_blank' href="https://github.com/reconurge/flowsint/issues">Support</a>+ <a+ className="h-full w-full"+ target="_blank"+ href="https://github.com/reconurge/flowsint/issues"+ >+ Support+ </a></DropdownMenuItem><DropdownMenuItem disabled>API</DropdownMenuItem><DropdownMenuSeparator /><DropdownMenuItem onClick={() => setImportModalOpen(true)}>- <Upload /> Import entities+ <Upload /> Import entities</DropdownMenuItem><DropdownMenuSeparator /><DropdownMenuItem onClick={handleDelete} variant="destructive">diff --git a/flowsint-app/src/components/map/map-panel.tsx b/flowsint-app/src/components/map/map-panel.tsxindex 44650e0f..e393b662 100644--- a/flowsint-app/src/components/map/map-panel.tsx+++ b/flowsint-app/src/components/map/map-panel.tsx@@ -12,6 +12,7 @@ const MapPanel = () => {(node.nodeProperties.latitude && node.nodeProperties.longitude)).map((node) => ({+ nodeId: node.id,lat: node.nodeProperties.latitude != null ? Number(node.nodeProperties.latitude) : undefined,lon:node.nodeProperties.longitude != null ? Number(node.nodeProperties.longitude) : undefined,diff --git a/flowsint-app/src/components/map/map.tsx b/flowsint-app/src/components/map/map.tsxindex 824c8d2f..9ced8113 100644--- a/flowsint-app/src/components/map/map.tsx+++ b/flowsint-app/src/components/map/map.tsx@@ -1,22 +1,28 @@import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react'import { useQuery } from '@tanstack/react-query'-import Map, { Layer, NavigationControl, Popup, Source } from 'react-map-gl/maplibre'+import Map, { Layer, Popup, Source } from 'react-map-gl/maplibre'import maplibregl from 'maplibre-gl'import 'maplibre-gl/dist/maplibre-gl.css'import { useTheme } from '../theme-provider'import { Globe, Map as MapIcon, MapPin } from 'lucide-react'import LoadingSpinner from '@/components/shared/loader'-import * as LucideIcons from 'lucide-react'-import { preloadImage } from '@/components/sketches/graph/utils/image-cache'-import { TYPE_TO_ICON } from '@/stores/node-display-settings'+import { preloadImage, getCachedImage } from '@/components/sketches/graph/utils/image-cache'+import { useGraphControls } from '@/stores/graph-controls-store'+import { useGraphStore } from '@/stores/graph-store'import { Switch } from '../ui/switch'import { Label } from '../ui/label'import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '../ui/select'import type { MapRef } from 'react-map-gl/maplibre'-import type { GeoJSONSource, MapMouseEvent, StyleImageInterface, StyleSpecification } from 'maplibre-gl'+import type {+ GeoJSONSource,+ MapMouseEvent,+ StyleImageInterface,+ StyleSpecification+} from 'maplibre-gl'import type { FeatureCollection, Point } from 'geojson'export type LocationPoint = {+ nodeId?: stringlat?: numberlon?: numberaddress?: string@@ -71,7 +77,10 @@ const SATELLITE_STYLE = {]}-function resolveMapStyle(variant: MapStyleVariant, theme: 'dark' | 'light'): string | StyleSpecification {+function resolveMapStyle(+ variant: MapStyleVariant,+ theme: 'dark' | 'light'+): string | StyleSpecification {if (variant === 'satellite') return SATELLITE_STYLEreturn VECTOR_STYLES[variant][theme]}@@ -266,6 +275,7 @@ export const MapFromAddress: React.FC<MapFromAddressProps> = ({return {type: 'Feature' as const,properties: {+ nodeId: loc.nodeId || '',label: loc.label || loc.address || `${lat.toFixed(6)}, ${lon.toFixed(6)}`,color,icon: nodeType ? `marker-icon-${nodeType}` : '',@@ -348,48 +358,56 @@ export const MapFromAddress: React.FC<MapFromAddressProps> = ({}}, [validLocations, zoom, centerOnFirst])- // Handle click on clusters- const onClick = useCallback((e: MapMouseEvent) => {- const map = mapRef.current?.getMap()- if (!map) return-- // Check for cluster click- const clusterFeatures = map.queryRenderedFeatures(e.point, { layers: ['clusters'] })- if (clusterFeatures.length > 0) {- const feature = clusterFeatures[0]- const clusterId = feature.properties?.cluster_id- const source = map.getSource('locations') as GeoJSONSource- source.getClusterExpansionZoom(clusterId).then((expansionZoom) => {- const geo = feature.geometry as Point- map.flyTo({- center: geo.coordinates as [number, number],- zoom: expansionZoom,- duration: 500+ // Handle click on clusters and points+ const setCurrentNodeId = useGraphStore((s) => s.setCurrentNodeId)++ const onClick = useCallback(+ (e: MapMouseEvent) => {+ const map = mapRef.current?.getMap()+ if (!map) return++ // Check for cluster click+ const clusterFeatures = map.queryRenderedFeatures(e.point, { layers: ['clusters'] })+ if (clusterFeatures.length > 0) {+ const feature = clusterFeatures[0]+ const clusterId = feature.properties?.cluster_id+ const source = map.getSource('locations') as GeoJSONSource+ source.getClusterExpansionZoom(clusterId).then((expansionZoom) => {+ const geo = feature.geometry as Point+ map.flyTo({+ center: geo.coordinates as [number, number],+ zoom: expansionZoom,+ duration: 500+ })})- })- return- }+ return+ }- // Check for unclustered point click- const pointFeatures = map.queryRenderedFeatures(e.point, {- layers: ['unclustered-point', 'unclustered-point-icon']- })- if (pointFeatures.length > 0) {- const feature = pointFeatures[0]- const geo = feature.geometry as Point- setPopupInfo({- lng: geo.coordinates[0],- lat: geo.coordinates[1],- label: feature.properties?.label || '',- color: feature.properties?.color || '#6366f1',- nodeType: feature.properties?.nodeType || ''+ // Check for unclustered point click+ const pointFeatures = map.queryRenderedFeatures(e.point, {+ layers: ['unclustered-point', 'unclustered-point-icon']})- return- }+ if (pointFeatures.length > 0) {+ const feature = pointFeatures[0]+ const geo = feature.geometry as Point+ const nodeId = feature.properties?.nodeId+ if (nodeId) setCurrentNodeId(nodeId)+ setPopupInfo({+ lng: geo.coordinates[0],+ lat: geo.coordinates[1],+ label: feature.properties?.label || '',+ color: feature.properties?.color || '#6366f1',+ nodeType: feature.properties?.nodeType || ''+ })+ return+ }- // Click elsewhere → dismiss popup- setPopupInfo(null)- }, [])+ // Click elsewhere → dismiss popup and deselect+ setPopupInfo(null)+ setCurrentNodeId(null)+ },+ [setCurrentNodeId]+ )const applyProjection = useCallback(() => {const map = mapRef.current?.getMap()@@ -417,6 +435,44 @@ export const MapFromAddress: React.FC<MapFromAddressProps> = ({})}, [registerMapImages, applyProjection])+ // Wire up zoom actions to the shared toolbar controls+ const setActions = useGraphControls((s) => s.setActions)++ useEffect(() => {+ setActions({+ zoomIn: () => {+ const map = mapRef.current?.getMap()+ if (map) map.zoomIn({ duration: 300 })+ },+ zoomOut: () => {+ const map = mapRef.current?.getMap()+ if (map) map.zoomOut({ duration: 300 })+ },+ zoomToFit: () => {+ const map = mapRef.current?.getMap()+ if (!map || validLocations.length === 0) return+ if (validLocations.length === 1) {+ const loc = validLocations[0].coordinates!+ map.flyTo({ center: [Number(loc.lon), Number(loc.lat)], zoom, duration: 500 })+ } else {+ const bounds = new maplibregl.LngLatBounds()+ validLocations.forEach((l) => {+ bounds.extend([Number(l.coordinates!.lon), Number(l.coordinates!.lat)])+ })+ map.fitBounds(bounds, { padding: 60, duration: 500 })+ }+ }+ })++ return () => {+ setActions({+ zoomIn: () => {},+ zoomOut: () => {},+ zoomToFit: () => {}+ })+ }+ }, [setActions, validLocations, zoom])+// Loading stateif (geocodeQuery.isLoading) {return (@@ -478,7 +534,7 @@ export const MapFromAddress: React.FC<MapFromAddressProps> = ({return (<div style={{ minHeight: height, height: '100%', width: '100%' }} className="relative"><div className="absolute bottom-6 left-3 z-10 flex flex-col gap-2">- <div className="flex items-center gap-2 rounded-lg bg-card/90 backdrop-blur-sm border border-border px-3 py-2 shadow-sm">+ {/*<div className="flex items-center gap-2 rounded-lg bg-card/90 backdrop-blur-sm border border-border px-3 py-2 shadow-sm"><MapIcon className="h-3.5 w-3.5 text-muted-foreground shrink-0" /><Select value={styleVariant} onValueChange={(v) => setStyleVariant(v as MapStyleVariant)}><SelectTrigger className="h-6 w-[110px] border-0 bg-transparent text-xs px-1 py-0 shadow-none focus:ring-0">@@ -490,7 +546,7 @@ export const MapFromAddress: React.FC<MapFromAddressProps> = ({<SelectItem value="satellite">Satellite</SelectItem></SelectContent></Select>- </div>+ </div>*/}<div className="flex items-center gap-2 rounded-lg bg-card/90 backdrop-blur-sm border border-border px-3 py-2 shadow-sm"><Globe className="h-3.5 w-3.5 text-muted-foreground" /><Label@@ -520,9 +576,8 @@ export const MapFromAddress: React.FC<MapFromAddressProps> = ({onLoad={onMapLoad}interactiveLayerIds={['clusters', 'unclustered-point', 'unclustered-point-icon']}cursor="auto"+ attributionControl={false}>- <NavigationControl position="top-right" />-<Sourceid="locations"type="geojson"@@ -540,11 +595,11 @@ export const MapFromAddress: React.FC<MapFromAddressProps> = ({'circle-color': ['step',['get', 'point_count'],- '#6366f1', // indigo-500+ '#e8713a', // primary10,- '#4f46e5', // indigo-600+ '#d4622e', // primary darker50,- '#7c3aed' // violet-600+ '#c05524' // primary darkest],'circle-radius': ['step', ['get', 'point_count'], 18, 10, 24, 50, 32],'circle-stroke-width': 2,@@ -620,27 +675,31 @@ export const MapFromAddress: React.FC<MapFromAddressProps> = ({closeOnClick={false}className="maplibre-popup">- <div className="flex items-center gap-2 px-1 py-0.5">- {(() => {- const iconName = popupInfo.nodeType- ? TYPE_TO_ICON[popupInfo.nodeType] || TYPE_TO_ICON.default- : ''- const Icon = iconName ? (LucideIcons as any)[iconName] : null- return Icon ? (- <div- className="rounded-full flex items-center justify-center shrink-0"- style={{ background: popupInfo.color, width: 24, height: 24 }}- >- <Icon size={14} color="#fff" strokeWidth={2.5} />- </div>- ) : (- <div- className="rounded-full shrink-0"- style={{ background: popupInfo.color, width: 10, height: 10 }}- />- )- })()}- <span className="text-sm font-medium">{popupInfo.label}</span>+ <div className="flex flex-col gap-1.5 px-1 py-0.5 min-w-[140px]">+ <div className="flex items-center gap-2">+ {(() => {+ const cachedImg = popupInfo.nodeType+ ? getCachedImage(popupInfo.nodeType, '#ffffff')+ : undefined+ return cachedImg ? (+ <div+ className="rounded-full flex items-center justify-center shrink-0"+ style={{ background: popupInfo.color, width: 24, height: 24 }}+ >+ <img src={cachedImg.src} width={14} height={14} alt="" />+ </div>+ ) : (+ <div+ className="rounded-full shrink-0"+ style={{ background: popupInfo.color, width: 10, height: 10 }}+ />+ )+ })()}+ <span className="text-sm font-medium text-foreground">{popupInfo.label}</span>+ </div>+ <div className="text-xs text-muted-foreground font-mono">+ {popupInfo.lat.toFixed(6)}, {popupInfo.lng.toFixed(6)}+ </div></div></Popup>)}diff --git a/flowsint-app/src/components/sketches/create-relation.tsx b/flowsint-app/src/components/sketches/create-relation.tsxindex 5ef04e1f..ff885109 100644--- a/flowsint-app/src/components/sketches/create-relation.tsx+++ b/flowsint-app/src/components/sketches/create-relation.tsx@@ -113,7 +113,7 @@ export function CreateRelationDialog() {type="button"variant="secondary"size="sm"- className="shadow-sm"+ className="border"onClick={() => setIsReversed((v) => !v)}aria-label="Switch direction"title="Switch direction"diff --git a/flowsint-app/src/components/sketches/details-panel/details-panel.tsx b/flowsint-app/src/components/sketches/details-panel/details-panel.tsxindex 006fb37b..758e7053 100644--- a/flowsint-app/src/components/sketches/details-panel/details-panel.tsx+++ b/flowsint-app/src/components/sketches/details-panel/details-panel.tsx@@ -32,6 +32,7 @@ import NeighborsGraph from './neighbors'import { Circle, Square, Triangle, Hexagon } from 'lucide-react'import { ToggleGroup, ToggleGroupItem } from '@/components/ui/toggle-group'import { Slider } from '@/components/ui/slider'+import { Button } from '@/components/ui/button'// Typestype FormData = {@@ -291,8 +292,8 @@ const DetailsPanel = memo(() => {return (<div className="flex flex-col h-full bg-card border-border">{/* Header - Minimal */}- <div className="h-10 border-b flex w-full bg-red-5 items-center justify-between">- <div className="px-4 flex items-start w-full justify-between gap-3">+ <div className="h-10 border-b flex w-full items-center justify-between">+ <div className="px-4 flex items-center w-full justify-between gap-3"><div className="flex items-start gap-2.5 flex-1 min-w-0"><buttononClick={() => setOpenIconPicker(true)}@@ -319,9 +320,9 @@ const DetailsPanel = memo(() => {<TooltipTrigger asChild><div><LaunchFlow values={[node.id]} type={node.nodeType}>- <button className="p-1.5 rounded opacity-70 transition-colors">- <Rocket className="h-4 w-4 opacity-70" strokeWidth={1.7} />- </button>+ <Button className="rounded-xl h-7" size={'sm'}>+ Enrich <Rocket className="h-4 w-4 opacity-70" strokeWidth={1.7} />+ </Button></LaunchFlow></div></TooltipTrigger>@@ -331,12 +332,6 @@ const DetailsPanel = memo(() => {</Tooltip></TooltipProvider><NodeActions node={node} />- <button- onClick={handleClose}- className="p-1.5 text-muted-foreground/50 hover:text-muted-foreground rounded transition-colors"- >- <X className="h-3.5 w-3.5" />- </button></div></div></div>diff --git a/flowsint-app/src/components/sketches/graph/node/actions/node-actions.tsx b/flowsint-app/src/components/sketches/graph/node/actions/node-actions.tsxindex 595cdc6f..b2331e1d 100644--- a/flowsint-app/src/components/sketches/graph/node/actions/node-actions.tsx+++ b/flowsint-app/src/components/sketches/graph/node/actions/node-actions.tsx@@ -1,16 +1,35 @@-import React, { memo, useCallback } from 'react'+import React, { memo, useCallback, useState, useEffect } from 'react'import { Button } from '@/components/ui/button'-import { Trash2, Sparkles, Plus } from 'lucide-react'+import { Trash2, Sparkles, Plus, MoreHorizontal, Flag } from 'lucide-react'import { useGraphStore } from '@/stores/graph-store'import { useParams } from '@tanstack/react-router'import { useConfirm } from '@/components/use-confirm-dialog'import { toast } from 'sonner'import { sketchService } from '@/api/sketch-service'-import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/components/ui/tooltip'+import {+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuItem,+ DropdownMenuSeparator,+ DropdownMenuSub,+ DropdownMenuSubContent,+ DropdownMenuSubTrigger,+ DropdownMenuTrigger+} from '@/components/ui/dropdown-menu'import { useLayoutStore } from '@/stores/layout-store'import { GraphNode } from '@/types'import { useGraphSettingsStore } from '@/stores/graph-settings-store'-import { NodeFlag } from './flag'+import { cn } from '@/lib/utils'++const flagColors = {+ red: 'text-red-400 fill-red-200',+ orange: 'text-orange-400 fill-orange-200',+ blue: 'text-blue-400 fill-blue-200',+ green: 'text-green-400 fill-green-200',+ yellow: 'text-yellow-400 fill-yellow-200'+} as const++type FlagColor = keyof typeof flagColorsconst NodeActions = memo(({ node, setMenu }: { node: GraphNode; setMenu?: (menu: any | null) => void }) => {@@ -20,17 +39,22 @@ const NodeActions = memo(const setRelatedNodeToAdd = useGraphStore((state) => state.setRelatedNodeToAdd)const removeNodes = useGraphStore((s) => s.removeNodes)const toggleNodeSelection = useGraphStore((s) => s.toggleNodeSelection)+ const updateNode = useGraphStore((s) => s.updateNode)const openChat = useLayoutStore((s) => s.openChat)const settings = useGraphSettingsStore((s) => s.settings)- // Add relation dialog+ const [flagValue, setFlagValue] = useState<FlagColor | null>(node.nodeFlag)++ useEffect(() => {+ setFlagValue(node.nodeFlag)+ }, [node.id, node.nodeFlag])+const handleOpenMainDialog = useCallback(() => {setRelatedNodeToAdd(node)setOpenMainDialog(true)setMenu?.(null)}, [setOpenMainDialog, setMenu, node])- // Ask AI dialogconst handleAskAI = useCallback((e: React.MouseEvent) => {e.stopPropagation()@@ -41,7 +65,6 @@ const NodeActions = memo([node, toggleNodeSelection, openChat, setMenu])- // Delete nodeconst handleDeleteNode = async () => {if (!node.id || !sketchId) returnif (@@ -63,82 +86,84 @@ const NodeActions = memo(})}++ const handleUpdateFlag = useCallback(+ async (value: FlagColor) => {+ const val = value === flagValue ? null : value+ node.nodeFlag = flagValue+ setFlagValue(val)+ try {+ updateNode(node.id, { nodeFlag: val })+ const body = JSON.stringify({+ nodeId: node.id,+ updates: { nodeFlag: val } as Partial<GraphNode>+ })+ await sketchService.updateNode(sketchId!, body)+ } catch (e) {+ console.log(e)+ }+ },+ [node.id, flagValue, updateNode, sketchId]+ )+return (- <div className="flex items-center gap-1">- <TooltipProvider>- <NodeFlag node={node} sketchId={sketchId as string} />- <Tooltip>- <TooltipTrigger asChild>- <div>- <Button- onClick={handleOpenMainDialog}- variant="ghost"- size="icon"- className="h-6 w-6 opacity-70"- >- <Plus className="h-3.5! w-3.5! opacity-70" strokeWidth={2} />- </Button>- </div>- </TooltipTrigger>- <TooltipContent>- <p>Add relation</p>- </TooltipContent>- </Tooltip>+ <DropdownMenu>+ <DropdownMenuTrigger asChild>+ <Button variant="ghost" size="icon" className="h-6 w-6 opacity-70">+ <MoreHorizontal className="h-3.5 w-3.5" />+ </Button>+ </DropdownMenuTrigger>+ <DropdownMenuContent align="end" className="min-w-[140px]">+ <DropdownMenuItem onClick={handleOpenMainDialog}>+ <Plus className="h-3.5 w-3.5 mr-2" />+ Add relation+ </DropdownMenuItem>{Boolean(settings?.general?.showFlow?.value) && (- <Tooltip>- <TooltipTrigger asChild>- <div>- <Button- onClick={handleAskAI}- variant="ghost"- size="icon"- className="h-6 w-6 p-0 hover:bg-muted opacity-70 hover:opacity-100"- >- <Sparkles className="h-3 w-3" strokeWidth={1.5} />- </Button>- </div>- </TooltipTrigger>- <TooltipContent>- <p>Ask AI</p>- </TooltipContent>- </Tooltip>+ <DropdownMenuItem onClick={handleAskAI}>+ <Sparkles className="h-3.5 w-3.5 mr-2" />+ Ask AI+ </DropdownMenuItem>)}- {/*<Tooltip>- <TooltipTrigger asChild>- <div>- <Button- onClick={handleEditNode}- variant="ghost"- size="sm"- className="h-6 w-6 p-0 hover:bg-muted opacity-70 hover:opacity-100"- >- <Pencil className="h-3 w-3" strokeWidth={1.5} />- </Button>- </div>- </TooltipTrigger>- <TooltipContent>- <p>Edit node</p>- </TooltipContent>- </Tooltip>*/}- <Tooltip>- <TooltipTrigger asChild>- <div>- <Button- variant="ghost"- size="sm"- className="h-6 w-6 p-0 hover:bg-muted opacity-70 hover:opacity-100 text-destructive hover:text-destructive"- onClick={handleDeleteNode}- >- <Trash2 className="h-3 w-3" strokeWidth={1.5} />- </Button>+ <DropdownMenuSub>+ <DropdownMenuSubTrigger>+ <Flag+ className={cn(+ 'h-3.5 w-3.5 mr-2',+ flagValue ? flagColors[flagValue] : ''+ )}+ />+ Flag+ </DropdownMenuSubTrigger>+ <DropdownMenuSubContent>+ <div className="flex gap-1 p-1">+ {(Object.keys(flagColors) as FlagColor[]).map((key) => (+ <button+ key={key}+ onClick={(e) => {+ e.stopPropagation()+ handleUpdateFlag(key)+ }}+ className={cn(+ 'w-7 h-7 flex items-center justify-center rounded hover:bg-muted',+ flagValue === key && 'bg-muted'+ )}+ >+ <Flag className={cn('h-4 w-4', flagColors[key])} />+ </button>+ ))}</div>- </TooltipTrigger>- <TooltipContent>- <p>Delete node</p>- </TooltipContent>- </Tooltip>- </TooltipProvider>- </div>+ </DropdownMenuSubContent>+ </DropdownMenuSub>+ <DropdownMenuSeparator />+ <DropdownMenuItem+ onClick={handleDeleteNode}+ className="text-destructive focus:text-destructive"+ >+ <Trash2 className="h-3.5 w-3.5 mr-2" />+ Delete+ </DropdownMenuItem>+ </DropdownMenuContent>+ </DropdownMenu>)})diff --git a/flowsint-app/src/components/sketches/toolbar.tsx b/flowsint-app/src/components/sketches/toolbar.tsxindex 5bf6ad90..8dd2a99b 100644--- a/flowsint-app/src/components/sketches/toolbar.tsx+++ b/flowsint-app/src/components/sketches/toolbar.tsx@@ -234,19 +234,19 @@ export const Toolbar = memo(function Toolbar({ isLoading }: { isLoading: booleanicon={<ZoomIn className="h-4 w-4 opacity-70" />}tooltip="Zoom In"onClick={zoomIn}- disabled={view !== 'graph' || isSelectorModeActive || !zoomIn}+ disabled={(view !== 'graph' && view !== 'map') || isSelectorModeActive || !zoomIn}/><ToolbarButtonicon={<Minus className="h-4 w-4 opacity-70" />}tooltip="Zoom Out"onClick={zoomOut}- disabled={view !== 'graph' || isSelectorModeActive}+ disabled={(view !== 'graph' && view !== 'map') || isSelectorModeActive}/><ToolbarButtonicon={<Maximize className="h-4 w-4 opacity-70" />}tooltip="Fit to View"onClick={zoomToFit}- disabled={view !== 'graph' || isSelectorModeActive}+ disabled={(view !== 'graph' && view !== 'map') || isSelectorModeActive}/><ToolbarButtonicon={<Focus className="h-4 w-4 opacity-70" />}diff --git a/flowsint-app/src/components/ui/context-menu.tsx b/flowsint-app/src/components/ui/context-menu.tsxindex 734356e7..bf56f5a2 100644--- a/flowsint-app/src/components/ui/context-menu.tsx+++ b/flowsint-app/src/components/ui/context-menu.tsx@@ -1,6 +1,6 @@import * as React from 'react'import * as ContextMenuPrimitive from '@radix-ui/react-context-menu'-import { CheckIcon, ChevronRightIcon, CircleIcon } from 'lucide-react'+import { CheckIcon, ChevronRightIcon } from 'lucide-react'import { cn } from '@/lib/utils'@@ -153,11 +153,6 @@ function ContextMenuRadioItem({)}{...props}>- <span className="pointer-events-none absolute left-2 flex size-3.5 items-center justify-center">- <ContextMenuPrimitive.ItemIndicator>- <CircleIcon className="size-2 fill-current" />- </ContextMenuPrimitive.ItemIndicator>- </span>{children}</ContextMenuPrimitive.RadioItem>)diff --git a/flowsint-app/src/components/ui/dropdown-menu.tsx b/flowsint-app/src/components/ui/dropdown-menu.tsxindex 84161c1b..738823d6 100644--- a/flowsint-app/src/components/ui/dropdown-menu.tsx+++ b/flowsint-app/src/components/ui/dropdown-menu.tsx@@ -1,6 +1,6 @@import * as React from 'react'import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu'-import { CheckIcon, ChevronRightIcon, CircleIcon } from 'lucide-react'+import { CheckIcon, ChevronRightIcon } from 'lucide-react'import { cn } from '@/lib/utils'@@ -113,11 +113,6 @@ function DropdownMenuRadioItem({)}{...props}>- <span className="pointer-events-none absolute left-2 flex size-3.5 items-center justify-center">- <DropdownMenuPrimitive.ItemIndicator>- <CircleIcon className="size-2 fill-current" />- </DropdownMenuPrimitive.ItemIndicator>- </span>{children}</DropdownMenuPrimitive.RadioItem>)diff --git a/flowsint-app/src/components/ui/menubar.tsx b/flowsint-app/src/components/ui/menubar.tsxindex 5ff69abc..3a81cbd4 100644--- a/flowsint-app/src/components/ui/menubar.tsx+++ b/flowsint-app/src/components/ui/menubar.tsx@@ -1,6 +1,6 @@import * as React from 'react'import * as MenubarPrimitive from '@radix-ui/react-menubar'-import { CheckIcon, ChevronRightIcon, CircleIcon } from 'lucide-react'+import { CheckIcon, ChevronRightIcon } from 'lucide-react'import { cn } from '@/lib/utils'@@ -136,11 +136,6 @@ function MenubarRadioItem({)}{...props}>- <span className="pointer-events-none absolute left-2 flex size-3.5 items-center justify-center">- <MenubarPrimitive.ItemIndicator>- <CircleIcon className="size-2 fill-current" />- </MenubarPrimitive.ItemIndicator>- </span>{children}</MenubarPrimitive.RadioItem>)diff --git a/flowsint-app/src/components/ui/radio-group.tsx b/flowsint-app/src/components/ui/radio-group.tsxindex 14d61a65..1e05c857 100644--- a/flowsint-app/src/components/ui/radio-group.tsx+++ b/flowsint-app/src/components/ui/radio-group.tsx@@ -1,6 +1,5 @@import * as React from 'react'import * as RadioGroupPrimitive from '@radix-ui/react-radio-group'-import { CircleIcon } from 'lucide-react'import { cn } from '@/lib/utils'@@ -32,10 +31,8 @@ function RadioGroupItem({><RadioGroupPrimitive.Indicatordata-slot="radio-group-indicator"- className="relative flex items-center justify-center"- >- <CircleIcon className="fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" />- </RadioGroupPrimitive.Indicator>+ className="absolute inset-0 rounded-full bg-primary"+ /></RadioGroupPrimitive.Item>)}diff --git a/flowsint-app/src/styles.css b/flowsint-app/src/styles.cssindex 7cf5f339..d80d558e 100644--- a/flowsint-app/src/styles.css+++ b/flowsint-app/src/styles.css@@ -763,6 +763,52 @@ th,}}+/* Global Lucide icon defaults */+.lucide {+ /*width: 0.9rem;+ height: 0.9rem;*/+ stroke-width: 1.8;+ flex-shrink: 0;+ opacity: 0.7 !important;+}++/* MapLibre popup theme overrides */+.maplibregl-popup-content {+ background: var(--card) !important;+ color: var(--card-foreground) !important;+ border: 1px solid var(--border) !important;+ border-radius: 0.5rem !important;+ padding: 0.5rem 0.625rem !important;+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;+}++.maplibregl-popup-anchor-bottom .maplibregl-popup-tip {+ border-top-color: var(--card) !important;+}++.maplibregl-popup-anchor-top .maplibregl-popup-tip {+ border-bottom-color: var(--card) !important;+}++.maplibregl-popup-anchor-left .maplibregl-popup-tip {+ border-right-color: var(--card) !important;+}++.maplibregl-popup-anchor-right .maplibregl-popup-tip {+ border-left-color: var(--card) !important;+}++.maplibregl-popup-close-button {+ color: var(--muted-foreground) !important;+ font-size: 1rem !important;+ padding: 0.125rem 0.375rem !important;+}++.maplibregl-popup-close-button:hover {+ color: var(--foreground) !important;+ background: transparent !important;+}+.simple-floatingedges {flex-direction: column;display: flex;