# v384 Dispatch Spot Notification Delivery Through Workspace Integrations

## Purpose

v384 continues the simple app-style notifications track. The goal is to connect notifications to Workspace Integrations without putting provider setup on the user-facing Notifications page.

## What changed

- Added notification delivery readiness from saved workspace integrations.
- Added a simple Delivery Status panel to `/notifications`.
- Added guarded test email delivery through connected Custom SMTP accounts.
- Added a new API route: `/api/app-notifications/test-email`.
- Added a notification delivery service: `src/modules/app-notifications/app-notification-delivery.service.ts`.
- Extended the Custom SMTP service so a connected workspace email account can send a guarded test alert.
- Added Twilio setup fields to `/company/integrations` under the Twilio tab.
- Kept SMTP and Twilio setup out of `/notifications`.

## User-facing placement

### Notifications page

Users can see:

- today's alerts
- delivery status
- simple alert preferences
- a test email button when company email is connected

Users do not see SMTP or Twilio credentials.

### Workspace Integrations

Workspace Admins can manage:

- Custom SMTP company email under Email
- Twilio setup under Twilio

## Delivery safety

- In-app alerts remain active first.
- Email delivery uses only a connected Custom SMTP account.
- Test email sends to the signed-in user's own email address.
- Text alerts remain urgent-only and opt-in.
- Twilio setup is saved for later text delivery; real text sending still requires user phone opt-in.

## Prisma

No Prisma schema changes were made in v384.
