Reports - Sales
B2B Leads
| Path | /b2b-leads |
|---|---|
| Status | todo |
| Drill-down pages | — |
| Pop-ups | (+6 inline) |
| Tabs | — |
| API routes | /api/b2b/hubspot-owners/api/b2b/leads/api/b2b/leads${qs/api/b2b/leads/:x/api/b2b/leads/:x/approve/api/b2b/leads/:x/assign/api/b2b/leads/:x/create-teams/api/b2b/leads/:x/reject |
Business rules
Written when this page is worked on (docs/BUSINESS-RULES.md).
Database tables & columns
| Table | Columns used |
|---|---|
app_config | key, updated_at, value |
b2b_leads | address, assigned_to, calendar_synced, city, company_name, created_at, dental_day_booked, dental_day_date, email, email_encrypted, email_hash, first_name, how_heard, hubspot_company_id, hubspot_contact_id, hubspot_form_id, hubspot_synced, id, insurance_carrier, job_title, last_name, lead_source, notes, num_employees, num_locations, page_url, phone, phone_encrypted, preferred_months, preferred_weekdays, rejection_reason, schedule_date, schedule_time, state, status, street, updated_at, utm_params, website, wellness_fair, wellness_fair_date, zip |
File structure
Its own files
- apps/
- web/
- src/
- pages/
- B2BLeads.tsx
- pages/
- src/
- web/
Shared code it uses (followed through its imports and the helpers its API calls; sign-in/access plumbing and UI primitives left out)
- apps/
- web/
- src/
- components/
- forms/
- DatePicker.tsx
- reports/
- DentrixSourceNote.tsx
- HowItWorksNote.tsx
- ReportHeader.tsx
- TableLoading.tsx
- TablePagination.tsx
- forms/
- hooks/
- useApi.ts
- services/
- api.ts
- components/
- src/
- worker/
- src/
- routes/
- b2b.ts
- services/
- phi-read-contacts.ts
- phi-read.ts
- phi.ts
- utils/
- crypto.ts
- phi-access.ts
- phi-crypto.ts
- routes/
- src/
- web/