Several CardTitle usages were text-base while others were already text-sm, giving section headers inconsistent sizes across pages. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BuWtppPBizG2NQRa31FCRa
37 lines
1.3 KiB
TypeScript
37 lines
1.3 KiB
TypeScript
import type { Metadata } from "next";
|
|
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
|
|
import { SessionsTable } from "@/components/sessions/SessionsTable";
|
|
import { PageNav } from "@/components/shared/PageNav";
|
|
import { listSessionsPage } from "@/lib/db/queries/sessions";
|
|
import { parsePage } from "@/lib/pagination";
|
|
|
|
export const dynamic = "force-dynamic";
|
|
export const metadata: Metadata = { title: "Sessions" };
|
|
|
|
export default async function SessionsPage({
|
|
searchParams,
|
|
}: {
|
|
searchParams: Promise<{ page?: string }>;
|
|
}) {
|
|
const page = parsePage((await searchParams).page);
|
|
const { items: sessions, pageSize, total } = await listSessionsPage(page);
|
|
|
|
return (
|
|
<div className="flex flex-col gap-6">
|
|
<div>
|
|
<h1 className="font-heading text-2xl font-semibold">Sessions</h1>
|
|
<p className="text-sm text-muted-foreground">History of live control and replay sessions.</p>
|
|
</div>
|
|
<Card className="bp-glass">
|
|
<CardHeader>
|
|
<CardTitle className="text-sm">History</CardTitle>
|
|
</CardHeader>
|
|
<CardContent className="flex flex-col gap-3">
|
|
<SessionsTable sessions={sessions} />
|
|
<PageNav basePath="/sessions" page={page} pageSize={pageSize} total={total} />
|
|
</CardContent>
|
|
</Card>
|
|
</div>
|
|
);
|
|
}
|