v400 — Notification Digest and Email-Trigger Behavior
Current baseline reviewed: v399.1.
v400 resumes the notification track after the v399.1 deployment hardening correction. The product goal is to add simple email digest/trigger behavior while keeping the placement rules intact.
Decision
Continue with notification digest/email trigger behavior.
/notificationsremains alert/action-only.- Notification preferences stay in Workspace Settings > Notifications.
- Provider setup stays in Workspace Integrations.
- Normal users do not see SMTP credentials, provider diagnostics, raw delivery logs, or technical error dumps.
Product changes
- Added
/api/app-notifications/email-digest. - Added guarded notification email digest preview and send paths.
- Added an Email digest and triggers panel inside Workspace Settings > Notifications.
- Added trigger selection from urgent alerts, overdue or late work, due-today checks, and daily team digest preference.
- Reused existing
OutboundEmailLogrecords for digest send attempts. - Sanitized send failures so the user sees action-oriented wording instead of raw provider output.
Placement and safety
The email digest panel lives in Workspace Settings > Notifications. The user-facing /notifications page was not changed and remains alert/action-only.
Prisma impact
No Prisma schema changes were made.
Deployment note
The WHM command must keep visible unzip, deploy cleanup, preflight, build, and post-build restart.