Description
Notifications are retrievable, but there is no richer delivery pipeline for fan-out, live updates, or prioritized notification types.
User Story
As a user,
I want to receive timely notifications for important actions,
so that I do not miss replies, likes, entries, or moderation events.
Requirements and Context
- Files:
app/app/api/notifications/route.ts, app/app/api/notifications/[id]/route.ts, app/lib/notifications.ts
- Add a delivery layer that can fan out new notifications from core events
- Support unread counts, read state, and prioritized delivery types
- Make the API suitable for polling today and live transport later
Suggested Implementation
// NOTIFICATIONS DELIVERY
// 1. Create notifications from source events.
// 2. Persist read/unread state consistently.
// 3. Expose unread counts and recent activity.
// 4. Keep the payload ready for realtime transport later.
Acceptance Criteria
Submission Guidelines
- Branch:
feat/notification-fanout
- Depends on: notification storage and event sources
- PR:
feat(backend): add notification fan-out and delivery layer
Description
Notifications are retrievable, but there is no richer delivery pipeline for fan-out, live updates, or prioritized notification types.
User Story
As a user,
I want to receive timely notifications for important actions,
so that I do not miss replies, likes, entries, or moderation events.
Requirements and Context
app/app/api/notifications/route.ts,app/app/api/notifications/[id]/route.ts,app/lib/notifications.tsSuggested Implementation
Acceptance Criteria
Submission Guidelines
feat/notification-fanoutfeat(backend): add notification fan-out and delivery layer