diff --git a/ui/src/pages/DashboardTab/DashboardL1.tsx b/ui/src/pages/DashboardTab/DashboardL1.tsx index 27fd2753..d3c38e03 100644 --- a/ui/src/pages/DashboardTab/DashboardL1.tsx +++ b/ui/src/pages/DashboardTab/DashboardL1.tsx @@ -51,7 +51,7 @@ const APP_COLUMNS: Column[] = [ { key: 'health', header: '', - render: (_, row) => , + render: (_, row) => , }, { key: 'appId', @@ -142,7 +142,7 @@ function aggregateByApp( // SLA compliance: weighted average of per-route slaCompliance from backend const appSettings = settingsMap.get(appId); - const slaWeightedSum = routes.reduce((s, r) => s + (r.slaCompliance ?? 100) * r.exchangeCount, 0); + const slaWeightedSum = routes.reduce((s, r) => s + ((r as Record).slaCompliance as number ?? 100) * r.exchangeCount, 0); const slaCompliance = totalExchanges > 0 ? slaWeightedSum / totalExchanges : 100; const errorCount = Math.round(totalFailed); @@ -413,7 +413,7 @@ export default function DashboardL1() { Application Health
{appRows.length} applications - +
diff --git a/ui/src/pages/DashboardTab/DashboardL2.tsx b/ui/src/pages/DashboardTab/DashboardL2.tsx index 79a51198..51cb0c69 100644 --- a/ui/src/pages/DashboardTab/DashboardL2.tsx +++ b/ui/src/pages/DashboardTab/DashboardL2.tsx @@ -113,7 +113,9 @@ const ROUTE_COLUMNS: Column[] = [ // ── Top errors columns ────────────────────────────────────────────────────── -const ERROR_COLUMNS: Column[] = [ +type ErrorRow = TopError & { id: string }; + +const ERROR_COLUMNS: Column[] = [ { key: 'errorType', header: 'Error Type', @@ -394,7 +396,6 @@ export default function DashboardL2() { diff --git a/ui/src/pages/DashboardTab/DashboardL3.tsx b/ui/src/pages/DashboardTab/DashboardL3.tsx index 83c94b75..034e7eae 100644 --- a/ui/src/pages/DashboardTab/DashboardL3.tsx +++ b/ui/src/pages/DashboardTab/DashboardL3.tsx @@ -56,7 +56,7 @@ const PROCESSOR_COLUMNS: Column[] = [ key: 'processorType', header: 'Type', sortable: true, - render: (_, row) => , + render: (_, row) => , }, { key: 'totalCount', @@ -411,7 +411,6 @@ export default function DashboardL3() { columns={PROCESSOR_COLUMNS} data={processorRows} sortable - defaultSort={{ key: 'p99DurationMs', direction: 'desc' }} /> diff --git a/ui/src/pages/DashboardTab/PunchcardHeatmap.tsx b/ui/src/pages/DashboardTab/PunchcardHeatmap.tsx index 1d5cdae2..abeacff7 100644 --- a/ui/src/pages/DashboardTab/PunchcardHeatmap.tsx +++ b/ui/src/pages/DashboardTab/PunchcardHeatmap.tsx @@ -126,7 +126,7 @@ export function PunchcardHeatmap({ cells, mode }: PunchcardHeatmapProps) { /> )} />} isAnimationActive={false} />