Configure Stored Default Values for Activity Registration
The Default Values Widget is an inline settings component embedded within the wizard flow and accessible from user settings. It allows the user to view and update their stored defaults: date strategy (always use today's date, or always use a specific date), default duration (e.g., 30 minutes, 1 hour), and preferred activity type. Changes are persisted to Supabase via the Activity Registration Service and take effect on the next wizard launch. The widget distinguishes clearly between updating the stored default (permanent change) and overriding for the current registration only (ephemeral change). Defaults are stored per user and scoped to the organization, so a user with multiple organization memberships can have different defaults per context.
User Story
Acceptance Criteria
- Given the user accesses the Default Values Widget, when the widget loads, then their current stored defaults are displayed with current values for date strategy, duration, and preferred activity type
- Given the user changes a default value in the widget and confirms, when the change is saved, then the Activity Registration Service writes the updated defaults to Supabase and confirms success
- Given the user updates their stored defaults, when they next launch the Activity Wizard, then the updated defaults are pre-filled into the corresponding wizard fields
- Given the user is in the Default Values Widget and changes a value, when they tap 'Save as Default', then the stored default is updated; when they tap 'Use Once', then only the current registration is affected without changing the stored default
- Given network connectivity is unavailable, when the user attempts to save updated defaults, then an error message is shown and the local state reflects the intended change pending sync
- Given the widget is displayed for a user who has never configured defaults, when the widget loads, then system defaults (today's date strategy, 30-minute duration) are shown as current values
Business Value
HLF workshop data showed that 60–70% of activity registrations have no expense component and share the same activity type and duration. Stored defaults that auto-populate these fields eliminate the majority of required data entry for the majority of registrations. For a peer mentor logging 380 activities per year, eliminating 3–4 repeated taps per registration saves over an hour of cumulative interaction time annually. This directly addresses the #1 complaint driving underreporting across all three organizations.
Components
- Default Values Widget ui
- Activity Registration Service service
- Activity Repository data