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

42 lines
1.2 KiB
TypeScript

import type { NotificationView } from "@/components/notifications/types";
import { NotificationRow } from "./NotificationRow";
interface NotificationListProps {
items: NotificationView[];
loading: boolean;
error: string | null;
unreadOnly: boolean;
onMarkRead: (id: string) => void;
}
// The notifications feed card, handling loading / error / empty / list states.
export function NotificationList({
items,
loading,
error,
unreadOnly,
onMarkRead,
}: NotificationListProps) {
return (
<div className="mt-6 bg-white border border-ink/15 rounded-lg overflow-hidden">
{loading ? (
<div className="p-5 text-sm text-ink/40">Loading notifications...</div>
) : error ? (
<div className="p-5 text-sm text-red-600">{error}</div>
) : items.length === 0 ? (
<div className="p-5 text-sm text-ink/40">
{unreadOnly
? "No unread notifications."
: "You have no notifications yet."}
</div>
) : (
<ul className="divide-y divide-ink/10">
{items.map((n) => (
<NotificationRow key={n.id} notification={n} onMarkRead={onMarkRead} />
))}
</ul>
)}
</div>
);
}