-
Notifications
You must be signed in to change notification settings - Fork 134
Open
Labels
good first issueGood for newcomersGood for newcomers
Description
Location: backend/src/notifications/
Description
Members need an endpoint to retrieve their notifications so the frontend can display them in the bell dropdown and on the notifications page. The response should include both the paginated list of notifications and a separate unread count so the bell badge can be updated without a full list fetch.
Acceptance Criteria
-
GET /notificationsreturns the requesting user's notifications- Supports query params:
page(default1),limit(default20) - Results are ordered by
createdAtdescending (newest first) - Response shape:
{ success: true, data: Notification[], meta: { total, page, limit, totalPages, unreadCount } } unreadCountis the total number of unread notifications for the user (not just on the current page)
- Supports query params:
- Uses
@GetCurrentUser('id')to scope results to the requesting user only - Logic lives in a dedicated provider class
-
npx tsc --noEmitpasses with no errors
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomers