968 B
968 B
Task: Notifications System
Objective
Implement a notification system to alert users of relevant interactions (replies, mentions, group activity).
Steps
- Backend:
- Create
Notificationmodel (user_id, type, title, message, link, is_read, created_at). - Create
routers/notifications.py. - Implement
GET /notifications(list my notifications). - Implement
POST /notifications/{id}/read(mark as read). - Implement logic to trigger notifications (e.g., when a user receives a reply).
- Create
- Frontend:
- Create
NotificationBellcomponent in the Navbar. - Show unread count badge.
- Create
NotificationsPopoverorNotificationsPageto view list. - Handle "Mark as Read" interaction.
- Create
Acceptance Criteria
- User receives a notification when someone replies to their comment.
- User sees an unread count in the navbar.
- Clicking a notification navigates to the relevant content.