From 89777d32ac50f771857823b34864c2eeb47ddd25 Mon Sep 17 00:00:00 2001 From: oleg Date: Mon, 20 Jan 2025 15:14:23 +0100 Subject: [PATCH] feat(editor): Evaluation UI tweaks (#12659) (no-changelog) --- .../EditDefinition/EvaluationHeader.vue | 96 ----- .../EditDefinition/EvaluationStep.vue | 10 +- .../EditDefinition/NodesPinning.vue | 15 +- .../EditDefinition/TestNameInput.vue | 69 ++++ .../EditDefinition/sections/ConfigSection.vue | 235 +++++++++++ .../EditDefinition/sections/HeaderSection.vue | 134 +++++++ .../EditDefinition/sections/RunsSection.vue | 52 +++ .../ListDefinition/TestItem.vue | 55 +-- .../ListDefinition/TestsList.vue | 13 +- .../TestDefinition/ListRuns/TestRunsTable.vue | 2 +- .../composables/useTestDefinitionForm.ts | 6 - .../src/components/TestDefinition/types.ts | 10 + .../WorkflowSelectorParameterInput.vue | 1 + .../global/GlobalExecutionsListItem.vue | 6 + .../workflow/WorkflowExecutionsCard.vue | 12 +- .../src/plugins/i18n/locales/en.json | 10 + .../stores/testDefinition.store.ee.test.ts | 6 +- .../src/stores/testDefinition.store.ee.ts | 86 ++++- .../TestDefinition/TestDefinitionEditView.vue | 365 +++--------------- .../TestDefinition/TestDefinitionListView.vue | 106 ++++- .../TestDefinitionRunsListView.vue | 18 +- .../tests/TestDefinitionEditView.test.ts | 61 +-- .../tests/TestDefinitionListView.test.ts | 21 +- 23 files changed, 845 insertions(+), 544 deletions(-) delete mode 100644 packages/editor-ui/src/components/TestDefinition/EditDefinition/EvaluationHeader.vue create mode 100644 packages/editor-ui/src/components/TestDefinition/EditDefinition/TestNameInput.vue create mode 100644 packages/editor-ui/src/components/TestDefinition/EditDefinition/sections/ConfigSection.vue create mode 100644 packages/editor-ui/src/components/TestDefinition/EditDefinition/sections/HeaderSection.vue create mode 100644 packages/editor-ui/src/components/TestDefinition/EditDefinition/sections/RunsSection.vue diff --git a/packages/editor-ui/src/components/TestDefinition/EditDefinition/EvaluationHeader.vue b/packages/editor-ui/src/components/TestDefinition/EditDefinition/EvaluationHeader.vue deleted file mode 100644 index 9f5baa66d9..0000000000 --- a/packages/editor-ui/src/components/TestDefinition/EditDefinition/EvaluationHeader.vue +++ /dev/null @@ -1,96 +0,0 @@ - - - - - diff --git a/packages/editor-ui/src/components/TestDefinition/EditDefinition/EvaluationStep.vue b/packages/editor-ui/src/components/TestDefinition/EditDefinition/EvaluationStep.vue index 806daa36b3..01ab2188d9 100644 --- a/packages/editor-ui/src/components/TestDefinition/EditDefinition/EvaluationStep.vue +++ b/packages/editor-ui/src/components/TestDefinition/EditDefinition/EvaluationStep.vue @@ -9,6 +9,8 @@ interface EvaluationStep { small?: boolean; expanded?: boolean; description?: string; + issues?: Array<{ field: string; message: string }>; + showIssues?: boolean; } const props = withDefaults(defineProps(), { @@ -16,6 +18,8 @@ const props = withDefaults(defineProps(), { warning: false, small: false, expanded: true, + issues: () => [], + showIssues: true, }); const locale = useI18n(); @@ -46,7 +50,11 @@ const toggleExpand = async () => {

{{ title }}

- + + + {{ issues.map((issue) => issue.message).join(', ') }} + +