feat(#36): Notification rework with single and all comments mark as read

This commit is contained in:
2026-01-18 18:42:10 +01:00
parent 105baf7c86
commit db788c4ee3
31 changed files with 711 additions and 94 deletions

View File

@@ -44,8 +44,12 @@ export function useNotificationApi() {
return notificationApiClient.markNotificationAsRead({ id, organizationId })
}
async function clearAllNotifications(organizationId: string): Promise<void> {
return notificationApiClient.clearAllNotifications({ organizationId })
async function clearAllNotifications(): Promise<void> {
return notificationApiClient.clearAllNotifications()
}
async function deleteNotification(id: string): Promise<void> {
return notificationApiClient.deleteNotification({ id })
}
return {
@@ -55,6 +59,7 @@ export function useNotificationApi() {
getUnreadNotificationCount,
markAllNotificationsAsRead,
markNotificationAsRead,
clearAllNotifications
clearAllNotifications,
deleteNotification
}
}