Refactor publish section in AIAgentConfigWorkbench for improved layout and readability by simplifying the structure and enhancing the display of workflow versions
This commit is contained in:
@@ -878,28 +878,6 @@ export function AIAgentConfigWorkbench({
|
|||||||
|
|
||||||
{activeSection === "publish" ? (
|
{activeSection === "publish" ? (
|
||||||
<ConfigSection>
|
<ConfigSection>
|
||||||
<div className="flex flex-wrap items-center gap-x-6 gap-y-2 rounded-md border px-3 py-2 text-sm">
|
|
||||||
<div className="flex items-center gap-2">
|
|
||||||
<span className="text-muted-foreground">Agent 状态</span>
|
|
||||||
<Badge variant="secondary">{agent?.statusName || "-"}</Badge>
|
|
||||||
</div>
|
|
||||||
<div className="flex items-center gap-2">
|
|
||||||
<span className="text-muted-foreground">生效流程版本</span>
|
|
||||||
<Badge variant={agent?.workflowVersionId ? "default" : "outline"}>
|
|
||||||
{agent?.workflowVersionId ? `#${agent.workflowVersionId}` : "未发布"}
|
|
||||||
</Badge>
|
|
||||||
</div>
|
|
||||||
<div className="min-w-0 flex-1 text-xs text-muted-foreground">
|
|
||||||
发布会保存草稿、生成不可变版本,并绑定为当前生效流程。
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div className="space-y-3">
|
|
||||||
<div>
|
|
||||||
<h3 className="text-sm font-medium">版本记录</h3>
|
|
||||||
{/* <p className="mt-1 text-xs text-muted-foreground">
|
|
||||||
仅展示已发布的不可变流程版本,当前页面暂不支持切换或回滚版本。
|
|
||||||
</p> */}
|
|
||||||
</div>
|
|
||||||
<div className="overflow-hidden rounded-md border">
|
<div className="overflow-hidden rounded-md border">
|
||||||
{workflowVersions.length > 0 ? (
|
{workflowVersions.length > 0 ? (
|
||||||
<Table>
|
<Table>
|
||||||
@@ -943,7 +921,6 @@ export function AIAgentConfigWorkbench({
|
|||||||
<div className="p-4 text-sm text-muted-foreground">暂无已发布版本。</div>
|
<div className="p-4 text-sm text-muted-foreground">暂无已发布版本。</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</ConfigSection>
|
</ConfigSection>
|
||||||
) : null}
|
) : null}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user