How tanishktewetia/leadmapper works
LeadMapper is a browser-only spreadsheet-to-outreach workspace: users open a local sheet or sample, configure detected columns and a message, work a searchable call list, track contact status, and export progress. The page orchestrates parsing, workspace state, persistence, and export; the UI and library modules handle the distinct stages. The README documents localStorage and WhatsApp/call behavior. Some component and workspace source is excerpted only, so relationships not shown in excerpts or the source index are omitted.
Main entry points: page.tsx App workflow · WorkspaceView.tsx Lead workspace · LeadRow.tsx Lead actions · Landing.tsx File landing
Components 19
User interface
- App workflow
app/page.tsx - File landing
components/Landing.tsx - Lead workspace
components/WorkspaceView.tsx - Lead actions
components/LeadRow.tsx - Workspace setup
components/Setup.tsx - Brand mark
components/Logo.tsx - Interface icons
components/icons.tsx
Sheet ingestion
- Workbook reader
lib/sheet.ts - Sample leads
lib/sample.ts
Lead processing
- Column detection
lib/detect.ts - Phone cleanup
lib/phone.ts - Message templates
lib/template.ts - Lead data model
lib/types.ts
Workspace progress
- Workspace state
lib/workspace.ts - CSV export
lib/export.ts - Browser storage
Other components
- User
- Phone app
Connections 28
- User → File landing: opens app
README.md - File landing → App workflow: sends file choice
app/page.tsx - App workflow → Workbook reader: reads workbook
app/page.tsx - App workflow → Sample leads: loads sample
app/page.tsx - App workflow → Workspace state: creates and restores
app/page.tsx - App workflow → Lead workspace: renders workspace
app/page.tsx - App workflow → File landing: renders landing
app/page.tsx - App workflow → CSV export: requests CSV
app/page.tsx - App workflow → Browser storage: saves and loads
README.md - Workbook reader → Lead data model: returns sheet data
lib/sheet.ts - Workspace state → Column detection: detects columns
lib/workspace.ts - Workspace state → Message templates: sets defaults
lib/workspace.ts - Lead workspace → Phone cleanup: normalizes numbers
components/WorkspaceView.tsx - Lead workspace → Message templates: fills messages
components/WorkspaceView.tsx - Lead workspace → Workspace setup: renders setup
components/WorkspaceView.tsx - Lead workspace → Lead actions: renders lead rows
components/WorkspaceView.tsx - Workspace setup → Message templates: previews template
components/Setup.tsx - Lead actions → Phone cleanup: builds WhatsApp link
components/LeadRow.tsx - Lead actions → WhatsApp: opens message link
README.md - Lead actions → Phone app: opens call link
README.md - Lead workspace → Browser storage: retains progress
README.md - CSV export → User: downloads CSV
README.md - File landing → Brand mark: renders branding
components/Landing.tsx - Lead workspace → Brand mark: renders branding
components/WorkspaceView.tsx - File landing → Interface icons: renders icons
components/Landing.tsx - Lead workspace → Interface icons: renders icons
components/WorkspaceView.tsx - Workspace setup → Interface icons: renders icons
components/Setup.tsx - Lead actions → Interface icons: renders icons
components/LeadRow.tsx