Skip to content

feat(notifications): add per-user preference matrix (#1352) - #1597

Merged
github-actions[bot] merged 1 commit into
Smartdevs17:mainfrom
JohnMabas:issue-1352-notification-matrix
Nov 23, 2026
Merged

github-actions[bot] merged 1 commit into
Smartdevs17:mainfrom
JohnMabas:issue-1352-notification-matrix

Conversation

@JohnMabas

Copy link
Copy Markdown
Contributor

What this PR does

  • Adds a per-user channel x category notification preference matrix with multi-channel routing.
  • No breaking changes to existing notification endpoints; no data migrations.

Changes

  • backend/src/services/notifications.ts: matrix construction/overrides, quiet-hour handling, channel resolution, dispatch history and structured logs.
  • backend/src/routes/notifications.ts: strict Zod validation for GET/PUT matrix and dispatch endpoints.
  • frontend/components/notifications/: editable matrix UI with load/save states.
  • Unit tests plus backend/docs/NOTIFICATION_PREFERENCE_MATRIX.md.

Why

  • Users can choose exactly which channel receives each alert category; security alerts bypass quiet hours.

How to test

  • npx vitest run backend/src/services/__tests__/notifications-matrix.test.ts (5 tests pass locally).
  • Render PreferenceMatrixPanel with a user id to load and save preferences.

Notes

@vercel

vercel Bot commented Nov 23, 2026

Copy link
Copy Markdown

@JohnMabas is attempting to deploy a commit to the smartdevs17's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Nov 23, 2026

Copy link
Copy Markdown

@JohnMabas Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@github-actions
github-actions Bot merged commit 8b0a288 into Smartdevs17:main Nov 23, 2026
13 of 28 checks passed
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.

Implement multi-channel notification system with per-user preference matrix

1 participant