Replace "publish" with "versions" in AIAgentConfigWorkbench for improved clarity and consistency

This commit is contained in:
mlogclub
2026-06-23 21:09:36 +08:00
parent 9d749051f8
commit ec9e4a852a
@@ -9,6 +9,7 @@ import {
CheckCircle2Icon, CheckCircle2Icon,
DatabaseIcon, DatabaseIcon,
GitBranchIcon, GitBranchIcon,
HistoryIcon,
LifeBuoyIcon, LifeBuoyIcon,
PlugIcon, PlugIcon,
SaveIcon, SaveIcon,
@@ -90,7 +91,7 @@ type SectionKey =
| "tools" | "tools"
| "workflow" | "workflow"
| "handoff" | "handoff"
| "publish" | "versions"
const emptyDefinition: AIWorkflowDefinition = { const emptyDefinition: AIWorkflowDefinition = {
schemaVersion: 1, schemaVersion: 1,
@@ -537,7 +538,7 @@ export function AIAgentConfigWorkbench({
{ key: "tools", title: "MCP Tools", icon: <PlugIcon /> }, { key: "tools", title: "MCP Tools", icon: <PlugIcon /> },
{ key: "workflow", title: "会话流程", icon: <GitBranchIcon /> }, { key: "workflow", title: "会话流程", icon: <GitBranchIcon /> },
{ key: "handoff", title: "转人工与兜底", icon: <LifeBuoyIcon /> }, { key: "handoff", title: "转人工与兜底", icon: <LifeBuoyIcon /> },
{ key: "publish", title: "版本记录", icon: <ShieldCheckIcon /> }, { key: "versions", title: "版本记录", icon: <HistoryIcon /> },
] ]
const selectedKnowledgeOptions = selectedOptions(selectedKnowledgeIds, knowledgeOptions) const selectedKnowledgeOptions = selectedOptions(selectedKnowledgeIds, knowledgeOptions)
@@ -876,7 +877,7 @@ export function AIAgentConfigWorkbench({
</ConfigSection> </ConfigSection>
) : null} ) : null}
{activeSection === "publish" ? ( {activeSection === "versions" ? (
<ConfigSection> <ConfigSection>
<div className="overflow-hidden rounded-md border"> <div className="overflow-hidden rounded-md border">
{workflowVersions.length > 0 ? ( {workflowVersions.length > 0 ? (