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:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user