Implement notification preferences (Task 16)

- Create NotificationSettings component with map-based area selector
- Add radius configuration slider (1-50km range)
- Implement notification type toggles (email, in-app)
- Add notifications tab to user profile page (visible only to profile owner)
- Update backend to parse and return areasOfInterest JSON
- Save and load user notification preferences
- Requirements: 10.1, 10.4
This commit is contained in:
2025-11-16 22:01:01 +00:00
parent 515e85b1eb
commit 86169f6141
7 changed files with 366 additions and 6 deletions

View File

@@ -5,6 +5,13 @@ import type { User, Report, CleanupEvent } from '@/types';
export interface UserProfile extends User {
reportCount: number;
eventCount: number;
notificationEmail: boolean;
notificationInApp: boolean;
areasOfInterest: Array<{
lat: number;
lng: number;
radius: number;
}>;
}
export interface UserActivity {