Reports - Marketing
Landing Page Leads
| Path | /landing-page-leads |
|---|---|
| Status | todo |
| Drill-down pages | โ |
| Pop-ups | (+2 inline) |
| Tabs | 1 |
| API routes | /api/leads/landing-page |
Business rules
Written when this page is worked on (docs/BUSINESS-RULES.md).
Database tables & columns
| Table | Columns used |
|---|---|
dh_procedures_current view | amount, patient_id, service_date, status |
dh_next_appointments | next_date, patient_id |
dh_patient_procedures | read through the view dh_procedures_current |
dh_patients | dentrix_id, email_hash, phone_hash |
website_inquiries | archived_at, created_at, email, id, phone, source |
website_patient_requests | archived_at, archived_by, created_at, email_encrypted, email_status, full_name_encrypted, gclid, id, insurance_status, interest, landing_page_url, lead_notes, lead_notes_by, lead_status, lead_status_at, lead_status_by, page_choice, page_name, phone_encrypted, preferred_office, source, utm_campaign |
File structure
Its own files
- apps/
- web/
- src/
- pages/
- LandingPageLeads.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
- reports/
- hooks/
- useApi.ts
- services/
- api.ts
- components/
- src/
- worker/
- src/
- routes/
- leads.ts
- services/
- phi-read-contacts.ts
- phi-read.ts
- website-lead-labels.ts
- utils/
- crypto.ts
- phi-access.ts
- phi-crypto.ts
- routes/
- src/
- web/