phase 9 notification toggles (per-alert, per-category, master; default-disabled)
This commit is contained in:
@@ -75,7 +75,9 @@ const ALLOWED_CONFIG_KEYS = new Set([
|
||||
'CHAT_ALERT_CHANNEL_IDS', 'CHAT_ALERT_MESSAGE_COUNT',
|
||||
'CHAT_ALERT_HOURS_WITHOUT_RESPONSE', 'CHAT_ALERT_COOLDOWN_MINUTES',
|
||||
// Notification thresholds
|
||||
'NOTIFICATION_THRESHOLDS_JSON', 'UNCLAIMED_REMINDER_THRESHOLDS'
|
||||
'NOTIFICATION_THRESHOLDS_JSON', 'UNCLAIMED_REMINDER_THRESHOLDS',
|
||||
// Notification enable state (Phase 9)
|
||||
'NOTIFICATION_ENABLED_JSON', 'NOTIFICATIONS_MASTER_ENABLED'
|
||||
]);
|
||||
|
||||
// ---------- Regex primitives ----------
|
||||
@@ -206,6 +208,8 @@ const VALIDATORS = {
|
||||
function inferType(key) {
|
||||
// 1. Explicit overrides
|
||||
if (key === 'NOTIFICATION_THRESHOLDS_JSON') return 'json';
|
||||
if (key === 'NOTIFICATION_ENABLED_JSON') return 'json';
|
||||
if (key === 'NOTIFICATIONS_MASTER_ENABLED') return 'boolean';
|
||||
if (key === 'LOGO_URL') return 'url';
|
||||
if (/_EMAIL$/.test(key)) return 'email';
|
||||
if (key.includes('COLOR')) return 'hex_color';
|
||||
|
||||
Reference in New Issue
Block a user