-
-
Browser Notifications
-
- Enable push notifications in your browser
-
-
-
- {!pushNotifications.browser_enabled &&
- Enable
- }
-
{
- if (!checked) {
- updatePushNotification('browser_enabled', false);
- } else {
+
+
+
+
+
Email Notifications
+
+ Receive notifications via email
+
+
+
updateChannelPreference('email', checked)}
+ />
+
+
+
+
+
+
+
Push Notifications
+
+ Browser push notifications
+
+
+
{
+ if (checked) {
requestPushPermission();
+ } else {
+ updateChannelPreference('push', false);
}
- }} />
+ }}
+ />
+
+
+ {isNovuEnabled && (
+ <>
+
+
+
+
+ SMS Notifications
+ Coming Soon
+
+
+ Receive notifications via text message
+
+
+
updateChannelPreference('sms', checked)}
+ disabled
+ />
-
+ >
+ )}
+
+
- {pushNotifications.browser_enabled && <>
+
+
+ Notification Frequency
+
+ Control how often you receive notifications
+
+
+
+
+
Digest Frequency
+
+ setFrequencySettings((prev) => ({ ...prev, digest: value }))
+ }
+ >
+
+
+
+
+ Real-time
+ Hourly
+ Daily
+ Weekly
+
+
+
+ Group notifications and send them in batches
+
+
+
+
+
+
+
Maximum Notifications Per Hour
+
+ setFrequencySettings((prev) => ({ ...prev, max_per_hour: parseInt(value) }))
+ }
+ >
+
+
+
+
+ 5 per hour
+ 10 per hour
+ 20 per hour
+ 50 per hour
+ Unlimited
+
+
+
+ Limit the number of notifications you receive per hour
+
+
+
+
+
+ {Object.keys(groupedTemplates).map((category) => (
+
+
+ {category} Notifications
+
+ Manage your {category} notification preferences
+
+
+
+ {groupedTemplates[category].map((template, index) => (
+
+ {index > 0 &&
}
-
-
New Content
+
+
{template.name}
- Notifications about new parks, rides, and reviews
+ {template.description}
-
updatePushNotification('new_content', checked)} />
+
+ updateWorkflowPreference(template.workflow_id, checked)
+ }
+ />
-
-
-
-
Social Updates
-
- Notifications about followers, replies, and mentions
-
-
-
updatePushNotification('social_updates', checked)} />
-
- >}
+
+ ))}
-
+ ))}
-
-
- {/* Sound Settings */}
-
-
- {/* Save Button */}
-
-
- {loading ? 'Saving...' : 'Save Notification Preferences'}
-
-
- ;
-}
\ No newline at end of file
+