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>
35 lines
1.2 KiB
TypeScript
35 lines
1.2 KiB
TypeScript
import Link from "next/link";
|
|
import type { ImportBatch } from "@/lib/import/types";
|
|
import { BatchStatusBadge } from "./ImportStatusBadge";
|
|
|
|
function formatDate(iso: string): string {
|
|
const d = new Date(iso);
|
|
return Number.isNaN(d.getTime()) ? "—" : d.toLocaleString();
|
|
}
|
|
|
|
// One row in the import history table.
|
|
export function ImportHistoryRow({ batch }: { batch: ImportBatch }) {
|
|
return (
|
|
<tr className="border-t border-ink/10 hover:bg-paper">
|
|
<td className="px-3 py-2">
|
|
<Link
|
|
href={`/console/import/${batch.id}`}
|
|
className="font-medium text-accent hover:underline"
|
|
>
|
|
{batch.target}
|
|
</Link>
|
|
<div className="text-xs uppercase text-ink/40">{batch.format}</div>
|
|
</td>
|
|
<td className="px-3 py-2">
|
|
<BatchStatusBadge status={batch.status} />
|
|
</td>
|
|
<td className="px-3 py-2 text-right tabular-nums text-ink/80">{batch.total}</td>
|
|
<td className="px-3 py-2 text-right tabular-nums text-emerald-700">
|
|
{batch.succeeded}
|
|
</td>
|
|
<td className="px-3 py-2 text-right tabular-nums text-red-700">{batch.failed}</td>
|
|
<td className="px-3 py-2 text-sm text-ink/60">{formatDate(batch.createdAt)}</td>
|
|
</tr>
|
|
);
|
|
}
|