feat(editor): Show sub workflow runs in the log view (#15163)

This commit is contained in:
Suguru Inoue
2025-05-13 14:14:01 +02:00
committed by GitHub
parent ff156930c5
commit 0c4398fd2f
17 changed files with 873 additions and 449 deletions

View File

@@ -25,7 +25,6 @@ import {
import { computed, defineAsyncComponent, onBeforeUnmount, onMounted, ref, toRef, watch } from 'vue';
import type {
IExecutionResponse,
INodeUi,
INodeUpdatePropertiesInformation,
IRunDataDisplayMode,
@@ -121,7 +120,7 @@ export type EnterEditModeArgs = {
type Props = {
workflow: Workflow;
workflowExecution?: IExecutionResponse;
workflowExecution?: IRunExecutionData;
runIndex: number;
tooMuchDataTitle: string;
executingMessage: string;
@@ -252,7 +251,7 @@ const isReadOnlyRoute = computed(() => route.meta.readOnlyCanvas === true);
const isWaitNodeWaiting = computed(() => {
return (
node.value?.name &&
workflowExecution.value?.data?.resultData?.runData?.[node.value?.name]?.[props.runIndex]
workflowExecution.value?.resultData?.runData?.[node.value?.name]?.[props.runIndex]
?.executionStatus === 'waiting'
);
});
@@ -339,13 +338,13 @@ const executionHints = computed(() => {
});
const workflowExecution = computed(
() => props.workflowExecution ?? workflowsStore.getWorkflowExecution ?? undefined,
() => props.workflowExecution ?? workflowsStore.getWorkflowExecution?.data ?? undefined,
);
const workflowRunData = computed(() => {
if (workflowExecution.value === undefined) {
return null;
}
const executionData: IRunExecutionData | undefined = workflowExecution.value?.data;
const executionData: IRunExecutionData | undefined = workflowExecution.value;
if (executionData?.resultData) {
return executionData.resultData.runData;
}
@@ -780,7 +779,7 @@ function getNodeHints(): NodeHint[] {
if (workflowNode) {
const nodeHints = nodeHelpers.getNodeHints(props.workflow, workflowNode, nodeType.value, {
runExecutionData: workflowExecution.value?.data ?? null,
runExecutionData: workflowExecution.value ?? null,
runIndex: props.runIndex,
connectionInputData: parentNodeOutputData.value,
});