From 2771dffb7898888637261c9ad6b62130669d28f2 Mon Sep 17 00:00:00 2001 From: hsiegeln <37154749+hsiegeln@users.noreply.github.com> Date: Thu, 9 Apr 2026 18:16:53 +0200 Subject: [PATCH] fix: add /deployments redirect and fix GC Pauses chart X-axis Co-Authored-By: Claude Sonnet 4.6 --- ui/src/pages/AgentInstance/AgentInstance.tsx | 2 +- ui/src/router.tsx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/src/pages/AgentInstance/AgentInstance.tsx b/ui/src/pages/AgentInstance/AgentInstance.tsx index a811776c..f1f6d831 100644 --- a/ui/src/pages/AgentInstance/AgentInstance.tsx +++ b/ui/src/pages/AgentInstance/AgentInstance.tsx @@ -111,7 +111,7 @@ export default function AgentInstance() { const gcSeries = useMemo(() => { const pts = jvmMetrics?.metrics?.['jvm.gc.time']; if (!pts?.length) return null; - return [{ label: 'GC ms', data: pts.map((p: any) => ({ x: String(p.time ?? ''), y: p.value })) }]; + return [{ label: 'GC ms', data: pts.map((p: any, i: number) => ({ x: i, y: p.value })) }]; }, [jvmMetrics]); const throughputSeries = useMemo( diff --git a/ui/src/router.tsx b/ui/src/router.tsx index f4ec8b66..21dce608 100644 --- a/ui/src/router.tsx +++ b/ui/src/router.tsx @@ -65,6 +65,7 @@ export const router = createBrowserRouter([ { path: 'logs/:appId/:routeId', element: }, { path: 'config', element: }, { path: 'config/:appId', element: }, + { path: 'deployments', element: }, // Apps tab (OPERATOR+ via UI guard, shows all or single app) { path: 'apps', element: },