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:
@@ -8,9 +8,10 @@ interface ValidationSummaryProps {
|
|||||||
onSelectNode: (nodeId: string) => void
|
onSelectNode: (nodeId: string) => void
|
||||||
onFixWithAI?: () => void
|
onFixWithAI?: () => void
|
||||||
isFixing?: boolean
|
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 [isExpanded, setIsExpanded] = useState(true)
|
||||||
|
|
||||||
const errorItems = errors.filter(e => e.severity === 'error')
|
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>
|
<p className="text-red-400">{error.message}</p>
|
||||||
{error.nodeId && (
|
{error.nodeId && (
|
||||||
<p className="mt-0.5 text-xs text-muted-foreground">
|
<p className="mt-0.5 text-xs text-muted-foreground">
|
||||||
Click to select node: {error.nodeId}
|
Click to select {itemLabel}: {error.nodeId}
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
@@ -138,7 +139,7 @@ export function ValidationSummary({ errors, onSelectNode, onFixWithAI, isFixing
|
|||||||
<p className="text-yellow-400">{warning.message}</p>
|
<p className="text-yellow-400">{warning.message}</p>
|
||||||
{warning.nodeId && (
|
{warning.nodeId && (
|
||||||
<p className="mt-0.5 text-xs text-muted-foreground">
|
<p className="mt-0.5 text-xs text-muted-foreground">
|
||||||
Click to select node: {warning.nodeId}
|
Click to select {itemLabel}: {warning.nodeId}
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -409,6 +409,7 @@ export function ProceduralEditorPage() {
|
|||||||
onSelectNode={handleSelectStep}
|
onSelectNode={handleSelectStep}
|
||||||
onFixWithAI={handleFixWithAI}
|
onFixWithAI={handleFixWithAI}
|
||||||
isFixing={isFixing}
|
isFixing={isFixing}
|
||||||
|
itemLabel="step"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user