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

56 lines
1.6 KiB
TypeScript

import type { IntegrationEvent } from "./types";
function EventRow({ event }: { event: IntegrationEvent }) {
const ev = event;
return (
<li className="px-5 py-3 flex items-center justify-between gap-4">
<div className="min-w-0">
<div className="text-sm text-ink/80 truncate">
{ev.event}
<span className="ml-2 text-xs text-ink/40">{ev.direction}</span>
</div>
<div className="text-xs text-ink/40 truncate">
{typeof ev.payload.detail === "string" ? ev.payload.detail : ""} ·{" "}
{new Date(ev.createdAt).toLocaleString()}
</div>
</div>
<span
className={`text-xs shrink-0 ${
ev.status === "success"
? "text-ink/60"
: ev.status === "skipped"
? "text-ink/40"
: "text-red-600"
}`}
>
{ev.status}
</span>
</li>
);
}
interface EventLogProps {
events: IntegrationEvent[];
}
// The recent-events card for an integration: header + empty state or a list of
// event rows (newest first, as returned by the API).
export function EventLog({ events }: EventLogProps) {
return (
<div className="mt-8 bg-white border border-ink/10 rounded-lg overflow-hidden">
<div className="px-5 py-3 border-b border-ink/10 text-sm font-medium text-ink/70">
Recent events
</div>
{events.length === 0 ? (
<div className="p-5 text-sm text-ink/40">No events yet.</div>
) : (
<ul className="divide-y divide-ink/10">
{events.map((ev) => (
<EventRow key={ev.id} event={ev} />
))}
</ul>
)}
</div>
);
}