Skip to content

Adds the email campaign service layer inside the existing email domain#352

Open
williamchiii wants to merge 13 commits into
devfrom
wchi/email_campaigns
Open

Adds the email campaign service layer inside the existing email domain#352
williamchiii wants to merge 13 commits into
devfrom
wchi/email_campaigns

Conversation

@williamchiii
Copy link
Copy Markdown
Collaborator

Description

Adds the email campaign service layer inside the existing email domain.

This introduces campaign business logic for creating, fetching, listing, updating, and updating the status of saved email campaigns. The service validates required campaign fields, restricts edits to editable campaign states, and checks lifecycle requirements such as requiring scheduled_at for scheduled campaigns and sent_at for sent campaigns.

This builds on the existing email campaign schema, sqlc queries, and repository layer. It does not add HTTP routes or sending logic yet.

Type of Change

  • New feature (non-breaking change)

Checklist

  • My code follows the project's style guidelines
  • I have commented on complex parts of the code
  • I have updated documentation if necessary
  • I have updated or added tests to cover my changes
  • I have updated the OpenAPI YAML or other API schema files if applicable

Additional Notes

No API behavior changes in this PR. This PR only adds the email campaign service layer that future campaign HTTP handlers will call.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
core Ready Ready Preview, Comment May 26, 2026 12:16am

@williamchiii williamchiii changed the title Wchi/email campaigns Adds the email campaign service layer inside the existing email domain May 26, 2026
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.

2 participants