From cc089bebd4e12fd9c3690c53568cb0100c838be4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20G=C3=B3mez=20Morales?= Date: Fri, 11 Apr 2025 16:41:59 +0200 Subject: [PATCH] fix(editor): Implement insight's design feedback 4 (#14550) --- .../insights/components/InsightsDashboard.vue | 26 ++++++++++++++++- .../tables/InsightsTableWorkflows.vue | 28 ++++++++++++++++--- .../src/plugins/i18n/locales/en.json | 5 +++- .../frontend/editor-ui/src/views/NodeView.vue | 6 ++++ 4 files changed, 59 insertions(+), 6 deletions(-) diff --git a/packages/frontend/editor-ui/src/features/insights/components/InsightsDashboard.vue b/packages/frontend/editor-ui/src/features/insights/components/InsightsDashboard.vue index 78af34d3508..1c1082a0f28 100644 --- a/packages/frontend/editor-ui/src/features/insights/components/InsightsDashboard.vue +++ b/packages/frontend/editor-ui/src/features/insights/components/InsightsDashboard.vue @@ -104,7 +104,22 @@ watch( />
- +
+ + + + {{ i18n.baseText('insights.chart.loading') }} +
diff --git a/packages/frontend/editor-ui/src/features/insights/components/tables/InsightsTableWorkflows.vue b/packages/frontend/editor-ui/src/features/insights/components/tables/InsightsTableWorkflows.vue index 4bf5ec7d101..b6ea1e1796c 100644 --- a/packages/frontend/editor-ui/src/features/insights/components/tables/InsightsTableWorkflows.vue +++ b/packages/frontend/editor-ui/src/features/insights/components/tables/InsightsTableWorkflows.vue @@ -15,7 +15,7 @@ import { smartDecimal } from '@n8n/utils/number/smartDecimal'; import { useTelemetry } from '@/composables/useTelemetry'; import { VIEWS } from '@/constants'; import { computed, ref, watch } from 'vue'; -import { type RouteLocationRaw } from 'vue-router'; +import { type RouteLocationRaw, type LocationQueryRaw } from 'vue-router'; const props = defineProps<{ data: InsightsByWorkflow; @@ -81,7 +81,7 @@ const headers = ref>>([ }, }, { - title: 'Project name', + title: i18n.baseText('insights.dashboard.table.projectName'), key: 'projectName', disableSort: true, }, @@ -101,11 +101,12 @@ const emit = defineEmits<{ ]; }>(); -const getWorkflowLink = (item: Item): RouteLocationRaw => ({ +const getWorkflowLink = (item: Item, query?: LocationQueryRaw): RouteLocationRaw => ({ name: VIEWS.WORKFLOW, params: { name: item.workflowId, }, + query, }); const trackWorkflowClick = (item: Item) => { @@ -146,6 +147,18 @@ watch(sortBy, (newValue) => { +