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

34 lines
1.1 KiB
TypeScript

"use client";
import { useState } from "react";
import { usePrefs } from "./usePrefs";
import { PrefsList } from "./PrefsList";
// Collapsible "Delivery preferences" card used inline on the notifications feed.
// Wraps the shared usePrefs hook + PrefsList so the main page stays declarative.
export function PrefsPanel() {
const [showPrefs, setShowPrefs] = useState(false);
const { prefsError, savingPref, isEnabled, onTogglePref } = usePrefs();
return (
<div className="mt-6 bg-white border border-ink/15 rounded-lg overflow-hidden">
<button
onClick={() => setShowPrefs((v) => !v)}
className="w-full px-5 py-3 border-b border-ink/10 text-sm font-medium text-ink/70 flex items-center justify-between"
aria-expanded={showPrefs}
>
<span>Delivery preferences</span>
<span className="text-xs text-ink/40">{showPrefs ? "Hide" : "Show"}</span>
</button>
{showPrefs ? (
<PrefsList
prefsError={prefsError}
savingPref={savingPref}
isEnabled={isEnabled}
onTogglePref={onTogglePref}
/>
) : null}
</div>
);
}