Add Clear button to notification bell dropdown

- Add notifications_cleared_at column to users table
- Clear button marks notifications as seen without deleting history
- Badge and dropdown only show notifications after last clear
- History page still shows all notifications

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
clucraft 2026-01-24 03:20:03 -05:00
parent 262a91b558
commit 28d6523959
5 changed files with 69 additions and 11 deletions

View file

@ -313,6 +313,9 @@ export const notificationsApi = {
api.get<{ count: number }>('/notifications/count', {
params: hours ? { hours } : undefined,
}),
clear: () =>
api.post<{ message: string }>('/notifications/clear'),
};
// Admin API