From 55be933342db350c736c4cb7806dddfaf9db278a Mon Sep 17 00:00:00 2001 From: JzoNg Date: Tue, 20 Jan 2026 17:26:39 +0800 Subject: [PATCH 1/3] fix email input handle & email test sender UI --- .../delivery-method/recipient/email-input.tsx | 13 ++++++++----- .../delivery-method/test-email-sender.tsx | 6 +++--- web/eslint-suppressions.json | 5 ----- 3 files changed, 11 insertions(+), 13 deletions(-) diff --git a/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/email-input.tsx b/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/email-input.tsx index f4e5aa8ab5..8881bcf414 100644 --- a/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/email-input.tsx +++ b/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/email-input.tsx @@ -19,7 +19,7 @@ type Props = { value: RecipientItem[] list: Member[] onDelete: (recipient: RecipientItem) => void - onSelect: (value: any) => void + onSelect: (value: string) => void onAdd: (email: string) => void disabled?: boolean } @@ -69,7 +69,7 @@ const EmailInput = ({ setOpen(true) } - const handleSelect = (value: any) => { + const handleSelect = (value: string) => { setSearchKey('') setOpen(false) onSelect(value) @@ -89,10 +89,13 @@ const EmailInput = ({ return if (value.some(item => item.email === emailAddress)) return - if (list.some(item => item.email === emailAddress)) - onSelect(emailAddress) - else + if (list.some(item => item.email === emailAddress)) { + const item = list.find(item => item.email === emailAddress)! + onSelect(item.id) + } + else { onAdd(emailAddress) + } setSearchKey('') setOpen(false) } diff --git a/web/app/components/workflow/nodes/human-input/components/delivery-method/test-email-sender.tsx b/web/app/components/workflow/nodes/human-input/components/delivery-method/test-email-sender.tsx index 7f7632a3a7..aa3cb126ec 100644 --- a/web/app/components/workflow/nodes/human-input/components/delivery-method/test-email-sender.tsx +++ b/web/app/components/workflow/nodes/human-input/components/delivery-method/test-email-sender.tsx @@ -122,7 +122,7 @@ const EmailSenderModal = ({ return varInputs }, [availableNodes, config?.body, formContent, nodesOutputVars]) - const [inputs, setInputs] = useState>({}) + const [inputs, setInputs] = useState>({}) const [collapsed, setCollapsed] = useState(true) const [sendingEmail, setSendingEmail] = useState(false) const [done, setDone] = useState(false) @@ -193,7 +193,7 @@ const EmailSenderModal = ({ )} - {(onlySpecificUsers || combinedRecipients) && ( + {(onlySpecificUsers || combinedRecipients) && !debugEnabled && (
)}
- {(onlySpecificUsers || combinedRecipients) && ( + {(onlySpecificUsers || combinedRecipients) && !debugEnabled && ( <>
Date: Tue, 20 Jan 2026 17:43:42 +0800 Subject: [PATCH 2/3] use action is for executed action text --- .../chat/chat/answer/human-input-content/executed-action.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/components/base/chat/chat/answer/human-input-content/executed-action.tsx b/web/app/components/base/chat/chat/answer/human-input-content/executed-action.tsx index 7e9db4dce8..ccdfcb624b 100644 --- a/web/app/components/base/chat/chat/answer/human-input-content/executed-action.tsx +++ b/web/app/components/base/chat/chat/answer/human-input-content/executed-action.tsx @@ -20,7 +20,7 @@ const ExecutedAction = ({ i18nKey="nodes.humanInput.userActions.triggered" ns="workflow" components={{ strong: }} - values={{ actionName: executedAction.title }} + values={{ actionName: executedAction.id }} />
From 0138dc45b666aca72c88b863aa5f7c6a674fe0ba Mon Sep 17 00:00:00 2001 From: JzoNg Date: Tue, 20 Jan 2026 17:55:34 +0800 Subject: [PATCH 3/3] fix linit error --- web/app/components/workflow/nodes/human-input/panel.tsx | 2 +- web/eslint-suppressions.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/app/components/workflow/nodes/human-input/panel.tsx b/web/app/components/workflow/nodes/human-input/panel.tsx index 80e38e08bc..c3838f887f 100644 --- a/web/app/components/workflow/nodes/human-input/panel.tsx +++ b/web/app/components/workflow/nodes/human-input/panel.tsx @@ -181,7 +181,7 @@ const Panel: FC> = ({
{inputs.user_actions.map((action, index) => ( handleUserActionChange(index, data)} onDelete={handleUserActionDelete} diff --git a/web/eslint-suppressions.json b/web/eslint-suppressions.json index cfc6f3a20f..304548b8e4 100644 --- a/web/eslint-suppressions.json +++ b/web/eslint-suppressions.json @@ -3404,7 +3404,7 @@ }, "app/components/workflow/nodes/human-input/components/delivery-method/test-email-sender.tsx": { "ts/no-explicit-any": { - "count": 3 + "count": 2 } }, "app/components/workflow/nodes/human-input/components/form-content-preview.tsx": {