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>
40 lines
1.2 KiB
TypeScript
40 lines
1.2 KiB
TypeScript
"use client";
|
|
|
|
import type { SavedViewDto } from "./api";
|
|
import { ViewRow } from "./ViewRow";
|
|
|
|
interface ViewsListProps {
|
|
views: SavedViewDto[];
|
|
deletingId: string | null;
|
|
onDelete: (view: SavedViewDto) => void;
|
|
}
|
|
|
|
// The saved-views table. Renders a <ViewRow/> per view; the parent owns loading,
|
|
// empty, and error states so this component only concerns itself with layout.
|
|
export function ViewsList({ views, deletingId, onDelete }: ViewsListProps) {
|
|
return (
|
|
<div className="overflow-hidden rounded-lg border border-ink/10 bg-white">
|
|
<table className="w-full">
|
|
<thead>
|
|
<tr className="text-left text-xs uppercase tracking-wide text-ink/40">
|
|
<th className="px-4 py-2 font-medium">View</th>
|
|
<th className="px-4 py-2 font-medium">Resource</th>
|
|
<th className="px-4 py-2 font-medium">Visibility</th>
|
|
<th className="px-4 py-2 text-right font-medium">Actions</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{views.map((view) => (
|
|
<ViewRow
|
|
key={view.id}
|
|
view={view}
|
|
deletingId={deletingId}
|
|
onDelete={onDelete}
|
|
/>
|
|
))}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
);
|
|
}
|