From 00e4731bde73ef4d63c4308a697d629e75ba17ad Mon Sep 17 00:00:00 2001 From: Carsten Rehfeld Date: Sun, 17 May 2026 00:21:22 +0200 Subject: [PATCH] feat(admin): add time/% axes to live rate chart Y-axis shows 0/50/100% of rate limit with grid lines. X-axis shows -6m / -3m / now time labels. Live label also shows current utilisation percentage. Chart height increased to 96px to accommodate axes. Cache-busted admin.js to v4. Co-Authored-By: Mira Rehfeld --- .../templates/DashboardResource/sandbox.html | 77 +++++++++++++++---- 1 file changed, 62 insertions(+), 15 deletions(-) diff --git a/apix-admin/src/main/resources/templates/DashboardResource/sandbox.html b/apix-admin/src/main/resources/templates/DashboardResource/sandbox.html index 04eac74..81af3fa 100644 --- a/apix-admin/src/main/resources/templates/DashboardResource/sandbox.html +++ b/apix-admin/src/main/resources/templates/DashboardResource/sandbox.html @@ -64,7 +64,7 @@ button.promote:hover { background: #2ea043; } } .agent-blink { fill: #3d8bfd; opacity:0; animation: blink-pulse 2.8s ease-in-out infinite; } -#rate-wrap { background: #060d18; padding: 0 1.5rem 1rem; border-bottom: 1px solid #21262d; } +#rate-wrap { background: #060d18; padding: 0 1.5rem 0.5rem; border-bottom: 1px solid #21262d; } .rate-header { display: flex; align-items: baseline; gap: 0.75rem; padding: 0.6rem 0 0.4rem; } .rate-title { font-size: 0.65rem; color: #484f58; text-transform: uppercase; letter-spacing: 0.06em; } .rate-live { font-size: 0.75rem; color: #388bfd; } @@ -72,6 +72,8 @@ button.promote:hover { background: #2ea043; } #rate-chart { display: block; width: 100%; overflow: visible; } .rate-area { fill: #1f6feb33; stroke: #388bfd; stroke-width: 1.5; } .rate-limit-line { stroke: #f85149; stroke-width: 0.8; stroke-dasharray: 4 3; opacity: 0.5; } +.axis-label { font-size: 9px; fill: #484f58; font-family: 'SF Mono','Consolas','Fira Code',monospace; } +.axis-line { stroke: #21262d; stroke-width: 0.5; } @@ -124,7 +126,7 @@ button.promote:hover { background: #2ea043; } — req/min limit: {dashboard.ratePerMinute}/min ── - +
@@ -149,7 +151,7 @@ button.promote:hover { background: #2ea043; } - +