diff --git a/web/app/(commonLayout)/workflow/nodes/page.tsx b/web/app/(commonLayout)/workflow/nodes/page.tsx index e7402d9670..ad37e43649 100644 --- a/web/app/(commonLayout)/workflow/nodes/page.tsx +++ b/web/app/(commonLayout)/workflow/nodes/page.tsx @@ -7,11 +7,11 @@ import { BlockEnum } from '@/app/components/workflow/types' const nodes = [ BlockEnum.Start, BlockEnum.DirectAnswer, BlockEnum.LLM, BlockEnum.KnowledgeRetrieval, BlockEnum.QuestionClassifier, BlockEnum.IfElse, BlockEnum.Code, BlockEnum.TemplateTransform, BlockEnum.HttpRequest, - BlockEnum.Tool, + BlockEnum.Tool, BlockEnum.End, ].map((item, i) => ({ id: `${i + 1}`, type: 'custom', - position: { x: 330, y: 30 + i * 200 }, + position: { x: 330, y: 30 + i * 300 }, data: { type: item, name: item }, })) const initialNodes = nodes diff --git a/web/app/components/workflow/nodes/end/mock.ts b/web/app/components/workflow/nodes/end/mock.ts index effe7c3182..b12d98cba9 100644 --- a/web/app/components/workflow/nodes/end/mock.ts +++ b/web/app/components/workflow/nodes/end/mock.ts @@ -6,7 +6,7 @@ export const mockData: EndNodeType = { desc: 'Test', type: 'Test', outputs: { - type: EndVarType.none, + type: EndVarType.plainText, plain_text_selector: ['test'], structured_variables: [ { diff --git a/web/app/components/workflow/nodes/end/node.tsx b/web/app/components/workflow/nodes/end/node.tsx index 58f3e653da..218c820649 100644 --- a/web/app/components/workflow/nodes/end/node.tsx +++ b/web/app/components/workflow/nodes/end/node.tsx @@ -1,8 +1,23 @@ import type { FC } from 'react' +import { useTranslation } from 'react-i18next' +import { mockData } from './mock' + +const i18nPrefix = 'workflow.nodes.end' const Node: FC = () => { + const { t } = useTranslation() + const { outputs } = mockData return ( -