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

50 lines
1.5 KiB
TypeScript

import Link from "next/link";
import { StatusBadge } from "@/components/reviews/StatusBadge";
import type { ReviewStatus } from "@/lib/reviews/types";
export interface StatusCount {
status: ReviewStatus;
label: string;
count: number;
}
interface StatusBreakdownProps {
counts: StatusCount[];
total: number;
}
// Read-only grid of per-status review counts. Each card links to the queue
// pre-filtered to that status via the existing ?status= behaviour is driven
// client-side, so we just deep-link back to the queue.
export function StatusBreakdown({ counts, total }: StatusBreakdownProps) {
return (
<div>
<div className="grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3">
{counts.map((c) => (
<div
key={c.status}
className="rounded-lg border border-ink/15 bg-white p-4"
>
<div className="flex items-center justify-between">
<StatusBadge status={c.status} />
<span className="text-2xl font-semibold tabular-nums text-ink/80">
{c.count}
</span>
</div>
<p className="mt-2 text-xs text-ink/40">
{total > 0
? `${Math.round((c.count / total) * 100)}% of reviews`
: "No reviews yet"}
</p>
</div>
))}
</div>
<div className="mt-4 text-sm text-ink/60">
<Link href="/console/reviews" className="text-accent hover:underline">
Open the review queue →
</Link>
</div>
</div>
);
}