polish: use 'step' instead of 'node' in procedural editor validation hints

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
chihlasm
2026-03-12 23:27:44 -04:00
parent 45fb468db3
commit 83b13fcd26
2 changed files with 5 additions and 3 deletions

View File

@@ -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
<p className="text-red-400">{error.message}</p>
{error.nodeId && (
<p className="mt-0.5 text-xs text-muted-foreground">
Click to select node: {error.nodeId}
Click to select {itemLabel}: {error.nodeId}
</p>
)}
</div>
@@ -138,7 +139,7 @@ export function ValidationSummary({ errors, onSelectNode, onFixWithAI, isFixing
<p className="text-yellow-400">{warning.message}</p>
{warning.nodeId && (
<p className="mt-0.5 text-xs text-muted-foreground">
Click to select node: {warning.nodeId}
Click to select {itemLabel}: {warning.nodeId}
</p>
)}
</div>

View File

@@ -409,6 +409,7 @@ export function ProceduralEditorPage() {
onSelectNode={handleSelectStep}
onFixWithAI={handleFixWithAI}
isFixing={isFixing}
itemLabel="step"
/>
</div>
)}