T
Running
Claude
DeepSeek
Codex
1// src/app/page.tsx - ConvoOps dashboard entry
2import { Suspense } from 'react';
3import { DataTable } from '@/components/DataTable';
4import { requireAuth } from '@/middleware/jwt';
5
6export default async function DashboardPage() {
7 const session = await requireAuth();
8 if (!session) throw new Error('unauthorized');
9
10 const rows = await loadConversations({
11 userId: session.id,
12 limit: 50,
13 expand: ['tags', 'lastMessage'],
14 });
15
16 return (
17 <main className="min-h-screen px-8 py-10">
18 <h1 className="text-3xl font-semibold">Conversations</h1>
19 <Suspense fallback={<Spinner />}>
20 <DataTable rows={rows} />
21 </Suspense>
22 </main>
23 );
24}
25
26// TODO(claude): rate-limit error toasts
TypeScript React - branch fix/jwt-expiry - 2 errorsLn 10, Col 23 - UTF-8 - LF - Spaces: 2
$ pnpm install
Lockfile is up to date, resolution step is skipped
Done in 1.2s using pnpm 9.5.0
$ pnpm dev
Next.js 15.0.3 (turbo)
Local: http://localhost:3000
Ready in 1.4s
Compiling /dashboard ...
Compiled /dashboard in 624ms
WARN Property 'expand' not in ConversationQuery - src/app/page.tsx:10
ERR TypeError: Cannot read properties of undefined (reading 'userId')