Thème
Superviseur — Frontend / stores/notification-center.store / useNotificationCenterStore
Variable: useNotificationCenterStore
ts
const useNotificationCenterStore: StoreDefinition<"notificationCenter", Pick<{
items: ComputedRef<object[]>;
unreadCount: ComputedRef<number>;
hasItems: ComputedRef<boolean>;
add: (id, message, type) => void;
update: (id, patch) => void;
remove: (id) => void;
markAllRead: () => void;
markRead: (id) => void;
clear: () => void;
}, never>, Pick<{
items: ComputedRef<object[]>;
unreadCount: ComputedRef<number>;
hasItems: ComputedRef<boolean>;
add: (id, message, type) => void;
update: (id, patch) => void;
remove: (id) => void;
markAllRead: () => void;
markRead: (id) => void;
clear: () => void;
}, "items" | "unreadCount" | "hasItems">, Pick<{
items: ComputedRef<object[]>;
unreadCount: ComputedRef<number>;
hasItems: ComputedRef<boolean>;
add: (id, message, type) => void;
update: (id, patch) => void;
remove: (id) => void;
markAllRead: () => void;
markRead: (id) => void;
clear: () => void;
}, "clear" | "add" | "remove" | "update" | "markAllRead" | "markRead">>;Défini dans: stores/notification-center.store.ts:25
Centre de notifications : historique des messages de l'application (commandes, connexions, erreurs…), consultable depuis la cloche du header. Alimenté par le service de notifications, en parallèle du mécanisme transitoire — les entrées restent visibles jusqu'à effacement, avec un état lu/non-lu qui pilote le badge de la cloche.