Mark Notifications as Read and Delete Individual Notifications
The Notification Item Widget supports three interaction patterns for notification management. Tapping a notification marks it as read and, if applicable, navigates to the deep-linked screen. A swipe-to-delete gesture on any notification item presents a delete confirmation before removing the record from the Notification Repository. A 'Mark all as read' action available from the Notifications Screen header marks all unread notifications as read in a single database operation. These state changes are persisted to the notifications table via the Notification Repository. The unread badge count on the bottom navigation bar updates in real time following any read/delete action.
User Story
Acceptance Criteria
- Given a user taps an unread notification item, when the tap is processed, then the notification is marked as read in the database and the unread indicator is removed from that item
- Given a user swipes a notification item to the left, when the swipe reaches the delete threshold, then a delete confirmation action is revealed; when confirmed, the notification is deleted from the database and removed from the list
- Given a user taps 'Mark all as read', when the action is confirmed, then all notifications in the list are updated to read status in a single batch operation and all unread indicators are removed
- Given a user marks a notification as read, when the bottom navigation bar is visible, then the unread badge count decrements immediately to reflect the updated count
- Given a user deletes the last notification in a date group, when the deletion completes, then the date group header is also removed from the list
Business Value
Notification management hygiene directly affects how users perceive and engage with the notification system. An inbox cluttered with old, already-addressed notifications trains users to ignore the badge count and stop opening the notification screen. By providing efficient read management (tap-to-read, bulk read, swipe-to-delete), the notification center remains a trustworthy signal of items requiring attention. For busy coordinators managing multiple peer mentors, the ability to clear processed notifications quickly maintains the notification center as a useful work tool rather than a cluttered inbox.