Skip to content

feat(mailer): add MarketingNoTicketAudience#690

Merged
peterdrier merged 1 commit into
mainfrom
feat/mailer-marketing-no-ticket-audience
May 20, 2026
Merged

feat(mailer): add MarketingNoTicketAudience#690
peterdrier merged 1 commit into
mainfrom
feat/mailer-marketing-no-ticket-audience

Conversation

@peterdrier
Copy link
Copy Markdown
Owner

Summary

  • New IMailerAudience "Humans - Marketing no Ticket" — users who have explicitly opted in to Marketing (UserInfo.MarketingOptedOut == false, excluding null and true) AND do not hold a ticket in the active vendor event
  • Lets us mail marketing opt-ins who haven't bought a ticket yet without spamming the ones who already have
  • Wired into DI in MailerSectionExtensions; cross-section dependency note added to docs/sections/Mailer.md

Test plan

  • MarketingNoTicketAudienceTests covers the four user states (opt-in no-ticket → IN, opt-in with-ticket → OUT, opted-out → OUT, no preference row → OUT)
  • MailerArchitectureTests.AllAudiences_UseHumansPrefix / AllAudiences_HaveUniqueGroupNamesAndKeys pass with the new audience registered
  • On the preview env, verify the new audience appears on /Mailer/Admin/Audiences/ and member counts look right

🤖 Generated with Claude Code

New IMailerAudience targeting "Humans - Marketing no Ticket": users
who have explicitly opted in to Marketing (UserInfo.MarketingOptedOut
== false, excluding null and true) AND do not hold a ticket in the
active vendor event.

Lets us mail marketing opt-ins who haven't bought a ticket yet
without spamming the ones who already have.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@claude
Copy link
Copy Markdown

claude Bot commented May 20, 2026

Reviewed commit b2a0ccf — no issues found.

@peterdrier peterdrier merged commit e5fc2c0 into main May 20, 2026
9 checks passed
@peterdrier peterdrier deleted the feat/mailer-marketing-no-ticket-audience branch May 20, 2026 10:18
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