feat: enhance workflow editor UI with improved node handling and visual updates

This commit is contained in:
mlogclub
2026-06-27 19:48:54 +08:00
parent d0cd01cbf6
commit 35ebb59b9a
3 changed files with 327 additions and 173 deletions
@@ -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 (
<div className="h-[calc(100vh-var(--header-height))] min-h-0">
<AIAgentConfigWorkbench agentId={agentId} />
</div>
)
}