mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-29 14:37:44 +02:00
Users can now mute specific notification categories (assignments, status changes, comments & mentions, priority/due-date updates, agent activity) from Settings > Notifications. Muted event types are silently filtered at notification creation time — no inbox items are created for muted groups. - Add notification_preference table (migration 064) - Add GET/PUT /api/notification-preferences endpoints - Filter notifications in notifyIssueSubscribers, notifyDirect, and notifyMentionedMembers based on user preferences - Add Notifications tab in Settings with per-group toggle switches
14 lines
402 B
TypeScript
14 lines
402 B
TypeScript
import { queryOptions } from "@tanstack/react-query";
|
|
import { api } from "../api";
|
|
|
|
export const notificationPreferenceKeys = {
|
|
all: (wsId: string) => ["notification-preferences", wsId] as const,
|
|
};
|
|
|
|
export function notificationPreferenceOptions(wsId: string) {
|
|
return queryOptions({
|
|
queryKey: notificationPreferenceKeys.all(wsId),
|
|
queryFn: () => api.getNotificationPreferences(),
|
|
});
|
|
}
|