From e54f450a9d36921dba8373c9498607f76c16ec61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20G=C3=B3mez=20Morales?= Date: Fri, 11 Apr 2025 09:40:38 +0200 Subject: [PATCH] fix(editor): Insights design review 3 (no-changelog) (#14520) --- .../src/features/insights/chartjs.utils.ts | 3 + .../insights/components/InsightsDashboard.vue | 68 ++++++----- .../insights/components/InsightsSummary.vue | 113 +++++++++--------- .../components/charts/InsightsChartFailed.vue | 18 +-- .../components/charts/InsightsChartTotal.vue | 21 ++-- .../src/plugins/i18n/locales/en.json | 5 +- 6 files changed, 121 insertions(+), 107 deletions(-) diff --git a/packages/frontend/editor-ui/src/features/insights/chartjs.utils.ts b/packages/frontend/editor-ui/src/features/insights/chartjs.utils.ts index feed42f377..0fd2c3614d 100644 --- a/packages/frontend/editor-ui/src/features/insights/chartjs.utils.ts +++ b/packages/frontend/editor-ui/src/features/insights/chartjs.utils.ts @@ -29,6 +29,7 @@ export const generateLineChartOptions = ( { responsive: true, maintainAspectRatio: false, + animation: false, plugins: { legend: { display: false, @@ -115,6 +116,7 @@ export const generateBarChartOptions = ( { responsive: true, maintainAspectRatio: false, + animation: false, plugins: { legend: { display: true, @@ -126,6 +128,7 @@ export const generateBarChartOptions = ( boxHeight: 8, borderRadius: 2, useBorderRadius: true, + color: colorTextLight.value, }, }, tooltip: { 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 4956771c89..78af34d350 100644 --- a/packages/frontend/editor-ui/src/features/insights/components/InsightsDashboard.vue +++ b/packages/frontend/editor-ui/src/features/insights/components/InsightsDashboard.vue @@ -91,56 +91,64 @@ watch( diff --git a/packages/frontend/editor-ui/src/features/insights/components/charts/InsightsChartFailed.vue b/packages/frontend/editor-ui/src/features/insights/components/charts/InsightsChartFailed.vue index a5b26b3ecc..244dee1242 100644 --- a/packages/frontend/editor-ui/src/features/insights/components/charts/InsightsChartFailed.vue +++ b/packages/frontend/editor-ui/src/features/insights/components/charts/InsightsChartFailed.vue @@ -1,14 +1,14 @@