fix: add /deployments redirect and fix GC Pauses chart X-axis

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-04-09 18:16:53 +02:00
parent 80bc092ec1
commit 2771dffb78
2 changed files with 2 additions and 1 deletions

View File

@@ -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(

View File

@@ -65,6 +65,7 @@ export const router = createBrowserRouter([
{ path: 'logs/:appId/:routeId', element: <Navigate to="/runtime" replace /> },
{ path: 'config', element: <Navigate to="/apps" replace /> },
{ path: 'config/:appId', element: <Navigate to="/apps" replace /> },
{ path: 'deployments', element: <Navigate to="apps" replace /> },
// Apps tab (OPERATOR+ via UI guard, shows all or single app)
{ path: 'apps', element: <SuspenseWrapper><AppsTab /></SuspenseWrapper> },