Skip to content

feat: add lead activity timeline#417

Draft
saurabhhhcodes wants to merge 2 commits into
Kuldeeep18:mainfrom
saurabhhhcodes:codex/lead-activity-timeline
Draft

feat: add lead activity timeline#417
saurabhhhcodes wants to merge 2 commits into
Kuldeeep18:mainfrom
saurabhhhcodes:codex/lead-activity-timeline

Conversation

@saurabhhhcodes

Copy link
Copy Markdown
Contributor

Closes #389

What changed

  • Added a lead timeline endpoint that merges lead creation, campaign enrollment, send, open, click, reply, and bounce events into one chronological payload.
  • Added a right-side timeline drawer on the Leads page that opens when a lead row is clicked.
  • Recorded send and bounce timestamps on CampaignLead so the timeline can show real event times.
  • Fixed the lead delete-all endpoint to delete from the org-scoped base queryset instead of a distinct queryset.

Validation

  • python3 -m py_compile backend/leads/views.py backend/campaigns/models.py backend/campaigns/tasks.py backend/campaigns/views.py backend/leads/tests.py backend/campaigns/tests.py
  • python3 backend/manage.py test leads.tests.LeadTimelineTests leads.tests.LeadIsolationAPITests campaigns.tests.CampaignWorkflowTests.test_send_email_step_records_sent_timestamp_for_mock_delivery campaigns.tests.CampaignWorkflowTests.test_email_webhook_persists_bounce_metadata -v 2
  • node --check /tmp/leads-inline.js
  • git diff --check

@coderabbitai

coderabbitai Bot commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: ff3dbdcd-8821-44ce-894d-6c92b505d10e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LO-052 [Intermediate]: Lead Activity Timeline Component

1 participant