From c75972d57ce9effb3af9bf643222c4ba161fb398 Mon Sep 17 00:00:00 2001 From: rcourtman Date: Thu, 22 Jan 2026 09:39:53 +0000 Subject: [PATCH] Fix mock metrics history and guest drawer controls --- .../src/components/Dashboard/GuestDrawer.tsx | 20 ++-- frontend-modern/src/stores/metricsHistory.ts | 2 +- internal/api/diagnostics.go | 6 +- internal/config/config.go | 7 ++ internal/monitoring/mock_metrics_history.go | 5 + .../monitoring/mock_metrics_history_test.go | 50 +++++++++ pkg/metrics/store.go | 101 ++++++++++++++---- 7 files changed, 158 insertions(+), 33 deletions(-) diff --git a/frontend-modern/src/components/Dashboard/GuestDrawer.tsx b/frontend-modern/src/components/Dashboard/GuestDrawer.tsx index 977fa0acf..47105d80c 100644 --- a/frontend-modern/src/components/Dashboard/GuestDrawer.tsx +++ b/frontend-modern/src/components/Dashboard/GuestDrawer.tsx @@ -314,13 +314,13 @@ export const GuestDrawer: Component = (props) => {
{/* Toolbar: Range and View Toggle */} -
-
- Controls -
+
+
+ View +
-
- Range -
+
+ Range +
{(['24h', '7d', '30d', '90d'] as HistoryTimeRange[]).map(r => (