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

37 lines
1021 B
TypeScript

"use client";
// Accessible on/off switch used by the policy editor and policy cards. Purely
// presentational: state and persistence live in the parent.
interface ToggleProps {
checked: boolean;
onChange: (next: boolean) => void;
disabled?: boolean;
label: string;
}
export function Toggle({ checked, onChange, disabled, label }: ToggleProps) {
return (
<button
type="button"
role="switch"
aria-checked={checked}
aria-label={label}
disabled={disabled}
onClick={() => onChange(!checked)}
className={[
"relative inline-flex h-6 w-11 shrink-0 items-center rounded-full transition-colors",
checked ? "bg-accent" : "bg-ink/20",
disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer",
].join(" ")}
>
<span
className={[
"inline-block h-4 w-4 transform rounded-full bg-white transition-transform",
checked ? "translate-x-6" : "translate-x-1",
].join(" ")}
/>
</button>
);
}