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

82 lines
2.5 KiB
TypeScript

"use client";
import type { ReferenceDto } from "../api";
function ReferenceRow({
reference,
onDelete,
}: {
reference: ReferenceDto;
onDelete: (id: string) => void;
}) {
const ref = reference;
return (
<tr className="border-b border-ink/10 last:border-0 align-top">
<td className="px-4 py-2 text-ink/80">
{ref.url ? (
<a
href={ref.url}
target="_blank"
rel="noreferrer"
className="hover:text-accent"
>
{ref.title ?? "Untitled"}
</a>
) : (
ref.title ?? "Untitled"
)}
{ref.journal ? (
<span className="block text-xs text-ink/40">{ref.journal}</span>
) : null}
</td>
<td className="px-4 py-2 text-ink/60">
{ref.authors.length > 0 ? ref.authors.slice(0, 3).join(", ") : "—"}
{ref.authors.length > 3 ? " et al." : ""}
</td>
<td className="px-4 py-2 text-ink/60">{ref.year ?? "—"}</td>
<td className="px-4 py-2 text-xs text-ink/50">
{ref.doi ? <span className="block">DOI: {ref.doi}</span> : null}
{ref.pmid ? <span className="block">PMID: {ref.pmid}</span> : null}
{ref.nctId ? <span className="block">{ref.nctId}</span> : null}
{!ref.doi && !ref.pmid && !ref.nctId ? "—" : null}
</td>
<td className="px-4 py-2 text-right">
<button
onClick={() => onDelete(ref.id)}
className="text-xs text-red-600 hover:underline"
>
Delete
</button>
</td>
</tr>
);
}
interface ReferencesTableProps {
references: ReferenceDto[];
onDelete: (id: string) => void;
}
export function ReferencesTable({ references, onDelete }: ReferencesTableProps) {
return (
<div className="bg-white border border-ink/15 rounded-lg overflow-hidden">
<table className="w-full text-sm">
<thead>
<tr className="border-b border-ink/10 text-left text-ink/50">
<th className="px-4 py-2 font-medium">Title</th>
<th className="px-4 py-2 font-medium">Authors</th>
<th className="px-4 py-2 font-medium">Year</th>
<th className="px-4 py-2 font-medium">Identifiers</th>
<th className="px-4 py-2 font-medium"></th>
</tr>
</thead>
<tbody>
{references.map((ref) => (
<ReferenceRow key={ref.id} reference={ref} onDelete={onDelete} />
))}
</tbody>
</table>
</div>
);
}