feat(admin): communications

未关闭
#1,965 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
冷清

调研方向

Start by reading the foundation issue #1956 and the existing material under docs/superpowers/specs/. Map the proposed worker adapter in packages/api/src/lib/email/ to the /admin/communications surface, users.marketing_consent, and audit_log requirements. Done requires an agreed provider, template strategy, and complete support for composition, audiences, scheduling, delivery history, suppression, consent, and audit traceability.

由索引模型根据 Issue 内容生成。

描述

Summary

Email send capability for the admin app: newsletters, member notifications, event reminders, group announcements. Requires a transactional email provider decision.

Requirements

  • Brainstorming → spec under docs/superpowers/specs/.
  • Pick an email provider during brainstorm: Resend, Postmark, SendGrid, AWS SES, etc. Tradeoffs: cost at member volume (~3,700+), deliverability, bounce/complaint feedback, template management.
  • Worker-side send adapter (packages/api/src/lib/email/) abstracted from the provider so the choice is reversible.
  • Template management: stored as code in the repo (PR-reviewed) OR stored in DB (admin-editable). Decision part of brainstorm.
  • /admin/communications — composition surface, audience selector, send / schedule / preview, send history with delivery status.
  • Audience model: ad-hoc list (paste emails), saved segment ("all org members of tier X"), event-bound ("all attendees of event Y").
  • Suppression list integration: respect bounces, complaints, and member-level marketing-consent flag (users.marketing_consent).
  • Outbound email logged to audit_log for traceability ("who sent what to whom, when").

Context

Foundation must ship first (#1956). This subsystem unlocks event reminders (#1961), election notifications (#1964), and renewal nudges (#1959).

Implementation Notes

  • Volume-pricing math matters: at ~3,700 members × monthly newsletter, providers price differently across the inflection points.
  • Compliance: CAN-SPAM, GDPR if any EU members, plus respect marketing_consent. Audit needs to capture the consent state at send time.
主要语言
HTML
星标
33
派生
107
平均合并
14 小时 6 分钟
30 天内合并 PR
19

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

USRSE/usrse.github.io 的其他 Issue

查看 USRSE/usrse.github.io 的全部 Issue

相似的 Issue

更多 Backend & API Design Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。