diff --git a/frontend/src/components/tree-editor/ValidationSummary.tsx b/frontend/src/components/tree-editor/ValidationSummary.tsx index c267b42f..8e769735 100644 --- a/frontend/src/components/tree-editor/ValidationSummary.tsx +++ b/frontend/src/components/tree-editor/ValidationSummary.tsx @@ -8,9 +8,10 @@ interface ValidationSummaryProps { onSelectNode: (nodeId: string) => void onFixWithAI?: () => void isFixing?: boolean + itemLabel?: string } -export function ValidationSummary({ errors, onSelectNode, onFixWithAI, isFixing }: ValidationSummaryProps) { +export function ValidationSummary({ errors, onSelectNode, onFixWithAI, isFixing, itemLabel = 'node' }: ValidationSummaryProps) { const [isExpanded, setIsExpanded] = useState(true) const errorItems = errors.filter(e => e.severity === 'error') @@ -114,7 +115,7 @@ export function ValidationSummary({ errors, onSelectNode, onFixWithAI, isFixing

{error.message}

{error.nodeId && (

- Click to select node: {error.nodeId} + Click to select {itemLabel}: {error.nodeId}

)} @@ -138,7 +139,7 @@ export function ValidationSummary({ errors, onSelectNode, onFixWithAI, isFixing

{warning.message}

{warning.nodeId && (

- Click to select node: {warning.nodeId} + Click to select {itemLabel}: {warning.nodeId}

)} diff --git a/frontend/src/pages/ProceduralEditorPage.tsx b/frontend/src/pages/ProceduralEditorPage.tsx index 511dfc0b..a00611ee 100644 --- a/frontend/src/pages/ProceduralEditorPage.tsx +++ b/frontend/src/pages/ProceduralEditorPage.tsx @@ -409,6 +409,7 @@ export function ProceduralEditorPage() { onSelectNode={handleSelectStep} onFixWithAI={handleFixWithAI} isFixing={isFixing} + itemLabel="step" /> )}