From 74bf12fb211970bb532f7a1f20b1c23fc85a5dc8 Mon Sep 17 00:00:00 2001 From: Csaba Tuncsik Date: Mon, 9 Oct 2023 07:09:41 +0200 Subject: [PATCH 01/16] feat(editor): Load workflow history version to canvas --- .../WorkflowHistory/WorkflowHistoryContent.vue | 11 ++++++++--- packages/editor-ui/src/components/WorkflowPreview.vue | 5 +++++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/packages/editor-ui/src/components/WorkflowHistory/WorkflowHistoryContent.vue b/packages/editor-ui/src/components/WorkflowHistory/WorkflowHistoryContent.vue index 0f8e594552787..e95385ee30bc5 100644 --- a/packages/editor-ui/src/components/WorkflowHistory/WorkflowHistoryContent.vue +++ b/packages/editor-ui/src/components/WorkflowHistory/WorkflowHistoryContent.vue @@ -1,14 +1,19 @@ diff --git a/packages/editor-ui/src/components/WorkflowPreview.vue b/packages/editor-ui/src/components/WorkflowPreview.vue index c50f7d849d906..d7ecd49ae2a91 100644 --- a/packages/editor-ui/src/components/WorkflowPreview.vue +++ b/packages/editor-ui/src/components/WorkflowPreview.vue @@ -189,6 +189,11 @@ export default defineComponent({ this.loadExecution(); } }, + workflow() { + if (this.mode === 'workflow' && this.workflow) { + this.loadWorkflow(); + } + }, }, mounted() { window.addEventListener('message', this.receiveMessage); From fe2fb563c5669417aee89c4d8d2ba47475fc5ec9 Mon Sep 17 00:00:00 2001 From: Csaba Tuncsik Date: Mon, 9 Oct 2023 14:37:13 +0200 Subject: [PATCH 02/16] fix(editor): Reuse list item card in content area --- .../WorkflowHistoryContent.vue | 68 +++++++++++++++++- .../WorkflowHistory/WorkflowHistoryList.vue | 16 ++--- .../WorkflowHistoryListItem.vue | 71 +++++++++++++++---- .../__tests__/WorkflowHistoryList.test.ts | 18 +++-- .../src/plugins/i18n/locales/en.json | 4 ++ .../editor-ui/src/views/WorkflowHistory.vue | 28 ++++---- 6 files changed, 156 insertions(+), 49 deletions(-) diff --git a/packages/editor-ui/src/components/WorkflowHistory/WorkflowHistoryContent.vue b/packages/editor-ui/src/components/WorkflowHistory/WorkflowHistoryContent.vue index e95385ee30bc5..a93324d22d47d 100644 --- a/packages/editor-ui/src/components/WorkflowHistory/WorkflowHistoryContent.vue +++ b/packages/editor-ui/src/components/WorkflowHistory/WorkflowHistoryContent.vue @@ -1,17 +1,69 @@