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>
54 lines
2.0 KiB
TypeScript
54 lines
2.0 KiB
TypeScript
import { labelFor, statusClasses, type EvalResult } from "./evalTypes";
|
|
|
|
interface EvalResultsTableProps {
|
|
rows: EvalResult[];
|
|
}
|
|
|
|
export function EvalResultsTable({ rows }: EvalResultsTableProps) {
|
|
return (
|
|
<div className="mt-6 overflow-x-auto rounded-lg border border-ink/10 bg-white">
|
|
<table className="w-full text-sm">
|
|
<thead>
|
|
<tr className="border-b border-ink/10 text-left text-xs uppercase tracking-wide text-ink/40">
|
|
<th className="px-3 py-2 font-medium">Fixture</th>
|
|
<th className="px-3 py-2 font-medium">Status</th>
|
|
<th className="px-3 py-2 font-medium">Got</th>
|
|
<th className="px-3 py-2 font-medium">Expected</th>
|
|
<th className="px-3 py-2 font-medium">Trust</th>
|
|
<th className="px-3 py-2 font-medium">Grounded</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{rows.map((row) => (
|
|
<tr key={row.id} className="border-b border-ink/5 last:border-0">
|
|
<td className="px-3 py-2 font-mono text-xs text-ink/70">{row.id}</td>
|
|
<td className="px-3 py-2">
|
|
<span
|
|
className={`rounded px-2 py-0.5 text-xs font-medium ${statusClasses(row.status)}`}
|
|
>
|
|
{row.status}
|
|
{row.expectedFailure && row.status === "fail" ? "*" : ""}
|
|
</span>
|
|
</td>
|
|
<td className="px-3 py-2 text-ink/70">{labelFor(row.discrepancyType)}</td>
|
|
<td className="px-3 py-2 text-ink/70">
|
|
{labelFor(row.expectedDiscrepancyType)}
|
|
</td>
|
|
<td className="px-3 py-2 text-ink/70">
|
|
{row.trustScore ?? "—"}
|
|
</td>
|
|
<td className="px-3 py-2 text-ink/70">
|
|
{row.groundingOk === undefined
|
|
? "—"
|
|
: row.groundingOk
|
|
? "ok"
|
|
: "BROKEN"}
|
|
</td>
|
|
</tr>
|
|
))}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
);
|
|
}
|