caelum0x 695a365ae4 feat: PaperTrail — enterprise evidence-verification platform
Multi-tenant platform (182 pages, 228 API routes, ~30 modules) built on a
deterministic verification core: clinical-trial claims checked against
ClinicalTrials.gov registered results and raw event counts (ARR/NNT/RR+CI
recomputed in code, oracle-tested), code-enforced exact-span grounding, and
multi-source cross-verification. Auth/RBAC/multi-tenancy, document processing
at scale (unpdf + Docling), agentic workflows, Claude Science connector,
compliance/audit, billing, public API, and more.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-08 07:21:22 +03:00

44 lines
1.5 KiB
TypeScript

import Link from "next/link";
import { formatTime, formatPercent, type EvalRun } from "../lib";
// Bar-chart of accuracy over recent completed runs, linking to each run.
interface AccuracyTrendProps {
runs: EvalRun[];
}
export function AccuracyTrend({ runs }: AccuracyTrendProps) {
return (
<div className="mt-6 rounded-lg border border-ink/10 bg-white p-4">
<h2 className="text-sm font-medium text-ink/80">Accuracy over time</h2>
{runs.length === 0 ? (
<p className="mt-2 text-sm text-ink/40">
No completed runs yet. Create a set, add cases, and run it to see
accuracy trend here.
</p>
) : (
<div className="mt-3 flex items-end gap-2">
{[...runs].reverse().map((r) => (
<Link
key={r.id}
href={`/console/evaluation/runs/${r.id}`}
className="group flex flex-1 flex-col items-center gap-1"
title={`${formatPercent(r.accuracy)} · ${formatTime(r.createdAt)}`}
>
<div className="flex h-24 w-full items-end">
<div
className="w-full rounded-t bg-accent/70 group-hover:bg-accent"
style={{ height: `${Math.max(4, (r.accuracy ?? 0) * 100)}%` }}
/>
</div>
<span className="text-[10px] text-ink/50">
{formatPercent(r.accuracy)}
</span>
</Link>
))}
</div>
)}
</div>
);
}