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

62 lines
1.3 KiB
TypeScript

import { accuracyClasses, statusClasses } from "../lib";
// Small pill badges used throughout the evaluation tables and cards.
export function AccuracyBadge({
value,
label,
}: {
value: number | null | undefined;
label: string;
}) {
return (
<span
className={`inline-block rounded-full border px-2 py-0.5 text-xs ${accuracyClasses(
value
)}`}
>
{label}
</span>
);
}
export function StatusBadge({ status }: { status: string }) {
return (
<span
className={`inline-block rounded-full border px-2 py-0.5 text-xs ${statusClasses(
status
)}`}
>
{status}
</span>
);
}
export function PassFailBadge({ passed }: { passed: boolean }) {
return (
<span
className={`inline-block rounded-full border px-2 py-0.5 text-xs ${
passed
? "bg-green-50 text-green-700 border-green-200"
: "bg-red-50 text-red-700 border-red-200"
}`}
>
{passed ? "PASS" : "FAIL"}
</span>
);
}
export function Check({ ok, label }: { ok: boolean; label: string }) {
return (
<span
className={`rounded border px-1.5 py-0.5 ${
ok
? "bg-green-50 text-green-700 border-green-200"
: "bg-red-50 text-red-700 border-red-200"
}`}
>
{ok ? "✓" : "✕"} {label}
</span>
);
}