| name | gen-dashboard |
| description | Generate dashboard page with Recent blocks for each entity from brief |
| agent | _builder |
| argument-hint | |
/gen-dashboard — Generate Dashboard
What It Does
Creates or updates the dashboard page with:
- Summary cards — total count per entity (e.g., "12 Invoices", "5 Active Milestones")
- Recent blocks — last 5 items for each entity from brief, with status badges
- Quick actions — "New Invoice", "New Milestone" buttons linking to create dialogs
How
- Read brief.md — extract all entities
- Read existing dashboard route (likely
src/routes/_authenticated/dashboard.tsx or index.tsx)
- For each entity:
- Import its store
- Add a summary Card with count
- Add a "Recent " section showing last 5 items
- Add a quick action button
- Fetch data on mount via
useEffect
Template
<Card className="p-4">
<div className="flex items-center justify-between mb-3">
<h3 className="font-semibold">Recent <Entities></h3>
<Link to="/<entities>">View all</Link>
</div>
{items.slice(0, 5).map(item => (
<div key={item.public_id} className="flex justify-between py-2 border-b last:border-0">
<span>{item.<primary_field>}</span>
<Badge>{item.status}</Badge>
</div>
))}
{items.length === 0 && <p className="text-muted-foreground text-sm">No <entities> yet</p>}
</Card>
Acceptance Criteria