feat: Human in the loop (#10675)

Co-authored-by: Giulio Andreini <g.andreini@gmail.com>
This commit is contained in:
Michael Kret
2024-10-07 16:45:22 +03:00
committed by GitHub
parent d2713ae50a
commit 41228b472d
24 changed files with 1298 additions and 196 deletions

View File

@@ -1,4 +1,11 @@
import type { ExecutionStatus, IDataObject, INode, IPinData, IRunData } from 'n8n-workflow';
import {
SEND_AND_WAIT_OPERATION,
type ExecutionStatus,
type IDataObject,
type INode,
type IPinData,
type IRunData,
} from 'n8n-workflow';
import type { ExecutionFilterType, ExecutionsQueryFilter } from '@/Interface';
import { isEmpty } from '@/utils/typesUtils';
import { FORM_TRIGGER_NODE_TYPE } from '../constants';
@@ -160,6 +167,10 @@ export const waitingNodeTooltip = () => {
return `${message}<a href="${resumeUrl}" target="_blank">${resumeUrl}</a>`;
}
}
if (lastNode?.parameters.operation === SEND_AND_WAIT_OPERATION) {
return i18n.baseText('ndv.output.sendAndWaitWaitingApproval');
}
} catch (error) {
// do not throw error if could not compose tooltip
}