From 7adfbd236ccc8ef1cd957bb458ea523ff2fe0caf Mon Sep 17 00:00:00 2001 From: Oleg Ivaniv Date: Tue, 12 Nov 2024 16:06:32 +0100 Subject: [PATCH] Refactor workflow evaluation list view and add new components MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Split EmptyState into separate component • Create TestItem and TestsList components • Update EvaluationListView with new components • Add WORKFLOW_EVALUATION_EDIT to constants • Improve styles and layout of test items --- .../ListEvaluation/EmptyState.vue | 31 ++ .../ListEvaluation/TestItem.vue | 135 +++++++++ .../ListEvaluation/TestsList.vue | 35 +++ packages/editor-ui/src/constants.ts | 1 + .../WorkflowEvaluation/EvaluationListView.vue | 139 +++++++++ .../WorkflowEvaluation/ListEvaluations.vue | 271 ------------------ 6 files changed, 341 insertions(+), 271 deletions(-) create mode 100644 packages/editor-ui/src/components/WorkflowEvaluation/ListEvaluation/EmptyState.vue create mode 100644 packages/editor-ui/src/components/WorkflowEvaluation/ListEvaluation/TestItem.vue create mode 100644 packages/editor-ui/src/components/WorkflowEvaluation/ListEvaluation/TestsList.vue create mode 100644 packages/editor-ui/src/views/WorkflowEvaluation/EvaluationListView.vue delete mode 100644 packages/editor-ui/src/views/WorkflowEvaluation/ListEvaluations.vue diff --git a/packages/editor-ui/src/components/WorkflowEvaluation/ListEvaluation/EmptyState.vue b/packages/editor-ui/src/components/WorkflowEvaluation/ListEvaluation/EmptyState.vue new file mode 100644 index 0000000000..7896764211 --- /dev/null +++ b/packages/editor-ui/src/components/WorkflowEvaluation/ListEvaluation/EmptyState.vue @@ -0,0 +1,31 @@ + + + + + diff --git a/packages/editor-ui/src/components/WorkflowEvaluation/ListEvaluation/TestItem.vue b/packages/editor-ui/src/components/WorkflowEvaluation/ListEvaluation/TestItem.vue new file mode 100644 index 0000000000..a876c64bcf --- /dev/null +++ b/packages/editor-ui/src/components/WorkflowEvaluation/ListEvaluation/TestItem.vue @@ -0,0 +1,135 @@ + + + + + diff --git a/packages/editor-ui/src/components/WorkflowEvaluation/ListEvaluation/TestsList.vue b/packages/editor-ui/src/components/WorkflowEvaluation/ListEvaluation/TestsList.vue new file mode 100644 index 0000000000..0d4964f360 --- /dev/null +++ b/packages/editor-ui/src/components/WorkflowEvaluation/ListEvaluation/TestsList.vue @@ -0,0 +1,35 @@ + + + + + diff --git a/packages/editor-ui/src/constants.ts b/packages/editor-ui/src/constants.ts index 415e3addd9..2e3a4278bb 100644 --- a/packages/editor-ui/src/constants.ts +++ b/packages/editor-ui/src/constants.ts @@ -485,6 +485,7 @@ export const enum VIEWS { WORKFLOWS = 'WorkflowsView', WORKFLOW_EXECUTIONS = 'WorkflowExecutions', WORKFLOW_EVALUATION = 'WorkflowEvaluation', + WORKFLOW_EVALUATION_EDIT = 'WorkflowEvaluationEdit', NEW_WORKFLOW_EVALUATION = 'NewWorkflowEvaluation', USAGE = 'Usage', LOG_STREAMING_SETTINGS = 'LogStreamingSettingsView', diff --git a/packages/editor-ui/src/views/WorkflowEvaluation/EvaluationListView.vue b/packages/editor-ui/src/views/WorkflowEvaluation/EvaluationListView.vue new file mode 100644 index 0000000000..977f44c991 --- /dev/null +++ b/packages/editor-ui/src/views/WorkflowEvaluation/EvaluationListView.vue @@ -0,0 +1,139 @@ + + + + diff --git a/packages/editor-ui/src/views/WorkflowEvaluation/ListEvaluations.vue b/packages/editor-ui/src/views/WorkflowEvaluation/ListEvaluations.vue deleted file mode 100644 index a946257edf..0000000000 --- a/packages/editor-ui/src/views/WorkflowEvaluation/ListEvaluations.vue +++ /dev/null @@ -1,271 +0,0 @@ - - - - -