feat: 归档L03与L09审批发布能力

- 新增统一审批中心与审批管理页面,支持流程配置、审批详情与角色/用户审批对象

- 接入聊天助手、知识库、工作流的发布与删除审批,并补齐发布态校验与快照展示
This commit is contained in:
2026-04-07 14:41:52 +08:00
parent 7e7c236c2a
commit 3f128e977a
138 changed files with 13035 additions and 346 deletions

View File

@@ -62,6 +62,15 @@
"subProcess": "SubProcess",
"workflowSelect": "WorkflowSelect",
"bochaSearch": "BochaSearch",
"publishStatusDraft": "Draft",
"publishStatusPublishPending": "Publish Pending",
"publishStatusPublished": "Published",
"publishStatusDeletePending": "Delete Pending",
"publishStatusLabel": "Release",
"submitPublishApprovalConfirm": "The current draft will enter the publish approval flow. It becomes externally available only after approval.",
"submitDeleteApprovalConfirm": "The workflow will enter the delete approval flow. It will be physically deleted only after approval.",
"publishPendingHint": "There is already an approval in progress for this workflow.",
"deletePendingHint": "There is already an approval in progress for this workflow.",
"check": "Check",
"checkPassed": "Workflow check passed",
"checkFailed": "Workflow check failed. Please fix the issues first",

View File

@@ -0,0 +1,161 @@
{
"title": "Approval Detail",
"tab": {
"flow": "Flow Config",
"pending": "Pending",
"processed": "Processed",
"initiated": "Initiated"
},
"resource": {
"bot": "Chat Assistant",
"workflow": "Workflow",
"knowledge": "Knowledge Base"
},
"action": {
"publish": "Publish",
"delete": "Delete",
"addFlow": "New Flow",
"editFlow": "Edit Flow",
"enableFlow": "Enable Flow",
"disableFlow": "Disable Flow",
"approve": "Approve",
"reject": "Reject",
"revoke": "Revoke",
"addScope": "Add Scope",
"addStep": "Add Step"
},
"scope": {
"category": "Category",
"dept": "Department"
},
"assignee": {
"role": "Role",
"user": "User"
},
"status": {
"enabled": "Enabled",
"disabled": "Disabled",
"pending": "Pending",
"processing": "Processing",
"approved": "Approved",
"rejected": "Rejected",
"revoked": "Revoked"
},
"section": {
"basic": "Basic Info",
"scope": "Scope Config",
"steps": "Approval Steps",
"tasks": "Approval Tasks",
"logs": "Approval Logs",
"snapshot": "Approval Snapshot"
},
"helper": {
"scope": "Limit the flow by resource category or applicant department. Leave empty to apply globally.",
"scopeEmpty": "No scope configured. This flow applies globally."
},
"fields": {
"flowName": "Flow Name",
"resourceType": "Resource Type",
"actionType": "Action Type",
"priority": "Priority",
"version": "Version",
"status": "Status",
"remark": "Remark",
"scopeSummary": "Scope Summary",
"stepCount": "Step Count",
"includeChildren": "Include Children",
"stepName": "Step Name",
"stepNoLabel": "Step No.",
"currentStep": "Current Step",
"summary": "Summary",
"resourceId": "Resource ID",
"taskId": "Approval Task ID",
"applicant": "Applicant",
"applicantId": "Applicant ID",
"submittedAt": "Submitted At",
"finishedAt": "Finished At",
"assigneeTarget": "Assignee",
"actedBy": "Acted By",
"actedAt": "Acted At",
"comment": "Comment",
"eventType": "Event Type",
"operatorId": "Operator ID",
"operatorName": "Operator Name",
"createdAt": "Created At",
"eventInfo": "Event Info",
"stepNo": "Step {value}"
},
"event": {
"approved": "Approved",
"rejected": "Rejected",
"revoked": "Revoked",
"stepCreated": "Step Created",
"submitted": "Submitted"
},
"placeholder": {
"flowName": "Search flow name",
"keyword": "Search summary",
"resourceType": "Filter resource type",
"actionType": "Filter action type",
"flowStatus": "Filter flow status",
"instanceStatus": "Status",
"scopeValue": "Select scope value",
"assigneeType": "Select assignee type",
"assigneeTarget": "Select assignee",
"stepName": "Enter step name",
"actionComment": "Enter a comment"
},
"message": {
"needStep": "At least one step is required",
"needStepAssignee": "Each approval step requires an assignee",
"saveSuccess": "Flow saved",
"statusUpdated": "Flow status updated",
"deleteSuccess": "Flow deleted",
"actionSuccess": "Approval action completed",
"confirmDeleteFlow": "This action cannot be undone. Continue?",
"confirmFlowStatus": "Confirm to {title}?",
"eventApproved": "Approval completed",
"eventApprovedStep": "Step {value} approved",
"eventRejected": "Approval rejected",
"eventRejectedStep": "Step {value} rejected",
"eventRevoked": "Approval revoked",
"eventRevokedStep": "Step {value} revoked",
"workflowSnapshotUntitled": "Untitled workflow snapshot",
"workflowSnapshotMissing": "Workflow snapshot not found",
"workflowSnapshotParseFailed": "Failed to parse workflow snapshot"
},
"snapshot": {
"knowledgeBasic": "Basic Info",
"knowledgeConfig": "Retrieval Config",
"botOverview": "Assistant Overview",
"botModelConfig": "Model Config",
"botBindings": "Capability Bindings",
"systemPrompt": "System Prompt",
"department": "Department",
"category": "Category",
"modelName": "Model Name",
"vectorStoreType": "Vector Store Type",
"vectorEmbedModel": "Embedding Model",
"rerankModel": "Rerank Model",
"maxMessageCount": "Max Context Messages",
"canUpdateEmbeddingModel": "Allow Embedding Update",
"anonymousEnabled": "Anonymous Access",
"anonymousDisabled": "Login Only",
"knowledgeBindings": "Knowledge Bases",
"workflowBindings": "Workflows",
"pluginBindings": "Plugins",
"mcpBindings": "MCP",
"expandPrompt": "Expand",
"collapsePrompt": "Collapse",
"enabled": "Enabled",
"disabled": "Disabled",
"notConfigured": "Not configured",
"noBindings": "No bindings",
"untitledKnowledge": "Untitled knowledge base",
"untitledBot": "Untitled assistant",
"unnamedKnowledge": "Unnamed knowledge base",
"unnamedWorkflow": "Unnamed workflow",
"unnamedPlugin": "Unnamed plugin",
"unnamedMcp": "Unnamed MCP"
}
}

View File

@@ -11,6 +11,20 @@
"deepThinking": "DeepThinking",
"enableDeepThinking": "EnableDeepThinking",
"publish": "Publish",
"publishStatusLabel": "Current Release",
"publishStatusDraft": "Draft",
"publishStatusDraftDesc": "Only the draft is saved. External chat and Public API are still unavailable.",
"publishStatusPublishPending": "Publish Pending",
"publishStatusPublishPendingDesc": "The assistant will switch to the new release after approval.",
"publishStatusPublished": "Published",
"publishStatusPublishedDesc": "The current release is externally available. Ongoing edits still stay in draft.",
"publishStatusDeletePending": "Delete Pending",
"publishStatusDeletePendingDesc": "The current release remains available, but it is no longer offered as a new binding candidate.",
"submitPublishApprovalConfirm": "Submit the current draft to publish approval. It becomes externally available only after approval.",
"submitDeleteApprovalConfirm": "Submit the bot to delete approval. It will be physically deleted only after approval.",
"publishPendingHint": "There is already an approval in progress for this bot.",
"deletePendingHint": "There is already an approval in progress for this bot.",
"publishRequiredHint": "There is no released version yet. Submit publish approval first.",
"postToWeChatOfficialAccount": "PostToWeChatOfficialAccount",
"publishExternalLink": "Publish External Chat Link",
"configured": "Configured",

View File

@@ -41,7 +41,10 @@
"markAsResolved": "MarkAsResolved",
"optimizing": "Optimizing",
"regenerate": "Regenerate",
"republish": "Republish",
"hide": "Hide",
"more": "Mode",
"submitDeleteApproval": "Submit Delete Approval",
"submitPublishApproval": "Submit Publish Approval",
"viewSegmentation": "ViewSegmentation"
}

View File

@@ -35,6 +35,15 @@
"documentType": "DocumentType",
"fileName": "fileName",
"knowledgeCount": "Number of knowledge items",
"publishStatusDraft": "Draft",
"publishStatusPublishPending": "Publish Pending",
"publishStatusPublished": "Published",
"publishStatusDeletePending": "Delete Pending",
"publishStatusLabel": "Release",
"submitPublishApprovalConfirm": "The knowledge base will enter the publish approval flow. It can be referenced by bots only after approval.",
"submitDeleteApprovalConfirm": "The knowledge base will enter the delete approval flow. It will be physically deleted only after approval.",
"publishPendingHint": "There is already an approval in progress for this knowledge base.",
"deletePendingHint": "There is already an approval in progress for this knowledge base.",
"createdModifyTime": "Creation/update time",
"documentList": "documentList",
"knowledgeRetrieval": "knowledgeRetrieval",

View File

@@ -13,6 +13,11 @@
"sysJob": "Job",
"sysLog": "Log",
"sysFeedback": "UserFeedback",
"approval": "Approval",
"approvalFlow": "Flow Setup",
"approvalPending": "Pending",
"approvalProcessed": "Processed",
"approvalInitiated": "Initiated",
"sysAppearance": "Appearance",
"oauth": "OAuth"
},