chihlasm
0f750e63e0
feat(notifications): add Phase 4 Slice 2 — multi-channel notification system
Full notification infrastructure with in-app, email, Slack, and Teams channels:
Backend:
- NotificationConfig, NotificationLog, Notification models + migration
- Notification service with event routing, channel delivery, retry logic
- 9 API endpoints (config CRUD + in-app notifications)
- APScheduler retry job with exponential backoff (30s, 2m, 10m)
- Wired into escalation, proposal approval, and knowledge flywheel
- Pydantic event key validation, cross-tenant protection on recipients
Frontend:
- TypeScript types + API client for all notification endpoints
- NotificationsPanel: bell icon with unread badge, dropdown, mark-read
- NotificationSettings: channel config, event toggles, test, delete confirm
- Notifications tab on IntegrationsPage
- ARIA attributes, Escape handler, settings link on panel
Review fixes (13 issues resolved):
- notify() no longer commits/rolls back caller's transaction (critical)
- retry_failed_notifications returns count instead of None (critical)
- NotificationSettings moved inside dedicated tab (critical)
- target_user_ids scoped by account_id (security)
- Email loop collects all failures before raising
- Slack webhook validates response body
- events_enabled rejects unknown event keys
- link column widened to String(500)
- Dead code removed from _auto_reinforce
- Delete confirmation, ARIA, Escape key support
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-19 12:37:54 +00:00
..
2026-01-22 14:38:53 -05:00
2026-03-04 20:44:25 -05:00
2026-02-08 06:05:59 -05:00
2026-02-08 06:05:59 -05:00
2026-02-08 06:05:59 -05:00
2026-02-08 06:05:59 -05:00
2026-02-08 06:05:59 -05:00
2026-02-08 06:05:59 -05:00
2026-03-07 18:44:14 -05:00
2026-02-24 23:05:42 -05:00
2026-03-16 13:39:17 -04:00
2026-03-07 15:51:37 -05:00
2026-02-26 17:25:38 -05:00
2026-03-19 03:10:11 +00:00
2026-03-07 15:51:37 -05:00
2026-02-16 15:23:14 -05:00
2026-03-08 15:43:22 -04:00
2026-03-10 01:57:22 -04:00
2026-03-12 00:23:29 -04:00
2026-03-17 00:12:00 -04:00
2026-02-07 02:39:01 -05:00
2026-03-04 20:44:25 -05:00
2026-02-18 17:43:21 -05:00
2026-03-19 12:37:54 +00:00
2026-03-19 05:12:10 +00:00
2026-02-05 22:44:05 -05:00
2026-03-19 01:30:05 +00:00
2026-02-11 23:45:23 -05:00
2026-03-11 23:29:51 -04:00
2026-02-17 20:12:07 -05:00
2026-03-19 12:37:54 +00:00
2026-03-17 00:05:28 -04:00
2026-02-16 15:23:14 -05:00
2026-03-19 05:12:10 +00:00
2026-03-17 00:39:01 -04:00
2026-02-07 23:06:13 -05:00
2026-02-07 19:10:47 -05:00
2026-03-16 01:35:16 -04:00
2026-02-07 02:39:01 -05:00
2026-02-25 23:17:29 -05:00
2026-03-17 00:22:40 -04:00
2026-03-05 22:43:02 -05:00
2026-02-07 02:39:01 -05:00
2026-02-17 16:15:19 -05:00
2026-02-10 09:45:26 -05:00
2026-03-07 15:51:37 -05:00
2026-03-10 01:57:22 -04:00
2026-02-07 02:39:01 -05:00