diff --git a/web/src/assets/images/workflow/unknown.svg b/web/src/assets/images/workflow/unknown.svg new file mode 100644 index 00000000..4c8198dd --- /dev/null +++ b/web/src/assets/images/workflow/unknown.svg @@ -0,0 +1,26 @@ + + + 未知节点 + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/web/src/components/Chat/types.ts b/web/src/components/Chat/types.ts index 96e8e284..0cf1b130 100644 --- a/web/src/components/Chat/types.ts +++ b/web/src/components/Chat/types.ts @@ -23,6 +23,7 @@ export interface ChatItem { status?: string; subContent?: Record[]; files?: any[]; + error?: string; } /** diff --git a/web/src/i18n/en.ts b/web/src/i18n/en.ts index 02add0ec..9ed3f522 100644 --- a/web/src/i18n/en.ts +++ b/web/src/i18n/en.ts @@ -1341,7 +1341,9 @@ export const en = { dynamicMatchSkill: 'Dynamic Match Skill', executeTask: 'Execute Task', - importWorkflow: 'Import Workflow', + import: 'Import Application', + importWorkflow: 'Third-Party Workflow', + importThirdParty: 'Import Workflow', platform: 'Source Platform', upload: 'Upload & Parse', complex: 'Compatibility Analysis', @@ -1355,6 +1357,7 @@ export const en = { gotoList: 'Return to Application List', gotoDetail: 'View Details', dify: 'Dify', + pleaseUploadFile: 'Please upload workflow file', }, userMemory: { userMemory: 'User Memory', @@ -1985,6 +1988,7 @@ Memory Bear: After the rebellion, regional warlordism intensified for several re evolutionAndGovernance: 'Evolution & Governance', self_optimization: 'Self Optimization', process_evolution: 'Process Evolution', + unknown: 'Unknown Node', clickToConfigure: 'Click to configure node parameters', nodeProperties: 'Node Properties', diff --git a/web/src/i18n/zh.ts b/web/src/i18n/zh.ts index 06abf63a..e5e2444a 100644 --- a/web/src/i18n/zh.ts +++ b/web/src/i18n/zh.ts @@ -736,7 +736,9 @@ export const zh = { dynamicMatchSkill: '动态匹配技能', executeTask: '执行任务', - importWorkflow: '导入工作流', + import: '导入应用', + importWorkflow: '第三方工作流', + importThirdParty: '导入工作流', platform: '来源平台', upload: '上传与解析', complex: '兼容性分析', @@ -751,6 +753,7 @@ export const zh = { gotoList: '返回应用列表', gotoDetail: '查看详情', dify: 'Dify', + pleaseUploadFile: '请上传工作流文件', }, table: { totalRecords: '共 {{total}} 条记录' @@ -1982,6 +1985,7 @@ export const zh = { evolutionAndGovernance: '演化与治理', self_optimization: '自我优化', process_evolution: '流程演化', + unknown: '未知节点', clickToConfigure: '点击配置节点参数', nodeProperties: '节点属性', @@ -2169,6 +2173,9 @@ export const zh = { output_variables: '输出变量', refreshTip: '同步函数签名至代码', }, + unknown: { + replaceNodeType: '替换节点' + }, name: '键', type: '类型', value: '值', @@ -2200,7 +2207,8 @@ export const zh = { iteration: '迭代', input_cycle_vars: '初始循环变量', output_cycle_vars: '最终循环变量', - } + }, + sureReplace: '确认替换', }, emotionEngine: { emotionEngineConfig: '情感引擎配置', diff --git a/web/src/views/ApplicationManagement/components/UploadWorkflowModal.tsx b/web/src/views/ApplicationManagement/components/UploadWorkflowModal.tsx index 68bca452..f09328a5 100644 --- a/web/src/views/ApplicationManagement/components/UploadWorkflowModal.tsx +++ b/web/src/views/ApplicationManagement/components/UploadWorkflowModal.tsx @@ -2,7 +2,7 @@ * @Author: ZhaoYing * @Date: 2026-02-28 14:08:14 * @Last Modified by: ZhaoYing - * @Last Modified time: 2026-02-28 16:20:40 + * @Last Modified time: 2026-03-02 17:39:49 */ /** * UploadWorkflowModal Component @@ -14,7 +14,7 @@ * 4. Completed - Show success message and options */ import { forwardRef, useImperativeHandle, useState, useMemo } from 'react'; -import { Form, Select, Steps, Flex, Alert, Input, Button, Result } from 'antd'; +import { Form, Select, Steps, Flex, Alert, Input, Button, Result, message } from 'antd'; import { useTranslation } from 'react-i18next'; import type { UploadWorkflowModalData, UploadData, UploadWorkflowModalRef } from '../types' @@ -92,18 +92,22 @@ const UploadWorkflowModal = forwardRef { const response = res as UploadData; const { errors, warnings } = response; setData(response); - + // Navigate to error/warning step if any, otherwise go to confirmation if (errors.length || warnings.length) { setCurrent(1); @@ -203,7 +207,7 @@ const UploadWorkflowModal = forwardRef, ,