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:
@@ -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(
|
||||
|
||||
@@ -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> },
|
||||
|
||||
Reference in New Issue
Block a user