import { Boxes, Wand2 } from 'lucide-react' import type { WorkflowNodeDefinition } from '../../api/workflows' import type { WorkflowGraphFamily } from './workflowNodeLibrary' import { getWorkflowAuthoringPlan } from './workflowAuthoringGuidance' import type { WorkflowModuleBundleId } from './workflowModuleBundles' type WorkflowModuleBundlePanelProps = { definitions: WorkflowNodeDefinition[] graphFamily: WorkflowGraphFamily activeSteps: string[] onInsertModule?: (bundleId: WorkflowModuleBundleId) => void } export function WorkflowModuleBundlePanel({ definitions, graphFamily, activeSteps, onInsertModule, }: WorkflowModuleBundlePanelProps) { const { moduleBundles } = getWorkflowAuthoringPlan(definitions, graphFamily, activeSteps) if (moduleBundles.length === 0) return null return (

Production Modules

Insert reusable subgraphs for core production stages instead of assembling every node from scratch.

{moduleBundles.length} bundles
{moduleBundles.map(bundle => (

{bundle.label}

{bundle.stage} {bundle.presentCount}/{bundle.totalCount} present

{bundle.description}

{bundle.stepIds.join(' -> ')}

{onInsertModule ? ( ) : null}
))}
) }