feat: add notification bell with activity feed and notification preferences

- New NotificationBell component in topbar showing recent activity
- Popover with last 10 activity items from /api/domains/[id]/activity
- Notification preferences section in Settings > Shortcuts tab
- Preferences persisted to localStorage (pe_notification_prefs)
- Toggle switches for task_created, task_completed, habit_logged, comment_added
This commit is contained in:
2026-07-29 19:27:24 +00:00
parent 7ced6f2bf2
commit 9bc571eb69
4 changed files with 207 additions and 3 deletions
@@ -49,6 +49,15 @@ export function SettingsShortcuts() {
<Button variant="outline" onClick={resetShortcuts}>
Reset to defaults
</Button>
{/* Notification Preferences */}
<div className="pt-4 border-t">
<h3 className="font-semibold mb-1">Notification Preferences</h3>
<p className="text-sm text-muted-foreground mb-4">
Choose which events trigger in-app notifications.
</p>
<NotificationPrefs />
</div>
</CardContent>
</Card>
);