feat(admin-ui): Phase B frontend — notifications preferences route + UI

This commit is contained in:
Александр Зимин
2026-05-15 14:56:48 +00:00
parent 300fd12d6c
commit e2fc3bcbe0
7 changed files with 332 additions and 4 deletions
+15
View File
@@ -719,3 +719,18 @@ export type NotificationsResponse = {
/** Unread count for badge — pre-filtered server-side. */
totalUnread: number
}
/**
* Phase B — per-channel notification opt-in/out для current user. Backend
* endpoint: GET/PUT /api/v1/me/notifications/preferences. Default semantics
* (server-side, when row missing): email=true, express=false, telegram=false.
*
* <p>Express/Telegram channels пока not wired backend-side — toggles в UI
* disabled с tooltip 'Скоро'. Email — единственный фактически работающий
* канал в Phase A/B.
*/
export type NotificationPreferences = {
email: boolean
express: boolean
telegram: boolean
}