diff --git a/web/app/dashboard/ai-agents/config/page.tsx b/web/app/dashboard/ai-agents/config/page.tsx deleted file mode 100644 index 4f58b34..0000000 --- a/web/app/dashboard/ai-agents/config/page.tsx +++ /dev/null @@ -1,20 +0,0 @@ -"use client" - -import { useState } from "react" - -import { AIAgentConfigWorkbench } from "../_components/config-workbench" - -function readAgentIdFromLocation() { - if (typeof window === "undefined") return 0 - return Number(new URLSearchParams(window.location.search).get("agentId")) -} - -export default function DashboardAIAgentConfigPage() { - const [agentId] = useState(() => readAgentIdFromLocation()) - - return ( -
- -
- ) -} diff --git a/web/app/dashboard/ai-workflows/_components/node-config-panel.tsx b/web/app/dashboard/ai-workflows/_components/node-config-panel.tsx index 3a5d7b9..ef7a493 100644 --- a/web/app/dashboard/ai-workflows/_components/node-config-panel.tsx +++ b/web/app/dashboard/ai-workflows/_components/node-config-panel.tsx @@ -114,37 +114,38 @@ function NodeConfigForm({ } return ( -
-
-
{panelTitle}
-
- {node.data.nodeType && node.data.nodeType !== panelTitle - ? `${node.id} · ${node.data.nodeType}` - : node.id} +
+
+
+ setName(event.target.value)} + onBlur={() => commitChange({ name: name.trim() || node.data.nodeType || node.id })} + className="h-8 border-0 bg-transparent px-0 text-sm font-semibold uppercase shadow-none focus-visible:ring-0" + aria-label="节点名称" + /> +
+ {node.data.nodeType && node.data.nodeType !== panelTitle + ? `${node.id} · ${node.data.nodeType}` + : node.id} +
-
- - setName(event.target.value)} - onBlur={() => commitChange({ name: name.trim() || node.data.nodeType || node.id })} - /> -
- {isConditionNode ? ( - commitChange({ config: { ...(node.data.config ?? {}), branches } })} - /> - ) : ( - <> +
+ {isConditionNode ? ( + commitChange({ config: { ...(node.data.config ?? {}), branches } })} + /> + ) : ( + <> {inputSchema.length > 0 ? ( -
-
输入映射
+
+
输入映射
{availableVariables.length === 0 ? (
当前节点前面还没有可用变量,请先连接上游节点。 @@ -185,7 +186,7 @@ function NodeConfigForm({ ))}
) : null} -
+
高级配置 JSON