Reports - Sales
Conference Leads
| Path | /leads |
|---|---|
| Status | todo |
| Drill-down pages | — |
| Pop-ups | (+6 inline) |
| Tabs | — |
| API routes | /api/b2b/hubspot-owners/api/leads/availability/api/leads/leads/:x/api/leads/leads/:x/approve/api/leads/leads/:x/assign/api/leads/leads/:x/create-teams/api/leads/leads/:x/reject/api/leads/list:x |
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 | assigned_to, hubspot_contact_id, id, rejection_reason, status, updated_at |
email_sends | app, error, lang, provider, recipients, ref, sent_by, status, subject, subject_encrypted, template_key, to_email, to_email_encrypted, to_email_hash |
email_templates | active, bcc_emails, body_en, body_es, from_email, key, reply_to, subject_en, subject_es, to_emails |
File structure
Its own files
- apps/
- web/
- src/
- pages/
- Leads.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/
- reports/
- DentrixSourceNote.tsx
- HowItWorksNote.tsx
- ReportHeader.tsx
- TablePagination.tsx
- reports/
- hooks/
- useApi.ts
- services/
- api.ts
- components/
- src/
- worker/
- src/
- db/
- index.ts
- routes/
- b2b.ts
- leads.ts
- services/
- email-templates.ts
- phi-read.ts
- phi.ts
- utils/
- crypto.ts
- email.ts
- phi-access.ts
- phi-crypto.ts
- db/
- src/
- web/