|
| 1 | +import Link from 'next/link' |
| 2 | + |
| 3 | +/** |
| 4 | + * Job detail page -- shows status, events timeline, and test results. |
| 5 | + * |
| 6 | + * This is a scaffold. The full implementation will: |
| 7 | + * - Fetch job details from Supabase |
| 8 | + * - Subscribe to real-time job_events updates |
| 9 | + * - Show test result diffs between loops |
| 10 | + * - Link to the created PR |
| 11 | + */ |
| 12 | +export default function JobDetailPage({ |
| 13 | + params, |
| 14 | +}: { |
| 15 | + params: { id: string } |
| 16 | +}) { |
| 17 | + return ( |
| 18 | + <main className="min-h-screen"> |
| 19 | + {/* Navigation */} |
| 20 | + <nav className="w-full border-b border-slate-200 bg-white/80 backdrop-blur-sm"> |
| 21 | + <div className="mx-auto flex max-w-6xl items-center justify-between px-6 py-4"> |
| 22 | + <Link href="/" className="flex items-center gap-2"> |
| 23 | + <span className="text-xl font-bold text-wright-700">Wright</span> |
| 24 | + <span className="rounded-full bg-wright-100 px-2 py-0.5 text-xs font-medium text-wright-700"> |
| 25 | + beta |
| 26 | + </span> |
| 27 | + </Link> |
| 28 | + <Link |
| 29 | + href="/new" |
| 30 | + className="rounded-lg bg-wright-600 px-4 py-2 text-sm font-medium text-white hover:bg-wright-700" |
| 31 | + > |
| 32 | + New Task |
| 33 | + </Link> |
| 34 | + </div> |
| 35 | + </nav> |
| 36 | + |
| 37 | + <div className="mx-auto max-w-4xl px-6 py-16"> |
| 38 | + <div className="flex items-center gap-3"> |
| 39 | + <h1 className="text-2xl font-bold text-slate-900">Job Details</h1> |
| 40 | + <code className="rounded bg-slate-100 px-2 py-1 font-mono text-sm text-slate-600"> |
| 41 | + {params.id} |
| 42 | + </code> |
| 43 | + </div> |
| 44 | + |
| 45 | + {/* Placeholder for job details */} |
| 46 | + <div className="mt-8 rounded-xl border border-slate-200 bg-white p-8"> |
| 47 | + <div className="space-y-4 text-slate-600"> |
| 48 | + <p> |
| 49 | + This page will show real-time job status, event timeline, and test |
| 50 | + results once connected to Supabase. |
| 51 | + </p> |
| 52 | + <div className="rounded-lg bg-slate-50 p-4"> |
| 53 | + <h3 className="text-sm font-semibold text-slate-700"> |
| 54 | + Coming Soon |
| 55 | + </h3> |
| 56 | + <ul className="mt-2 list-inside list-disc space-y-1 text-sm"> |
| 57 | + <li>Real-time status updates via Supabase Realtime</li> |
| 58 | + <li>Event timeline (claimed, cloning, editing, testing...)</li> |
| 59 | + <li>Test results per loop iteration</li> |
| 60 | + <li>Cost tracking (API spend per loop)</li> |
| 61 | + <li>Link to created PR</li> |
| 62 | + <li>Cancel / retry controls</li> |
| 63 | + </ul> |
| 64 | + </div> |
| 65 | + </div> |
| 66 | + </div> |
| 67 | + </div> |
| 68 | + </main> |
| 69 | + ) |
| 70 | +} |
0 commit comments