Lead Scoring Tool
18 files, 5 components
Last modified: ScoreCard.tsx (2h ago by Delamain)· 4 files changed today
Files
1"text-purple-400">import { db } "text-purple-400">from "@/lib/db";2"text-purple-400">import { DataTable } "text-purple-400">from "@/components/data-table";3"text-purple-400">import { FilterBar } "text-purple-400">from "@/components/filter-bar";4"text-purple-400">import "text-purple-400">type { Campaign } "text-purple-400">from "@/lib/types";56"text-purple-400">export "text-purple-400">default "text-purple-400">async "text-purple-400">function DashboardPage() {7 "text-purple-400">const campaigns = "text-purple-400">await db.query<Campaign>(`8 SELECT id, client_id, name, status,9 budget, start_date, end_date10 FROM campaigns11 WHERE status IN ('active', 'planning')12 ORDER BY start_date DESC13 `);1415 "text-purple-400">const activeCount = campaigns.filter(16 (c) => c.status === 'active'17 );1819 "text-purple-400">return (20 <div className="space-y-4 p-6">21 <div className="flex items-center justify-between">22 <h1 className="text-lg font-semibold">23 Campaign Dashboard24 </h1>25 <span className="text-sm text-muted-foreground">26 {campaigns.length} campaigns · {activeCount.length} active27 </span>28 </div>29 <FilterBar />30 <DataTable data={campaigns} />31 </div>32 );33}
Commit History
feat(ticket-6): add lead status update API
feat(ticket-4): build detail view with status timeline
feat(ticket-3): build lead list page with filters
feat(ticket-2): create Leads table schema and seed data
feat(ticket-1): set up project scaffold and auth
initial commit: scaffold from golden template