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>
45 lines
1.4 KiB
TypeScript
45 lines
1.4 KiB
TypeScript
"use client";
|
|
|
|
import type { ReportRun } from "@/lib/reporting/types";
|
|
import { StatusBadge } from "./StatusBadge";
|
|
import { formatDate } from "./format";
|
|
|
|
interface RunsTableProps {
|
|
runs: ReportRun[];
|
|
selectedId: string | null;
|
|
onSelect: (run: ReportRun) => void;
|
|
}
|
|
|
|
// Table of a definition's runs. Selecting a row surfaces its composed result in
|
|
// the adjacent RunDetail panel.
|
|
export function RunsTable({ runs, selectedId, onSelect }: RunsTableProps) {
|
|
return (
|
|
<table className="w-full text-left text-sm">
|
|
<thead>
|
|
<tr className="text-xs uppercase tracking-wide text-ink/40">
|
|
<th className="px-4 py-2 font-medium">Status</th>
|
|
<th className="px-4 py-2 font-medium">Format</th>
|
|
<th className="px-4 py-2 font-medium">Created</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{runs.map((run) => (
|
|
<tr
|
|
key={run.id}
|
|
onClick={() => onSelect(run)}
|
|
className={`cursor-pointer border-t border-ink/10 hover:bg-paper ${
|
|
selectedId === run.id ? "bg-paper" : ""
|
|
}`}
|
|
>
|
|
<td className="px-4 py-3">
|
|
<StatusBadge status={run.status} />
|
|
</td>
|
|
<td className="px-4 py-3 uppercase text-ink/60">{run.format}</td>
|
|
<td className="px-4 py-3 text-ink/50">{formatDate(run.createdAt)}</td>
|
|
</tr>
|
|
))}
|
|
</tbody>
|
|
</table>
|
|
);
|
|
}
|