# Task 015 — Notifications & Automation Rules

## Objective

Internal in-app notifications and automation rules when CRM events occur. No n8n or external integrations.

## Status

**Done** (June 2026)

## Acceptance criteria

- [x] `npm run build` succeeds
- [x] `npm run lint` succeeds
- [x] Notification model exists
- [x] Bell shows unread count
- [x] `/notifications` page works
- [x] Mark read / mark all read work
- [x] Notifications created from CRM events
- [x] Dashboard recent notifications widget
- [x] Documentation updated

## Implementation

- `src/server/models/notification.model.ts`
- `src/server/services/notification.service.ts`
- `src/server/services/automation-rules.service.ts`
- `src/lib/automation-trigger.ts`
- `src/components/notifications/*`
- `src/app/notifications/*`
- `src/app/api/notifications/**`

## Next

Task 016 — Settings & Administration
