From 2a8e57df4d337b075006ae257461d9f324d6288c Mon Sep 17 00:00:00 2001 From: krisztianfekete Date: Thu, 2 Jul 2026 17:57:39 +0200 Subject: [PATCH] fix release build tsc --- ui/src/components/runs/PassRateTrendChart.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/src/components/runs/PassRateTrendChart.tsx b/ui/src/components/runs/PassRateTrendChart.tsx index 5d6d16d..4b681f2 100644 --- a/ui/src/components/runs/PassRateTrendChart.tsx +++ b/ui/src/components/runs/PassRateTrendChart.tsx @@ -11,6 +11,7 @@ import { Tooltip, Legend, } from 'chart.js'; +import type { ChartOptions, TooltipItem } from 'chart.js'; import type { Run } from '../../lib/types'; import { CHART_COLORS, @@ -85,7 +86,7 @@ export const PassRateTrendChart: React.FC = ({ runs }) const multiAgent = agentNames.length > 0; - const options = { + const options: ChartOptions<'line'> = { responsive: true, maintainAspectRatio: false, interaction: { mode: 'index' as const, intersect: false }, @@ -102,8 +103,7 @@ export const PassRateTrendChart: React.FC = ({ runs }) padding: 12, cornerRadius: 6, callbacks: { - label: (ctx: { dataset: { label?: string }; parsed: { y: number } }) => - `${ctx.dataset.label}: ${ctx.parsed.y}%`, + label: (ctx: TooltipItem<'line'>) => `${ctx.dataset.label}: ${ctx.parsed.y}%`, }, }, },