Reports - Sales

Conference Leads

Path/leads
Statustodo
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

TableColumns used
app_configkey, updated_at, value
b2b_leadsassigned_to, hubspot_contact_id, id, rejection_reason, status, updated_at
email_sendsapp, error, lang, provider, recipients, ref, sent_by, status, subject, subject_encrypted, template_key, to_email, to_email_encrypted, to_email_hash
email_templatesactive, 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

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
        • hooks/
          • useApi.ts
        • services/
          • api.ts
    • 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