papertrail/components/sso/ConnectionSidePanel.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

39 lines
1.3 KiB
TypeScript

import type { SsoConnection } from "@/lib/sso/types";
import { PROTOCOL_LABELS } from "@/components/sso/fields";
// Side panel on the connection detail: at-a-glance metadata that doesn't belong
// in a tab. Presentational.
export function ConnectionSidePanel({
connection,
}: {
connection: SsoConnection;
}) {
const rows: { label: string; value: string }[] = [
{ label: "Protocol", value: PROTOCOL_LABELS[connection.protocol] ?? connection.protocol },
{ label: "Status", value: connection.status },
{ label: "Domain", value: connection.domain ?? "—" },
{ label: "Verified", value: connection.verified ? "Yes" : "No" },
{
label: "Created",
value: new Date(connection.createdAt).toLocaleDateString(),
},
];
return (
<aside className="bg-white border border-ink/10 rounded-lg p-4">
<h2 className="text-xs font-semibold uppercase tracking-wide text-ink/60">
Details
</h2>
<dl className="mt-3 space-y-2">
{rows.map((row) => (
<div key={row.label} className="flex justify-between gap-3 text-sm">
<dt className="text-ink/50">{row.label}</dt>
<dd className="text-ink/80 text-right truncate">{row.value}</dd>
</div>
))}
</dl>
</aside>
);
}