Skip to content

Add Audience CRM and SMS campaigns - #1496

Merged
daveearley merged 1 commit into
v2.3.0from
feature/crm-sms
Nov 19, 2026
Merged

daveearley merged 1 commit into
v2.3.0from
feature/crm-sms

Conversation

@daveearley

Copy link
Copy Markdown
Contributor

What changes I've made

Adds Audience, a CRM for organizers (licensed, under ee/), and SMS on top of it.

  • Contacts: projected from orders, with tags, notes, activity, spend, imports, bulk actions, suppressions and deletion tombstones.
  • Consent: a per-channel consent ledger for email and SMS, checkout opt-ins, signup forms (hosted and via the widget) with double opt-in, and one-click unsubscribe.
  • Email campaigns: segments, templates, a send gate, admin review, delivery feedback and campaign reports.
  • Automations: triggered sends with per-contact run history.
  • SMS: optional mobile number capture at checkout (phone_collection), SMS consent for the four supported countries, bring-your-own Twilio per organizer, SMS campaigns, and Twilio status and inbound (STOP) webhooks.
  • Core changes: buyer phone on orders (exports, order search, MCP order tools, self-service edits), PublicApiUrl for unsubscribe and webhook addresses, libphonenumber-js on the frontend, new env examples for Postmark webhooks and a separate campaigns mailer.

.claude/rules/ee/crm.md documents the invariants.

Why I've made these changes

Organizers want to email and text their past buyers and subscribers without exporting to another tool, with consent and suppression handled for them.

How I've tested these changes

  • Backend Unit suite (2,947 tests) and Feature suite (2,967 tests) pass; pint --test and tsc --noEmit are clean.
  • Audience e2e on the dev stack: 132 passed, 7 skipped.
  • Those runs were on the branch before it was rebased onto the latest three develop commits; four conflicting MCP/stats files took develop's version. CI is the first run on the rebased commit.
  • Not run: the hermetic e2e stack and self-hosted mode (four of the skipped specs need them), and the bounce and complaint specs, which need POSTMARK_WEBHOOK_SECRET.

Notes for reviewers

  • The crm_sms feature flag is off by default.
  • Self-service phone edits now fire the order.updated webhook; this needs a release-note line.
  • The OpenAPI reference changes are additions only, plus a new crm enum value.
  • backend/.env.example now sets APP_URL=https://localhost:8443/api; public unsubscribe and webhook URLs are built from APP_URL when it names its own host or path, otherwise from <APP_FRONTEND_URL>/api.
  • Signup forms are limited to 60 submissions a minute per form and IP, 3 confirmation mails a day per address per organizer, and 5 organizers a day per address.

Checklist

  • I have read the contributing guidelines.
  • My code follows the coding standards of the project.
  • I have tested my changes, and they work as expected.
  • I understand that this PR will be closed if I do not follow the contributor guidelines and if this PR template is left unedited.

@github-actions

Copy link
Copy Markdown
Contributor

✅ E2E smoke tests: Everything passed.

Mode Result ✅ Passed ❌ Failed ⚠️ Flaky ⏭️ Skipped ⏱️ Duration
Self-hosted ✅ Passed 119 0 0 0 4m 24s

Open the run

@daveearley
daveearley changed the base branch from develop to v2.3.0 November 19, 2026 19:31
@daveearley
daveearley merged commit b2d0e7f into v2.3.0 Nov 19, 2026
10 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant