Skip to content

feat: brand unsubscribe page#422

Draft
saurabhhhcodes wants to merge 1 commit into
Kuldeeep18:mainfrom
saurabhhhcodes:codex/unsubscribe-branding-403
Draft

feat: brand unsubscribe page#422
saurabhhhcodes wants to merge 1 commit into
Kuldeeep18:mainfrom
saurabhhhcodes:codex/unsubscribe-branding-403

Conversation

@saurabhhhcodes

Copy link
Copy Markdown
Contributor

Adds organization-level branding to the public unsubscribe confirmation page so each workspace can keep its own title, message, and logo visible on that touchpoint.

What changed:

  • extended the Organization model with unsubscribe title, message, and brand logo fields
  • updated the unsubscribe page to render organization-specific branding when available
  • kept the default path intact for organizations that do not configure branding
  • added regression tests for the default view and the branded view
  • repaired the campaigns migration split so the test database can migrate on this baseline
  • repaired the malformed campaigns task import block on this baseline so the campaign test module can import cleanly

Validation:

  • python3 -m py_compile backend/tenants/models.py backend/campaigns/views.py backend/campaigns/tests.py backend/campaigns/tasks.py backend/tenants/migrations/0003_add_unsubscribe_branding.py backend/campaigns/migrations/0010_merge_0009_campaign_cached_counters_0009_campaignlead_bounce_metadata.py
  • python3 backend/manage.py test campaigns.tests.CampaignWorkflowTests.test_unsubscribe_get_shows_confirmation_without_updating_lead campaigns.tests.CampaignWorkflowTests.test_unsubscribe_get_uses_organization_branding_when_available campaigns.tests.CampaignWorkflowTests.test_unsubscribe_post_marks_lead_unsubscribed campaigns.tests.CampaignWorkflowTests.test_unsubscribe_view_rejects_invalid_token -v 2
  • 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: 1c9c397e-be2d-462d-987d-c23c5c06fc55

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.

1 participant