/** * WorthDoing.ai * Author: Simon-Pierre Boucher * Contact: contact@spboucher.ai * File: src/app/history/page.tsx * Description: History page — all investigations with status, phase, outcome and telemetry. */ import Link from "next/link"; import { desc } from "drizzle-orm"; import { db } from "@/lib/db/client"; import { investigations } from "@/lib/db/schema"; import { InvestigationStatusBadge, PhaseBadge } from "@/components/wd/badges"; export const dynamic = "force-dynamic"; export default async function HistoryPage() { const rows = await db.select().from(investigations).orderBy(desc(investigations.createdAt)).limit(100); return (
No investigations yet
Launch one from the home page.
{inv.objective}
{inv.conclusion && ({inv.conclusion}
)}{inv.budgetUsed.searches} searches · {inv.budgetUsed.scrapes} reads ·{" "} {inv.budgetUsed.agentSteps} steps · ${inv.budgetUsed.costUsd.toFixed(2)}