Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
1.9 KiB
1.9 KiB
Why
Co-Lite exists to generate leads for INS and CV marketing. Managers need to see which events, salespeople and interests produce leads and which of those leads convert (status WON). Today the portal home page is a welcome line, and the system keeps only each event lead's current status, so it cannot say when a lead was won or how long it took. Approved design: docs/superpowers/specs/2026-12-01-lead-dashboard-design.md.
What Changes
- Every event-lead status change is recorded with its time and who made it. Capture records the first status. Existing event leads are backfilled with approximate times.
- A lead dashboard on the portal home page for a chosen period (this month, last month, or a custom range):
- tiles: captures, new leads, won in period, conversion rate, median days to win, overdue follow-ups;
- a status funnel;
- a trend of captures and wins;
- tables by event, by salesperson and by interest.
- A new back-office module
BO_DASHBOARDgates the dashboard. Users without it keep the welcome page. - Company scoping as on every other admin screen.
- The admin portal gains the
rechartsdependency (already used by babyboo's portal) for the trend chart.
Capabilities
New Capabilities
lead-dashboard: the dashboard, its definitions, period rules, access and company scope.
Modified Capabilities
event-lead-capture: adds the status change history requirement.
Impact
- Database
service-counter: new tableevent_lead_status_change, a backfill, and an index onevent_lead.service-system: onemodulerow. SQL insql/, mirrored inlocal/seed/03-colite.sql. solvway-services-counter: history writes on capture and edit; a new dashboard endpoint.solvway-mobile-api:GET /api/admin/dashboard/leads.solvway-admin-portal: home page, sidebar link,recharts.docs/deployment.md: the new SQL files.