From 75799c01e6fc77906eff222c14d79654284584c5 Mon Sep 17 00:00:00 2001 From: Rocky Date: Fri, 23 Feb 2024 10:29:12 -0500 Subject: [PATCH] feat(dashboard-renderer): merge context into queries [MA-2304] (#1178) - Data providers are in charge of merging context -- it's different for metric cards vs charts. - Pick a reasonable default for timezone if not provided. - Translate time spec to timeframe for metric cards, unfortunately. - Externalize `analytics-utilities` dependency --- .../src/components/BarChartRenderer.vue | 1 + .../src/components/DashboardRenderer.vue | 12 +++++++ .../src/components/DashboardTile.vue | 5 +-- .../src/components/GoldenSignalsRenderer.vue | 35 ++++++++++++++++++- .../src/components/QueryDataProvider.vue | 27 +++++++++++--- .../src/components/SimpleChartRenderer.vue | 1 + .../components/TimeseriesChartRenderer.vue | 1 + .../src/types/dashboard-renderer-types.ts | 2 ++ .../dashboard-renderer/vite.config.ts | 8 ++++- 9 files changed, 84 insertions(+), 8 deletions(-) diff --git a/packages/analytics/dashboard-renderer/src/components/BarChartRenderer.vue b/packages/analytics/dashboard-renderer/src/components/BarChartRenderer.vue index 02cfadc6bc..4a70cf5af1 100644 --- a/packages/analytics/dashboard-renderer/src/components/BarChartRenderer.vue +++ b/packages/analytics/dashboard-renderer/src/components/BarChartRenderer.vue @@ -1,6 +1,7 @@