papertrail/components/sso/StatusBadge.tsx
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
1.1 KiB
TypeScript

import type { SsoStatus, ScimStatus } from "@/lib/sso/types";
// Small colored pill for connection / directory lifecycle status. Presentational
// only — no data fetching.
const STYLES: Record<string, string> = {
active: "text-green-700 border-green-600/30 bg-green-50",
draft: "text-ink/50 border-ink/15 bg-paper",
disabled: "text-red-600 border-red-600/20 bg-red-50",
};
export function StatusBadge({ status }: { status: SsoStatus | ScimStatus }) {
const cls = STYLES[status] ?? STYLES.draft;
return (
<span
className={`inline-block text-xs rounded px-2 py-0.5 border ${cls}`}
>
{status}
</span>
);
}
// Verified / unverified pill for a connection's domain.
export function VerifiedBadge({ verified }: { verified: boolean }) {
return (
<span
className={`inline-block text-xs rounded px-2 py-0.5 border ${
verified
? "text-green-700 border-green-600/30 bg-green-50"
: "text-amber-700 border-amber-600/30 bg-amber-50"
}`}
>
{verified ? "domain verified" : "domain unverified"}
</span>
);
}