diff --git a/web/app/components/workflow/nodes/doc-extractor/panel.tsx b/web/app/components/workflow/nodes/doc-extractor/panel.tsx index b5177306c9..9f520735e9 100644 --- a/web/app/components/workflow/nodes/doc-extractor/panel.tsx +++ b/web/app/components/workflow/nodes/doc-extractor/panel.tsx @@ -27,7 +27,7 @@ const Panel: FC> = ({
> = ({ data, @@ -26,7 +26,7 @@ const NodeComponent: FC> = ({ const varName = isSystem ? `sys.${variable[variable.length - 1]}` : variable.slice(1).join('.') return (
-
{t(`${i18nPrefix}.assignedVariable`)}
+
{t(`${i18nPrefix}.inputVar`)}
> = ({ id, @@ -26,7 +27,7 @@ const Panel: FC> = ({
> = ({ />
+
+ + <> + + + + + +
) } diff --git a/web/app/components/workflow/nodes/list-filter/types.ts b/web/app/components/workflow/nodes/list-filter/types.ts index cf0f1cac9b..bbb4b24306 100644 --- a/web/app/components/workflow/nodes/list-filter/types.ts +++ b/web/app/components/workflow/nodes/list-filter/types.ts @@ -1,5 +1,20 @@ import type { CommonNodeType, ValueSelector } from '@/app/components/workflow/types' +export enum OrderBy { + ASC = 'asc', + DESC = 'desc', +} + export type ListFilterNodeType = CommonNodeType & { variable: ValueSelector + filterBy: [] + orderBy: { + enabled: boolean + key: ValueSelector | string + value: OrderBy + } + limit: { + enabled: boolean + value: number + } } diff --git a/web/i18n/en-US/workflow.ts b/web/i18n/en-US/workflow.ts index 180e4fb8ec..b2d9ca6c93 100644 --- a/web/i18n/en-US/workflow.ts +++ b/web/i18n/en-US/workflow.ts @@ -494,11 +494,19 @@ const translation = { }, }, docExtractor: { - inputVars: 'Input Variables', + inputVar: 'Input Variable', outputVars: { text: 'Extracted text', }, }, + listFilter: { + inputVar: 'Input Variable', + outputVars: { + result: 'Filter result', + first_record: 'First record', + last_record: 'Last record', + }, + }, }, tracing: { stopBy: 'Stop by {{user}}', diff --git a/web/i18n/zh-Hans/workflow.ts b/web/i18n/zh-Hans/workflow.ts index d5296f9f10..983acca290 100644 --- a/web/i18n/zh-Hans/workflow.ts +++ b/web/i18n/zh-Hans/workflow.ts @@ -494,11 +494,19 @@ const translation = { }, }, docExtractor: { - inputVars: '输入变量', + inputVar: '输入变量', outputVars: { text: '提取的文本', }, }, + listFilter: { + inputVar: '输入变量', + outputVars: { + result: '过滤结果', + first_record: '第一条记录', + last_record: '最后一条记录', + }, + }, }, tracing: { stopBy: '由{{user}}终止',