Skip to content

Add newsletter recipient selection to email editor - #184

Merged
akulsharma1 merged 1 commit into
mainfrom
codex/email-recipient-groups
Sep 10, 2026
Merged

Add newsletter recipient selection to email editor#184
akulsharma1 merged 1 commit into
mainfrom
codex/email-recipient-groups

Conversation

@akulsharma1

Copy link
Copy Markdown
Collaborator

The email editor can currently send only to the existing attendee-based registration audience. Add a Recipient group selector that defaults to registration_submissions and lists the newsletter groups from the same API used by the Newsletters page, with unique recipient counts and a refresh action.

The default preserves /mail/send/attendees/: registration submissions matched to attendee profiles, with no year filter. The editor explains this scope. Selecting a newsletter fetches its current subscribers immediately before confirmation, removes duplicate addresses, and sends only those addresses through /mail/send/. Empty, deleted, or unavailable newsletters cannot send and never fall back to registration recipients.

Keep the test-send step. After Send to Self succeeds, the bulk-send button names the selected group. The confirmation names the audience and includes the current newsletter recipient count. The message and group remain locked until Edit is selected, which requires another test send. Add text explaining this sequence and label bulk-send results with the selected group.

No backend or deployment configuration changes are required.

Validation:

  • npm run build passed.
  • All 12 tests passed, including eight new recipient-routing tests covering the default endpoint, selected newsletter payload, fresh subscriber lookup and deduplication, name collisions, cancellation, empty/missing groups, and partial results without automatic retries.
  • ESLint and Prettier checks passed for the changed files; git diff --check passed.
  • Browser checks used a local mock API: default registration selection, newsletter options and counts, test-send locking, the selected-group send button, and confirmation naming the newsletter and recipient count. No real email was sent.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 10, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
admin-site 18fc61c Commit Preview URL

Branch Preview URL
Sep 10 2026, 12:02 AM

@akulsharma1
akulsharma1 merged commit 340aa6c into main Sep 10, 2026
4 checks passed
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