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.0 KiB
TypeScript
35 lines
1.0 KiB
TypeScript
import Link from "next/link";
|
|
import { badgeFor, identifierLabel, type SourceItem } from "./sourceBadge";
|
|
|
|
interface SourceRowProps {
|
|
item: SourceItem;
|
|
}
|
|
|
|
export function SourceRow({ item }: SourceRowProps) {
|
|
const badge = badgeFor(item.source_type);
|
|
return (
|
|
<li className="flex items-center gap-3 rounded-lg border border-ink/10 bg-white p-3">
|
|
<span className={`shrink-0 rounded px-2 py-0.5 text-xs font-medium ${badge.classes}`}>
|
|
{badge.label}
|
|
</span>
|
|
<a
|
|
href={item.url}
|
|
target="_blank"
|
|
rel="noreferrer"
|
|
className="min-w-0 flex-1 truncate text-sm text-ink/80 hover:text-accent hover:underline"
|
|
>
|
|
{item.title ?? "Untitled source"}
|
|
</a>
|
|
<span className="shrink-0 text-xs text-ink/50">
|
|
{identifierLabel(item.source_type, item.external_id)}
|
|
</span>
|
|
<Link
|
|
href={`/sources/${item.id}`}
|
|
className="shrink-0 text-xs font-medium text-accent hover:underline"
|
|
>
|
|
View checks →
|
|
</Link>
|
|
</li>
|
|
);
|
|
}
|