import type { PodGraphNode } from '@podman/shared'; import { Badge } from '@/components/ui/badge'; import { statusColor, modeBlurb, VIOLET, type Mode } from './encoding.js'; export function SelectedNodePanel({ node, relCount, flow, mode, }: { node: PodGraphNode | undefined; relCount: number; flow: string; mode: Mode; }) { if (!node) { return (
{mode === 'learn' ? 'Learning edges' : mode === 'all' ? 'Whole graph' : 'Risk path'}
{modeBlurb(mode)}
Click any node to trace its{' '} flow {' '} — what PodMan saw, flagged, and learned. Drag to rearrange.
{node.kind}
Flow
{flow}
> )} {node.summary && node.summary !== flow && ({node.summary}
)}