From 01d1de1f0b0a5029892a5b9bc8eaa4951b33e785 Mon Sep 17 00:00:00 2001 From: Lukasz Raczylo Date: Sun, 21 Jun 2026 02:48:20 +0100 Subject: [PATCH] feat(admin): redesign dashboard and make cluster view a real control Replace the AI-slop visual (indigo->purple gradient, glassmorphism, uniform rounded cards, hover-lift) with a deliberate warm-paper 'instrument panel': monospace tabular telemetry, GraphQL brand magenta accent, flat hairline cards, real type hierarchy, WCAG-AA contrast, focus-visible, prefers-reduced-motion and aria-live status. No new font/CDN deps. Make the cluster-view toggle functional: the WebSocket stats stream now honours a ?view=local|cluster query param, so toggling streams this-node-only vs aggregated metrics instead of being cosmetic (the stream previously always sent cluster-aware data when an aggregator existed). The toggle is always visible -- disabled with a 'single node' hint when Redis cluster mode is off -- so it is discoverable. Fix cluster-mode rendering bugs: derive backend health from healthy/total instances (health card no longer stuck on 'Loading'), show 'n/a' for Redis memory instead of a misleading 0 MB, render aggregated CB/retry/coalescing/connections on the polling path too, and surface the proxy version and backend-health detail. Tests assert the served dashboard against stable markers instead of the cosmetic page title. --- admin/dashboard.html | 2288 ++++++++++++++++----------------------- admin_dashboard.go | 18 +- admin_dashboard_test.go | 7 +- 3 files changed, 968 insertions(+), 1345 deletions(-) diff --git a/admin/dashboard.html b/admin/dashboard.html index 4e3783d..7f23f3b 100644 --- a/admin/dashboard.html +++ b/admin/dashboard.html @@ -3,1463 +3,1073 @@ - GraphQL Proxy Admin Dashboard + graphql-proxy · console -
-
-
-
-

GraphQL Proxy Admin Dashboard

-
- Real-time monitoring and management - Connecting... -
-
-
- - -
+
+
+ + graphql-proxy · console + — +
+
+
+ + + + + + single node
+ Connecting
-
- -