How shantanu700/lead_flow_frontend works
LeadFlow is a Next.js CRM frontend backed by a separate API. The main workflow is sign in, load the dashboard, manage leads and follow-ups, then review reports or export them. The graph includes the documented search, overdue notifications, and responsive/theme capabilities. Edges are limited to relationships shown in excerpts, the source index, or the README; several view implementations were not sampled, so uncertain internal calls are omitted.
Main entry points: dashboard/page.tsx Dashboard Frame · sdk.gen.ts Generated API Operations · use-dashboard.ts Dashboard State · auth/page.tsx Sign In / Register
Components 19
Entry and Session
- Sign In / Register
app/auth/page.tsx - Product Home
components/home/home.tsx
Lead Management
- Dashboard Frame
app/dashboard/page.tsx - Dashboard State
app/dashboard/use-dashboard.ts - Shared Dashboard Context
components/dashboard/context.tsx - Lead and Overview Views
components/dashboard/views/leads.tsx - Lead Table
components/dashboard/lead-table.tsx - Lead Add / Edit
components/dashboard/lead-dialog.tsx - Lead Timeline Drawer
components/dashboard/lead-sheet.tsx - Follow-up Views
components/dashboard/views/follow-ups.tsx - Navigation Rail
components/dashboard/rail.tsx
Search and Insights
- Search Palette
components/command-palette.tsx - Reports View
components/dashboard/views/reports.tsx - CSV Export
lib/report-csv.ts
Frontend and API
- API Configuration
lib/api.ts - Generated API Operations
src/client/sdk.gen.ts - Theme and Motion
components/theme-provider.tsx
Other components
- Sales Rep
- LeadFlow Backend API
Connections 22
- Sales Rep → Sign In / Register: signs in
- Sales Rep → Product Home: visits
- Product Home → Dashboard Frame: opens app
- Sign In / Register → Generated API Operations: calls auth
app/auth/page.tsx - Dashboard Frame → Dashboard State: loads state
app/dashboard/page.tsx - Dashboard Frame → Shared Dashboard Context: provides state
app/dashboard/page.tsx - Dashboard Frame → Lead and Overview Views: renders views
app/dashboard/page.tsx - Dashboard Frame → Follow-up Views: renders view
app/dashboard/page.tsx - Dashboard Frame → Reports View: renders view
app/dashboard/page.tsx - Dashboard Frame → Search Palette: renders palette
app/dashboard/page.tsx - Dashboard Frame → Lead Add / Edit: renders dialog
app/dashboard/page.tsx - Dashboard Frame → Lead Timeline Drawer: renders drawer
app/dashboard/page.tsx - Dashboard Frame → Navigation Rail: renders navigation
app/dashboard/page.tsx - Shared Dashboard Context → Dashboard State: exposes state
components/dashboard/context.tsx - Lead and Overview Views → Lead Table: renders rows
- Dashboard State → Generated API Operations: requests CRM data
app/dashboard/use-dashboard.ts - Search Palette → API Configuration: queries leads
components/command-palette.tsx - API Configuration → Generated API Operations: configures client
lib/api.ts - Generated API Operations → LeadFlow Backend API: sends API requests
- Reports View → CSV Export: exports reports
- Dashboard Frame → Theme and Motion: supports theme
- Dashboard Frame → Follow-up Views: shows overdue alerts
app/dashboard/page.tsx