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'}

What you're looking at

{modeBlurb(mode)}

Click any node to trace its{' '} flow {' '} — what PodMan saw, flagged, and learned. Drag to rearrange.

); } return (

{node.kind}

{node.label}

Status {node.status}
Relationships {relCount}
{flow && ( <>

Flow

{flow}

)} {node.summary && node.summary !== flow && (

{node.summary}

)}
); }