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>
47 lines
1.4 KiB
TypeScript
47 lines
1.4 KiB
TypeScript
"use client";
|
|
|
|
import type { ReportRun } from "@/lib/reporting/types";
|
|
import { StatusBadge } from "./StatusBadge";
|
|
import { ResultView } from "./ResultView";
|
|
import { formatDate } from "./format";
|
|
|
|
interface RunDetailProps {
|
|
run: ReportRun | null;
|
|
}
|
|
|
|
// Right-hand panel showing the selected run's composed result, or a prompt to
|
|
// pick a run when none is selected.
|
|
export function RunDetail({ run }: RunDetailProps) {
|
|
if (!run) {
|
|
return (
|
|
<div className="rounded-lg border border-ink/15 bg-white p-6 text-center text-sm text-ink/40">
|
|
Select a run to view its result.
|
|
</div>
|
|
);
|
|
}
|
|
|
|
return (
|
|
<div className="rounded-lg border border-ink/15 bg-white p-4">
|
|
<div className="flex items-center justify-between">
|
|
<h2 className="text-sm font-semibold text-ink/80">Run detail</h2>
|
|
<StatusBadge status={run.status} />
|
|
</div>
|
|
<p className="mt-1 text-xs text-ink/40">
|
|
{run.format.toUpperCase()} · {formatDate(run.createdAt)}
|
|
</p>
|
|
|
|
<div className="mt-4">
|
|
{run.status === "failed" ? (
|
|
<p className="text-sm text-red-700">
|
|
{run.error ?? "This run failed to compose."}
|
|
</p>
|
|
) : run.result ? (
|
|
<ResultView result={run.result} />
|
|
) : (
|
|
<p className="text-sm text-ink/40">No result recorded for this run.</p>
|
|
)}
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|