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>
28 lines
817 B
TypeScript
28 lines
817 B
TypeScript
"use client";
|
|
|
|
import { useParams } from "next/navigation";
|
|
import { ModuleHeader } from "@/components/rbac/ModuleHeader";
|
|
import { RoleEditorLoader } from "@/components/rbac/RoleEditorLoader";
|
|
|
|
// DETAIL/edit sub-page: load an existing role and edit its name + permissions.
|
|
export default function EditRolePage() {
|
|
const params = useParams<{ id: string }>();
|
|
const roleId = params?.id;
|
|
|
|
return (
|
|
<div className="max-w-4xl">
|
|
<ModuleHeader
|
|
title="Edit role"
|
|
subtitle="Update the role name or adjust which permissions it grants."
|
|
backHref="/console/settings/roles"
|
|
backLabel="Back to roles"
|
|
/>
|
|
{roleId ? (
|
|
<RoleEditorLoader roleId={roleId} />
|
|
) : (
|
|
<div className="text-sm text-red-600">Invalid role id.</div>
|
|
)}
|
|
</div>
|
|
);
|
|
}
|