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

46 lines
1.4 KiB
TypeScript

import { useState } from "react";
import Link from "next/link";
import type { ToolCall } from "./types";
import { CallRow } from "./CallRow";
interface CallListProps {
calls: ToolCall[];
loading: boolean;
error: string | null;
}
// The tool-call history card: loading / error / empty states, otherwise a list
// of expandable CallRows. Owns the single-open-row expand state locally.
export function CallList({ calls, loading, error }: CallListProps) {
const [expanded, setExpanded] = useState<string | null>(null);
return (
<div className="mt-6 bg-white border border-ink/10 rounded-lg overflow-hidden">
{loading ? (
<div className="p-5 text-sm text-ink/40">Loading history...</div>
) : error ? (
<div className="p-5 text-sm text-red-600">{error}</div>
) : calls.length === 0 ? (
<div className="p-5 text-sm text-ink/40">
No tools have been called yet. Run one from the{" "}
<Link href="/console/tools" className="text-accent hover:underline">
tool catalog
</Link>
.
</div>
) : (
<ul className="divide-y divide-ink/10">
{calls.map((call) => (
<CallRow
key={call.id}
call={call}
isOpen={expanded === call.id}
onToggle={(id) => setExpanded((cur) => (cur === id ? null : id))}
/>
))}
</ul>
)}
</div>
);
}