import Link from "next/link"; import { adminStats } from "@/lib/admin/tools"; import { fmtDateTime } from "@/lib/utils"; function Stat({ k, v, href, tone }: { k: string; v: React.ReactNode; href?: string; tone?: string }) { const c =

{k}

{v}

; return href ? {c} : c; } export default async function Dashboard() { const s = await adminStats(); return (

Dashboard

Editorial and operational health at a glance. Last audit entry {fmtDateTime(s.lastAudit)}.

Coverage by discipline (published)

{s.byCat.map((c: any) => )}
DisciplineToolsIn-depth
{c.name}{c.n}{c.deep}

Evidence confidence (published)

    {s.byConf.map((c: any) =>
  • {c.confidence}{c.n}
  • )}

Owner inventory

{s.active} active · {s.testing} testing · {s.candidate} candidates — open dashboard

AI usage this month

{s.aiUsage ? `${(s.aiUsage as any).calls} calls · ${Number((s.aiUsage as any).usd).toFixed(3)} USD` : "No AI calls (provider not configured or unused)."}

); }