From 5ad950f60371546414ff17eb31171f2259e70f57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20G=C3=B3mez=20Morales?= Date: Mon, 24 Feb 2025 16:24:49 +0100 Subject: [PATCH] fix(editor): Ai 675 minor tweaks to tests list (#13467) --- .../TestDefinition/ListDefinition/TestItem.vue | 17 ++++++++--------- .../TestDefinition/TestDefinitionListView.vue | 8 +------- 2 files changed, 9 insertions(+), 16 deletions(-) diff --git a/packages/editor-ui/src/components/TestDefinition/ListDefinition/TestItem.vue b/packages/editor-ui/src/components/TestDefinition/ListDefinition/TestItem.vue index 401650974d..c072836e79 100644 --- a/packages/editor-ui/src/components/TestDefinition/ListDefinition/TestItem.vue +++ b/packages/editor-ui/src/components/TestDefinition/ListDefinition/TestItem.vue @@ -15,7 +15,7 @@ const props = defineProps<{ const locale = useI18n(); -type IconDefinition = { icon: string; color: IconColor }; +type IconDefinition = { icon: string; color: IconColor; spin?: boolean }; const statusesColorDictionary: Record = { new: { @@ -25,6 +25,7 @@ const statusesColorDictionary: Record = running: { icon: 'spinner', color: 'secondary', + spin: true, }, completed: { icon: 'exclamation-circle', @@ -36,7 +37,7 @@ const statusesColorDictionary: Record = }, cancelled: { icon: 'minus-circle', - color: 'success', + color: 'foreground-xdark', }, warning: { icon: 'exclamation-circle', @@ -76,7 +77,7 @@ const statusRender = computed(() => {
- {{ name }} + {{ name }} {{ locale.baseText('testDefinition.list.item.tests', { @@ -87,12 +88,10 @@ const statusRender = computed(() => {
- -
- - {{ statusRender.label }} - -
+ + + {{ statusRender.label }} +
diff --git a/packages/editor-ui/src/views/TestDefinition/TestDefinitionListView.vue b/packages/editor-ui/src/views/TestDefinition/TestDefinitionListView.vue index ef557d7f4c..bf1e25b0ee 100644 --- a/packages/editor-ui/src/views/TestDefinition/TestDefinitionListView.vue +++ b/packages/editor-ui/src/views/TestDefinition/TestDefinitionListView.vue @@ -56,17 +56,11 @@ const listItems = computed(() => const commands = { delete: onDeleteTest, - edit: onEditTest, } as const; type Action = { label: string; value: keyof typeof commands; disabled: boolean }; const actions = computed(() => [ - { - label: 'Edit test', - value: 'edit', - disabled: false, - }, { label: 'Delete', value: 'delete', @@ -252,7 +246,7 @@ async function onDeleteTest(testId: string) { .container { height: 100%; width: 100%; - max-width: var(--content-container-width); + max-width: 1184px; margin: auto; padding: var(--spacing-xl) var(--spacing-l); }