feat(admin-ui): Phase B frontend — notifications preferences route + UI
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user