feat: enhance NodeConfigPanel and WorkflowConfigPanel with improved title and description handling

This commit is contained in:
mlogclub
2026-06-28 17:36:43 +08:00
parent 988c8e7cfa
commit 89945f139b
2 changed files with 16 additions and 25 deletions
@@ -130,16 +130,6 @@ export function NodeConfigPanel({
</div>
) : null}
<div className="min-h-0 flex-1 space-y-5 overflow-y-auto p-4">
<div className="space-y-2">
<Label htmlFor={`node-type-${node.id}`}></Label>
<Input
id={`node-type-${node.id}`}
value={node.type}
readOnly
className="font-mono text-xs text-muted-foreground"
/>
</div>
<div className="space-y-2">
<Label htmlFor={`node-title-${node.id}`}></Label>
<Input
@@ -150,15 +140,6 @@ export function NodeConfigPanel({
/>
</div>
{nodeSpec?.description ? (
<div className="space-y-2">
<Label></Label>
<div className="rounded-md border bg-muted/30 px-3 py-2 text-xs leading-5 text-muted-foreground">
{nodeSpec.description}
</div>
</div>
) : null}
{inputSchema.length > 0 ? (
<div className="space-y-3">
<div className="text-sm font-medium"></div>