Skip to content

feat(notifications): email alert delivery (#499) - #518

Merged
unjica merged 3 commits into
developfrom
feature/499-email-notifications
Jul 17, 2026
Merged

unjica merged 3 commits into
developfrom
feature/499-email-notifications

Conversation

@unjica

@unjica unjica commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Branded Resend email templates for error spike, new error, quota near/exceeded, and generic/custom alerts (custom-rule copy stub until Alert rules: configurable conditions and destinations #493).
  • Per-project email recipients on Alerts → Email recipients: enable/disable, org roles (owners/editors/viewers), and up to 10 additional addresses — beyond default owner/editor fan-out.
  • Richer notification prefs: quiet hours now apply to email (critical billing/quota/alert still bypass); temporary mute; digest cadence stored as a hook (delivery not implemented yet).

Closes #499. Parent vision only: #492 (do not close).

Shipped vs deferred

Shipped (enough to close #499 after merge):

  • Email templates for spike / new error / quota / custom (generic stub)
  • Per-project recipient settings beyond default role fan-out
  • Feasible richer prefs: mute + quiet hours on email + digest preference hook

Deferred (called out on the issue / follow-ups):

Test plan

  • pnpm lint && pnpm test && pnpm build
  • Enable email channel in Settings → Notifications; fire a spike/quota alert; confirm branded HTML via Resend (or [email:dev] log)
  • Alerts → Email recipients: disable project email; confirm no fan-out while webhooks still enqueue
  • Add an extra recipient address; confirm it receives alert mail
  • Quiet hours / temporary mute: non-critical issue emails suppressed; alert emails still send

Made with Cursor

Complete the #499 email delivery MVP: branded notification templates, per-project role/extra recipients on alert settings, and mute/quiet-hours/digest hooks so alert email fan-out is configurable beyond default owners/editors.

Co-authored-by: Cursor <[email protected]>
Document that project recipient lists still gate on Issues routing for new-error emails and Alerts routing for spike/quota, matching shouldSendEmailForItem.

Co-authored-by: Cursor <[email protected]>
@unjica

unjica commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator Author

Bugbot (local vs develop): 1 medium finding — new-error emails use Issues routing while project recipient lists also cover them. Addressed by clarifying Alerts / Notification settings copy (routing behavior unchanged and intentional).

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

There are 2 total unresolved issues (including 1 from previous review).

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 8537f0a. Configure here.

Partial alert-settings and notification-preferences updates were resetting
optional fields to defaults when the body omitted them.

Co-authored-by: Cursor <[email protected]>
@unjica
unjica merged commit d57c362 into develop Jul 17, 2026
6 of 8 checks passed
@unjica
unjica deleted the feature/499-email-notifications branch July 17, 2026 14:35
@unjica unjica mentioned this pull request Jul 17, 2026
6 tasks
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.

Notifications: email alert delivery

1 participant