feat: migrate UI to @cameleer/design-system, add backend endpoints
Backend:
- Add agent_events table (V5) and lifecycle event recording
- Add route catalog endpoint (GET /routes/catalog)
- Add route metrics endpoint (GET /routes/metrics)
- Add agent events endpoint (GET /agents/events-log)
- Enrich AgentInstanceResponse with tps, errorRate, activeRoutes, uptimeSeconds
- Add TimescaleDB retention/compression policies (V6)
Frontend:
- Replace custom Mission Control UI with @cameleer/design-system components
- Rebuild all pages: Dashboard, ExchangeDetail, RoutesMetrics, AgentHealth,
AgentInstance, RBAC, AuditLog, OIDC, DatabaseAdmin, OpenSearchAdmin, Swagger
- New LayoutShell with design system AppShell, Sidebar, TopBar, CommandPalette
- Consume design system from Gitea npm registry (@cameleer/design-system@0.0.1)
- Add .npmrc for scoped registry, update Dockerfile with REGISTRY_TOKEN arg
CI:
- Pass REGISTRY_TOKEN build-arg to UI Docker build step
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-19 17:38:39 +01:00
|
|
|
import { useMemo } from 'react';
|
|
|
|
|
import { useParams } from 'react-router';
|
|
|
|
|
import {
|
|
|
|
|
StatCard, Sparkline, MonoText, Badge,
|
|
|
|
|
DataTable, AreaChart, LineChart, BarChart,
|
|
|
|
|
} from '@cameleer/design-system';
|
|
|
|
|
import type { Column } from '@cameleer/design-system';
|
|
|
|
|
import { useRouteMetrics } from '../../api/queries/catalog';
|
|
|
|
|
import { useExecutionStats, useStatsTimeseries } from '../../api/queries/executions';
|
|
|
|
|
import { useGlobalFilters } from '@cameleer/design-system';
|
2026-03-19 18:16:16 +01:00
|
|
|
import styles from './RoutesMetrics.module.css';
|
feat: migrate UI to @cameleer/design-system, add backend endpoints
Backend:
- Add agent_events table (V5) and lifecycle event recording
- Add route catalog endpoint (GET /routes/catalog)
- Add route metrics endpoint (GET /routes/metrics)
- Add agent events endpoint (GET /agents/events-log)
- Enrich AgentInstanceResponse with tps, errorRate, activeRoutes, uptimeSeconds
- Add TimescaleDB retention/compression policies (V6)
Frontend:
- Replace custom Mission Control UI with @cameleer/design-system components
- Rebuild all pages: Dashboard, ExchangeDetail, RoutesMetrics, AgentHealth,
AgentInstance, RBAC, AuditLog, OIDC, DatabaseAdmin, OpenSearchAdmin, Swagger
- New LayoutShell with design system AppShell, Sidebar, TopBar, CommandPalette
- Consume design system from Gitea npm registry (@cameleer/design-system@0.0.1)
- Add .npmrc for scoped registry, update Dockerfile with REGISTRY_TOKEN arg
CI:
- Pass REGISTRY_TOKEN build-arg to UI Docker build step
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-19 17:38:39 +01:00
|
|
|
|
|
|
|
|
interface RouteRow {
|
|
|
|
|
id: string;
|
|
|
|
|
routeId: string;
|
|
|
|
|
appId: string;
|
|
|
|
|
exchangeCount: number;
|
|
|
|
|
successRate: number;
|
|
|
|
|
avgDurationMs: number;
|
|
|
|
|
p99DurationMs: number;
|
|
|
|
|
errorRate: number;
|
|
|
|
|
throughputPerSec: number;
|
|
|
|
|
sparkline: number[];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default function RoutesMetrics() {
|
|
|
|
|
const { appId, routeId } = useParams();
|
|
|
|
|
const { timeRange } = useGlobalFilters();
|
|
|
|
|
const timeFrom = timeRange.start.toISOString();
|
|
|
|
|
const timeTo = timeRange.end.toISOString();
|
|
|
|
|
|
|
|
|
|
const { data: metrics } = useRouteMetrics(timeFrom, timeTo, appId);
|
|
|
|
|
const { data: stats } = useExecutionStats(timeFrom, timeTo, routeId, appId);
|
|
|
|
|
const { data: timeseries } = useStatsTimeseries(timeFrom, timeTo, routeId, appId);
|
|
|
|
|
|
|
|
|
|
const rows: RouteRow[] = useMemo(() =>
|
|
|
|
|
(metrics || []).map((m: any) => ({
|
|
|
|
|
id: `${m.appId}/${m.routeId}`,
|
|
|
|
|
...m,
|
|
|
|
|
})),
|
|
|
|
|
[metrics],
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
const sparklineData = useMemo(() =>
|
|
|
|
|
(timeseries?.buckets || []).map((b: any) => b.totalCount as number),
|
|
|
|
|
[timeseries],
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
const chartData = useMemo(() =>
|
2026-03-23 21:55:29 +01:00
|
|
|
(timeseries?.buckets || []).map((b: any, i: number) => {
|
|
|
|
|
const ts = b.timestamp ? new Date(b.timestamp) : null;
|
|
|
|
|
const time = ts && !isNaN(ts.getTime())
|
|
|
|
|
? ts.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' })
|
|
|
|
|
: String(i);
|
|
|
|
|
return {
|
|
|
|
|
time,
|
|
|
|
|
throughput: b.totalCount ?? 0,
|
|
|
|
|
latency: b.avgDurationMs ?? 0,
|
|
|
|
|
errors: b.failedCount ?? 0,
|
|
|
|
|
successRate: b.totalCount > 0 ? ((b.totalCount - b.failedCount) / b.totalCount) * 100 : 100,
|
|
|
|
|
};
|
|
|
|
|
}),
|
feat: migrate UI to @cameleer/design-system, add backend endpoints
Backend:
- Add agent_events table (V5) and lifecycle event recording
- Add route catalog endpoint (GET /routes/catalog)
- Add route metrics endpoint (GET /routes/metrics)
- Add agent events endpoint (GET /agents/events-log)
- Enrich AgentInstanceResponse with tps, errorRate, activeRoutes, uptimeSeconds
- Add TimescaleDB retention/compression policies (V6)
Frontend:
- Replace custom Mission Control UI with @cameleer/design-system components
- Rebuild all pages: Dashboard, ExchangeDetail, RoutesMetrics, AgentHealth,
AgentInstance, RBAC, AuditLog, OIDC, DatabaseAdmin, OpenSearchAdmin, Swagger
- New LayoutShell with design system AppShell, Sidebar, TopBar, CommandPalette
- Consume design system from Gitea npm registry (@cameleer/design-system@0.0.1)
- Add .npmrc for scoped registry, update Dockerfile with REGISTRY_TOKEN arg
CI:
- Pass REGISTRY_TOKEN build-arg to UI Docker build step
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-19 17:38:39 +01:00
|
|
|
[timeseries],
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
const columns: Column<RouteRow>[] = [
|
|
|
|
|
{ key: 'routeId', header: 'Route', render: (v) => <MonoText size="sm">{String(v)}</MonoText> },
|
|
|
|
|
{ key: 'appId', header: 'App', render: (v) => <Badge label={String(v)} color="auto" /> },
|
|
|
|
|
{ key: 'exchangeCount', header: 'Exchanges', sortable: true },
|
|
|
|
|
{
|
|
|
|
|
key: 'successRate', header: 'Success', sortable: true,
|
|
|
|
|
render: (v) => `${((v as number) * 100).toFixed(1)}%`,
|
|
|
|
|
},
|
|
|
|
|
{ key: 'avgDurationMs', header: 'Avg Duration', sortable: true, render: (v) => `${(v as number).toFixed(0)}ms` },
|
|
|
|
|
{ key: 'p99DurationMs', header: 'P99', sortable: true, render: (v) => `${(v as number).toFixed(0)}ms` },
|
|
|
|
|
{
|
|
|
|
|
key: 'errorRate', header: 'Error Rate', sortable: true,
|
2026-03-19 18:16:16 +01:00
|
|
|
render: (v) => {
|
|
|
|
|
const rate = v as number;
|
|
|
|
|
const cls = rate > 0.05 ? styles.rateBad : rate > 0.01 ? styles.rateWarn : styles.rateGood;
|
|
|
|
|
return <span className={cls}>{(rate * 100).toFixed(1)}%</span>;
|
|
|
|
|
},
|
feat: migrate UI to @cameleer/design-system, add backend endpoints
Backend:
- Add agent_events table (V5) and lifecycle event recording
- Add route catalog endpoint (GET /routes/catalog)
- Add route metrics endpoint (GET /routes/metrics)
- Add agent events endpoint (GET /agents/events-log)
- Enrich AgentInstanceResponse with tps, errorRate, activeRoutes, uptimeSeconds
- Add TimescaleDB retention/compression policies (V6)
Frontend:
- Replace custom Mission Control UI with @cameleer/design-system components
- Rebuild all pages: Dashboard, ExchangeDetail, RoutesMetrics, AgentHealth,
AgentInstance, RBAC, AuditLog, OIDC, DatabaseAdmin, OpenSearchAdmin, Swagger
- New LayoutShell with design system AppShell, Sidebar, TopBar, CommandPalette
- Consume design system from Gitea npm registry (@cameleer/design-system@0.0.1)
- Add .npmrc for scoped registry, update Dockerfile with REGISTRY_TOKEN arg
CI:
- Pass REGISTRY_TOKEN build-arg to UI Docker build step
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-19 17:38:39 +01:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: 'sparkline', header: 'Trend', width: '80px',
|
|
|
|
|
render: (v) => <Sparkline data={v as number[]} />,
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
|
fix: align all pages with design system mocks — stat cards, tables, detail panels
Dashboard: correct stat card labels (Exchanges/Success Rate/Errors/Throughput/Latency p99),
add detail text, trends, sparklines on all cards, Agent column, LIVE badge,
expanded detail panel with Agent/Correlation/Timestamp, "Open full details" link.
Agent Health: per-group meta (TPS/routes) in GroupCard header, proper HTML table
with column headers for instance list.
Agent Instance: stat card detail props (heap info, start date), scope trail with
inline status/version/routes badges.
Routes: 5th In-Flight stat card, enriched stat card props (detail/trend/sparkline),
SLA threshold line on latency chart.
Exchange Detail: Agent stat box in header.
Also: vite proxy CORS fix, cross-env dev scripts.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 20:28:56 +01:00
|
|
|
const errorRate = stats?.totalCount
|
|
|
|
|
? (((stats.failedCount ?? 0) / stats.totalCount) * 100)
|
|
|
|
|
: 0;
|
|
|
|
|
const prevErrorRate = stats?.prevTotalCount
|
|
|
|
|
? (((stats.prevFailedCount ?? 0) / stats.prevTotalCount) * 100)
|
|
|
|
|
: 0;
|
|
|
|
|
const errorTrend: 'up' | 'down' | 'neutral' = errorRate > prevErrorRate ? 'up' : errorRate < prevErrorRate ? 'down' : 'neutral';
|
|
|
|
|
const errorTrendValue = stats?.prevTotalCount
|
|
|
|
|
? `${Math.abs(errorRate - prevErrorRate).toFixed(2)}%`
|
|
|
|
|
: undefined;
|
|
|
|
|
|
|
|
|
|
const p99Ms = stats?.p99LatencyMs ?? 0;
|
|
|
|
|
const prevP99Ms = stats?.prevP99LatencyMs ?? 0;
|
|
|
|
|
const latencyTrend: 'up' | 'down' | 'neutral' = p99Ms > prevP99Ms ? 'up' : p99Ms < prevP99Ms ? 'down' : 'neutral';
|
|
|
|
|
const latencyTrendValue = prevP99Ms ? `${Math.abs(p99Ms - prevP99Ms)}ms` : undefined;
|
|
|
|
|
|
|
|
|
|
const totalCount = stats?.totalCount ?? 0;
|
|
|
|
|
const prevTotalCount = stats?.prevTotalCount ?? 0;
|
|
|
|
|
const throughputTrend: 'up' | 'down' | 'neutral' = totalCount > prevTotalCount ? 'up' : totalCount < prevTotalCount ? 'down' : 'neutral';
|
|
|
|
|
const throughputTrendValue = prevTotalCount
|
|
|
|
|
? `${Math.abs(((totalCount - prevTotalCount) / prevTotalCount) * 100).toFixed(0)}%`
|
|
|
|
|
: undefined;
|
|
|
|
|
|
|
|
|
|
const successRate = stats?.totalCount
|
|
|
|
|
? (((stats.totalCount - (stats.failedCount ?? 0)) / stats.totalCount) * 100)
|
|
|
|
|
: 100;
|
|
|
|
|
|
|
|
|
|
const activeCount = stats?.activeCount ?? 0;
|
|
|
|
|
|
|
|
|
|
const errorSparkline = (timeseries?.buckets || []).map((b: any) => b.failedCount as number);
|
|
|
|
|
const latencySparkline = (timeseries?.buckets || []).map((b: any) => b.p99DurationMs as number);
|
|
|
|
|
|
feat: migrate UI to @cameleer/design-system, add backend endpoints
Backend:
- Add agent_events table (V5) and lifecycle event recording
- Add route catalog endpoint (GET /routes/catalog)
- Add route metrics endpoint (GET /routes/metrics)
- Add agent events endpoint (GET /agents/events-log)
- Enrich AgentInstanceResponse with tps, errorRate, activeRoutes, uptimeSeconds
- Add TimescaleDB retention/compression policies (V6)
Frontend:
- Replace custom Mission Control UI with @cameleer/design-system components
- Rebuild all pages: Dashboard, ExchangeDetail, RoutesMetrics, AgentHealth,
AgentInstance, RBAC, AuditLog, OIDC, DatabaseAdmin, OpenSearchAdmin, Swagger
- New LayoutShell with design system AppShell, Sidebar, TopBar, CommandPalette
- Consume design system from Gitea npm registry (@cameleer/design-system@0.0.1)
- Add .npmrc for scoped registry, update Dockerfile with REGISTRY_TOKEN arg
CI:
- Pass REGISTRY_TOKEN build-arg to UI Docker build step
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-19 17:38:39 +01:00
|
|
|
return (
|
|
|
|
|
<div>
|
2026-03-19 18:16:16 +01:00
|
|
|
<div className={styles.statStrip}>
|
fix: align all pages with design system mocks — stat cards, tables, detail panels
Dashboard: correct stat card labels (Exchanges/Success Rate/Errors/Throughput/Latency p99),
add detail text, trends, sparklines on all cards, Agent column, LIVE badge,
expanded detail panel with Agent/Correlation/Timestamp, "Open full details" link.
Agent Health: per-group meta (TPS/routes) in GroupCard header, proper HTML table
with column headers for instance list.
Agent Instance: stat card detail props (heap info, start date), scope trail with
inline status/version/routes badges.
Routes: 5th In-Flight stat card, enriched stat card props (detail/trend/sparkline),
SLA threshold line on latency chart.
Exchange Detail: Agent stat box in header.
Also: vite proxy CORS fix, cross-env dev scripts.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 20:28:56 +01:00
|
|
|
<StatCard
|
|
|
|
|
label="Total Throughput"
|
|
|
|
|
value={totalCount.toLocaleString()}
|
|
|
|
|
detail="exchanges"
|
|
|
|
|
trend={throughputTrend}
|
|
|
|
|
trendValue={throughputTrendValue}
|
|
|
|
|
accent="amber"
|
|
|
|
|
sparkline={sparklineData}
|
|
|
|
|
/>
|
|
|
|
|
<StatCard
|
|
|
|
|
label="System Error Rate"
|
|
|
|
|
value={`${errorRate.toFixed(2)}%`}
|
|
|
|
|
detail={`${stats?.failedCount ?? 0} errors / ${totalCount.toLocaleString()} total`}
|
|
|
|
|
trend={errorTrend}
|
|
|
|
|
trendValue={errorTrendValue}
|
|
|
|
|
accent={errorRate < 1 ? 'success' : 'error'}
|
|
|
|
|
sparkline={errorSparkline}
|
|
|
|
|
/>
|
|
|
|
|
<StatCard
|
|
|
|
|
label="P99 Latency"
|
|
|
|
|
value={`${p99Ms}ms`}
|
|
|
|
|
detail={`Avg: ${stats?.avgDurationMs ?? 0}ms`}
|
|
|
|
|
trend={latencyTrend}
|
|
|
|
|
trendValue={latencyTrendValue}
|
|
|
|
|
accent={p99Ms > 300 ? 'error' : p99Ms > 200 ? 'warning' : 'success'}
|
|
|
|
|
sparkline={latencySparkline}
|
|
|
|
|
/>
|
|
|
|
|
<StatCard
|
|
|
|
|
label="Success Rate"
|
|
|
|
|
value={`${successRate.toFixed(1)}%`}
|
|
|
|
|
detail={`${activeCount} active routes`}
|
|
|
|
|
accent="success"
|
|
|
|
|
sparkline={sparklineData.map((v, i) => {
|
|
|
|
|
const failed = errorSparkline[i] ?? 0;
|
|
|
|
|
return v > 0 ? ((v - failed) / v) * 100 : 100;
|
|
|
|
|
})}
|
|
|
|
|
/>
|
|
|
|
|
<StatCard
|
|
|
|
|
label="In-Flight"
|
|
|
|
|
value={activeCount}
|
|
|
|
|
detail="active exchanges"
|
|
|
|
|
accent="amber"
|
|
|
|
|
/>
|
feat: migrate UI to @cameleer/design-system, add backend endpoints
Backend:
- Add agent_events table (V5) and lifecycle event recording
- Add route catalog endpoint (GET /routes/catalog)
- Add route metrics endpoint (GET /routes/metrics)
- Add agent events endpoint (GET /agents/events-log)
- Enrich AgentInstanceResponse with tps, errorRate, activeRoutes, uptimeSeconds
- Add TimescaleDB retention/compression policies (V6)
Frontend:
- Replace custom Mission Control UI with @cameleer/design-system components
- Rebuild all pages: Dashboard, ExchangeDetail, RoutesMetrics, AgentHealth,
AgentInstance, RBAC, AuditLog, OIDC, DatabaseAdmin, OpenSearchAdmin, Swagger
- New LayoutShell with design system AppShell, Sidebar, TopBar, CommandPalette
- Consume design system from Gitea npm registry (@cameleer/design-system@0.0.1)
- Add .npmrc for scoped registry, update Dockerfile with REGISTRY_TOKEN arg
CI:
- Pass REGISTRY_TOKEN build-arg to UI Docker build step
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-19 17:38:39 +01:00
|
|
|
</div>
|
|
|
|
|
|
2026-03-19 18:16:16 +01:00
|
|
|
<div className={styles.tableSection}>
|
|
|
|
|
<div className={styles.tableHeader}>
|
2026-03-23 21:55:29 +01:00
|
|
|
<span className={styles.tableTitle}>Per-Route Performance</span>
|
2026-03-19 18:16:16 +01:00
|
|
|
<span className={styles.tableMeta}>{rows.length} routes</span>
|
|
|
|
|
</div>
|
|
|
|
|
<DataTable
|
|
|
|
|
columns={columns}
|
|
|
|
|
data={rows}
|
|
|
|
|
sortable
|
|
|
|
|
pageSize={20}
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
feat: migrate UI to @cameleer/design-system, add backend endpoints
Backend:
- Add agent_events table (V5) and lifecycle event recording
- Add route catalog endpoint (GET /routes/catalog)
- Add route metrics endpoint (GET /routes/metrics)
- Add agent events endpoint (GET /agents/events-log)
- Enrich AgentInstanceResponse with tps, errorRate, activeRoutes, uptimeSeconds
- Add TimescaleDB retention/compression policies (V6)
Frontend:
- Replace custom Mission Control UI with @cameleer/design-system components
- Rebuild all pages: Dashboard, ExchangeDetail, RoutesMetrics, AgentHealth,
AgentInstance, RBAC, AuditLog, OIDC, DatabaseAdmin, OpenSearchAdmin, Swagger
- New LayoutShell with design system AppShell, Sidebar, TopBar, CommandPalette
- Consume design system from Gitea npm registry (@cameleer/design-system@0.0.1)
- Add .npmrc for scoped registry, update Dockerfile with REGISTRY_TOKEN arg
CI:
- Pass REGISTRY_TOKEN build-arg to UI Docker build step
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-19 17:38:39 +01:00
|
|
|
|
|
|
|
|
{chartData.length > 0 && (
|
2026-03-19 18:16:16 +01:00
|
|
|
<div className={styles.chartGrid}>
|
|
|
|
|
<div className={styles.chartCard}>
|
2026-03-23 21:55:29 +01:00
|
|
|
<div className={styles.chartTitle}>Throughput (msg/s)</div>
|
|
|
|
|
<AreaChart series={[{ label: 'Throughput', data: chartData.map((d: any, i: number) => ({ x: i, y: d.throughput })) }]} yLabel="msg/s" height={200} />
|
2026-03-19 18:16:16 +01:00
|
|
|
</div>
|
|
|
|
|
<div className={styles.chartCard}>
|
2026-03-23 21:55:29 +01:00
|
|
|
<div className={styles.chartTitle}>Latency (ms)</div>
|
fix: align all pages with design system mocks — stat cards, tables, detail panels
Dashboard: correct stat card labels (Exchanges/Success Rate/Errors/Throughput/Latency p99),
add detail text, trends, sparklines on all cards, Agent column, LIVE badge,
expanded detail panel with Agent/Correlation/Timestamp, "Open full details" link.
Agent Health: per-group meta (TPS/routes) in GroupCard header, proper HTML table
with column headers for instance list.
Agent Instance: stat card detail props (heap info, start date), scope trail with
inline status/version/routes badges.
Routes: 5th In-Flight stat card, enriched stat card props (detail/trend/sparkline),
SLA threshold line on latency chart.
Exchange Detail: Agent stat box in header.
Also: vite proxy CORS fix, cross-env dev scripts.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 20:28:56 +01:00
|
|
|
<LineChart
|
|
|
|
|
series={[{ label: 'Latency', data: chartData.map((d: any, i: number) => ({ x: i, y: d.latency })) }]}
|
2026-03-23 21:55:29 +01:00
|
|
|
yLabel="ms"
|
fix: align all pages with design system mocks — stat cards, tables, detail panels
Dashboard: correct stat card labels (Exchanges/Success Rate/Errors/Throughput/Latency p99),
add detail text, trends, sparklines on all cards, Agent column, LIVE badge,
expanded detail panel with Agent/Correlation/Timestamp, "Open full details" link.
Agent Health: per-group meta (TPS/routes) in GroupCard header, proper HTML table
with column headers for instance list.
Agent Instance: stat card detail props (heap info, start date), scope trail with
inline status/version/routes badges.
Routes: 5th In-Flight stat card, enriched stat card props (detail/trend/sparkline),
SLA threshold line on latency chart.
Exchange Detail: Agent stat box in header.
Also: vite proxy CORS fix, cross-env dev scripts.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 20:28:56 +01:00
|
|
|
height={200}
|
|
|
|
|
threshold={{ value: 300, label: 'SLA 300ms' }}
|
|
|
|
|
/>
|
2026-03-19 18:16:16 +01:00
|
|
|
</div>
|
|
|
|
|
<div className={styles.chartCard}>
|
2026-03-23 21:55:29 +01:00
|
|
|
<div className={styles.chartTitle}>Errors by Route</div>
|
2026-03-19 18:16:16 +01:00
|
|
|
<BarChart series={[{ label: 'Errors', data: chartData.map((d: any) => ({ x: d.time as string, y: d.errors })) }]} height={200} />
|
|
|
|
|
</div>
|
|
|
|
|
<div className={styles.chartCard}>
|
2026-03-23 21:55:29 +01:00
|
|
|
<div className={styles.chartTitle}>Message Volume (msg/min)</div>
|
|
|
|
|
<AreaChart series={[{ label: 'Volume', data: chartData.map((d: any, i: number) => ({ x: i, y: d.throughput })) }]} yLabel="msg/min" height={200} />
|
2026-03-19 18:16:16 +01:00
|
|
|
</div>
|
feat: migrate UI to @cameleer/design-system, add backend endpoints
Backend:
- Add agent_events table (V5) and lifecycle event recording
- Add route catalog endpoint (GET /routes/catalog)
- Add route metrics endpoint (GET /routes/metrics)
- Add agent events endpoint (GET /agents/events-log)
- Enrich AgentInstanceResponse with tps, errorRate, activeRoutes, uptimeSeconds
- Add TimescaleDB retention/compression policies (V6)
Frontend:
- Replace custom Mission Control UI with @cameleer/design-system components
- Rebuild all pages: Dashboard, ExchangeDetail, RoutesMetrics, AgentHealth,
AgentInstance, RBAC, AuditLog, OIDC, DatabaseAdmin, OpenSearchAdmin, Swagger
- New LayoutShell with design system AppShell, Sidebar, TopBar, CommandPalette
- Consume design system from Gitea npm registry (@cameleer/design-system@0.0.1)
- Add .npmrc for scoped registry, update Dockerfile with REGISTRY_TOKEN arg
CI:
- Pass REGISTRY_TOKEN build-arg to UI Docker build step
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-19 17:38:39 +01:00
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|