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>
62 lines
1.5 KiB
TypeScript
62 lines
1.5 KiB
TypeScript
"use client";
|
|
|
|
import Link from "next/link";
|
|
import { NotificationsHeader } from "./_components/NotificationsHeader";
|
|
import { NotificationList } from "./_components/NotificationList";
|
|
import { PrefsPanel } from "./_components/PrefsPanel";
|
|
import { useNotifications } from "./_components/useNotifications";
|
|
|
|
export default function NotificationsPage() {
|
|
const {
|
|
items,
|
|
loading,
|
|
error,
|
|
unreadOnly,
|
|
hasUnread,
|
|
setUnreadOnly,
|
|
onMarkRead,
|
|
onMarkAll,
|
|
} = useNotifications();
|
|
|
|
return (
|
|
<div>
|
|
<NotificationsHeader
|
|
title="Notifications"
|
|
subtitle="Activity across your organization."
|
|
>
|
|
<button
|
|
onClick={() => setUnreadOnly((v) => !v)}
|
|
className={`text-sm ${
|
|
unreadOnly ? "text-accent font-medium" : "text-ink/60"
|
|
} hover:underline`}
|
|
>
|
|
{unreadOnly ? "Showing unread" : "Show unread only"}
|
|
</button>
|
|
<button
|
|
onClick={onMarkAll}
|
|
disabled={!hasUnread}
|
|
className="text-sm text-accent hover:underline disabled:text-ink/30 disabled:no-underline"
|
|
>
|
|
Mark all read
|
|
</button>
|
|
<Link
|
|
href="/console/notifications/preferences"
|
|
className="text-sm text-ink/60 hover:text-accent"
|
|
>
|
|
Preferences
|
|
</Link>
|
|
</NotificationsHeader>
|
|
|
|
<NotificationList
|
|
items={items}
|
|
loading={loading}
|
|
error={error}
|
|
unreadOnly={unreadOnly}
|
|
onMarkRead={onMarkRead}
|
|
/>
|
|
|
|
<PrefsPanel />
|
|
</div>
|
|
);
|
|
}
|