Add mark as unread action to notifications list

Adds a "Mark as unread" option to the notification popup menu (shown only
for already-read items) and a swipe-right gesture, mirroring the existing
"Mark as read" actions. Swipe/menu actions respect the active filter:
items are removed from the list only when filtered to New or Old, and
snap back when viewing All.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
rzuasti
2026-05-27 10:43:10 -04:00
co-authored by Claude Sonnet 4.6
parent c04e76157e
commit e320d54b38
2 changed files with 63 additions and 7 deletions
+5
View File
@@ -71,6 +71,11 @@ class BackendAPI {
await _dio.get('/notifications/$id');
}
Future<void> markNotificationAsNew(int id) async {
print('About to call /notifications/$id/mark_as_new');
await _dio.post('/notifications/$id/mark_as_new');
}
Future<List<Notification>> listNotifications(bool? isNew, int offset) async {
print('About to call /notifications');