feat: remove WorkflowSimpleNodeContent and update WorkflowNodeCard for optional children rendering

This commit is contained in:
mlogclub
2026-06-28 12:44:38 +08:00
parent 4ac2dedf97
commit 1525f2e919
3 changed files with 3 additions and 48 deletions
@@ -3,7 +3,6 @@ import { Field, type WorkflowNodeRegistry, useNodeRender } from "@flowgram.ai/fr
import type { AIWorkflowNodeSpec } from "@/lib/api/admin"
import { WorkflowConditionNodeContent } from "./workflow-condition-node-content"
import { WorkflowNodeCard } from "./workflow-node-card"
import { WorkflowSimpleNodeContent } from "./workflow-simple-node-content"
export function buildFlowgramNodeRegistries(nodeSpecs: AIWorkflowNodeSpec[]): WorkflowNodeRegistry[] {
const seen = new Set<string>()
@@ -89,9 +88,7 @@ function FlowgramNodeForm({
/>
)}
</Field>
) : (
<WorkflowSimpleNodeContent spec={spec} />
)}
) : null}
</WorkflowNodeCard>
)}
</Field>