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
@@ -88,8 +88,19 @@ export function NotificationsDrawer({ open, onClose }: Props) {
</ul>
)}
{totalUnread > 0 && (
<div className="border-t border-line pt-3 flex items-center justify-end">
<div className="border-t border-line pt-3 flex items-center justify-between">
{/* Phase B: link к per-channel preferences page. Всегда visible
(даже если unread=0 — пользователь может зайти настроить впрок). */}
<Link
to="/me/notifications/preferences"
className="text-sm text-accent hover:underline"
onClick={onClose}
>
{t('notifications.preferencesLink', {
defaultValue: 'Настроить каналы →',
})}
</Link>
{totalUnread > 0 && (
<Button
variant="secondary"
size="sm"
@@ -102,8 +113,8 @@ export function NotificationsDrawer({ open, onClose }: Props) {
defaultValue: 'Прочитать все',
})}
</Button>
</div>
)}
)}
</div>
</div>
</Drawer>
)