Configure Organization-Level Notification Scenario Rules
Organization administrators access a notification configuration section within the Admin Settings Screen. Here they can adjust the values of configurable scenario rules that the Notification Scenario Engine uses when evaluating their organization's data. Configurable parameters include: inactivity reminder threshold (days without activity, default 14), assignment follow-up threshold (days until first reminder, default 10), whether coordinators receive a daily digest vs. real-time alerts for overdue assignments, and which scenario categories are globally enabled for the organization (override for all users). Changes are saved to a server-side configuration store and take effect on the next scheduled Edge Function evaluation cycle. An audit log records all configuration changes with the administrator's identity and timestamp.
User Story
Acceptance Criteria
- Given an organization administrator navigates to Admin Settings, when they access the Notification Scenarios section, then they see all configurable scenario parameters with their current values and defaults clearly displayed
- Given an administrator changes the inactivity reminder threshold from 14 to 7 days, when the change is saved, then the next Edge Function evaluation uses 7 days as the threshold for all peer mentors in that organization
- Given an administrator disables a scenario category globally (e.g., disables 'Inactivity Reminders' for all users), when a qualifying event occurs, then no users in that organization receive that notification type regardless of their individual preferences
- Given an administrator changes a configuration parameter, when the change is saved, then the action is recorded in the audit log with the administrator's user ID, timestamp, parameter changed, and old vs. new values
- Given an administrator sets the assignment follow-up threshold to 5 days, when 5 days elapse without acknowledgement, then the follow-up notification is triggered instead of waiting 10 days
Business Value
Different organizations have different operational rhythms and policy requirements. HLF's coordinators may need 7-day follow-up cycles where Blindeforbundet uses 10-day cycles. Hardcoding these values would require an app release for every policy adjustment, which is impractical. Server-side configurable scenario rules give organization administrators the autonomy to tailor the notification system to their processes, reducing the operational gap between what the app does and what the organization needs.
This drives adoption by ensuring the notification behavior feels designed for each organization's specific workflows.