server: make resend SLUG=… re-sends the page-ready email (phase-2 plan Task 7) #34

Closed
opened 2026-08-28 21:00:26 +00:00 by ben · 1 comment
Owner

Plan

docs/superpowers/plans/2026-08-28-coa-phase-2.md Task 7. Spec §6.

Deliverable

server/src/cli/resend.ts: resend(slug, {store, mailer, publicUrl}) → {ok:true,to} | {ok:false,error} — reads the community, sends, clears emailError on success, records it on failure; CLI entry (pnpm --filter @coa/server resend <slug>, exit 1 on failure). Makefile target resend: ; pnpm --filter @coa/server resend $(SLUG). Tests server/test/resend.test.ts (plan's two).

Acceptance

  • Re-sends with the right pageUrl; status.emailError gone afterwards.
  • Unknown slug → {ok:false}.

depends_on

  • server: /api/submit phase-2 pipeline (Task 6)

out_of_scope

make rebuild / republish (phase 3).

Phase gate

No build dispatch, no coa-shared provisioning, no status transitions beyond page-ready (phase 3). Never delete or rewrite anything under communities/ (ADR 0002/0003).

## Plan `docs/superpowers/plans/2026-08-28-coa-phase-2.md` **Task 7**. Spec §6. ## Deliverable `server/src/cli/resend.ts`: `resend(slug, {store, mailer, publicUrl}) → {ok:true,to} | {ok:false,error}` — reads the community, sends, clears `emailError` on success, records it on failure; CLI entry (`pnpm --filter @coa/server resend <slug>`, exit 1 on failure). `Makefile` target `resend: ; pnpm --filter @coa/server resend $(SLUG)`. Tests `server/test/resend.test.ts` (plan's two). ## Acceptance - Re-sends with the right `pageUrl`; `status.emailError` gone afterwards. - Unknown slug → `{ok:false}`. ## depends_on - server: /api/submit phase-2 pipeline (Task 6) ## out_of_scope `make rebuild` / republish (phase 3). ## Phase gate No build dispatch, no `coa-shared` provisioning, no status transitions beyond `page-ready` (phase 3). Never delete or rewrite anything under `communities/` (ADR 0002/0003).
Author
Owner

Claimed by the interactive session — working plan Task 7 on branch agent/issue-34 (no file overlap with #33's PR).

Claimed by the interactive session — working plan Task 7 on branch agent/issue-34 (no file overlap with #33's PR).
ben closed this issue 2026-08-30 00:44:23 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/coa#34
No description provided.