From 4f7cd4bfa1e021abde3c2d44f95dc9c36b0d4511 Mon Sep 17 00:00:00 2001 From: kemal Date: Mon, 11 Aug 2025 15:19:50 +0100 Subject: [PATCH] feat: house chart filters in bar --- .../QueryInsights/QueryInsights.tsx | 5 ++- .../QueryInsights/components/MetricsChart.tsx | 34 ++++++++++--------- .../components/QueryInsightsBarChart.tsx | 2 +- 3 files changed, 21 insertions(+), 20 deletions(-) diff --git a/apps/studio/components/interfaces/QueryInsights/QueryInsights.tsx b/apps/studio/components/interfaces/QueryInsights/QueryInsights.tsx index 1df7ffdb78b..22a7754e2b9 100644 --- a/apps/studio/components/interfaces/QueryInsights/QueryInsights.tsx +++ b/apps/studio/components/interfaces/QueryInsights/QueryInsights.tsx @@ -111,7 +111,7 @@ export const QueryInsights = () => { { id: 'query_latency', label: 'Query latency', - description: `p95 in ${p95Latency}`, + description: `p95: ${p95Latency}`, tooltip: 'Shows the latency of each query execution.', }, { @@ -281,7 +281,7 @@ export const QueryInsights = () => { setSelectedMetric(value as MetricType)} - className="space-y-4" + className="pb-4" > {METRICS.map((metric) => ( @@ -334,7 +334,6 @@ export const QueryInsights = () => { -
-
- - - {selectedQuery && ( - +
+ - )} + + {selectedQuery && ( + + )} +
-
+
{ + onMouseMove={(e: any) => { if (e.activeTooltipIndex !== focusDataIndex) { setFocusDataIndex(e.activeTooltipIndex) }