Override Date and Duration When Registering Retroactively
While the default is today's date and 30 minutes, peer mentors often register activities after the fact — at the end of the day or week. The date step must present a calendar or date picker that defaults to today but allows quick selection of recent dates (last 7 days shown as tappable chips). The duration step must allow entry in minutes via a numeric stepper or free-text field, with common durations (15, 30, 45, 60, 90 min) available as quick-select chips. Both overrides must be lightweight so the flow remains fast for the retroactive case.
User Story
Acceptance Criteria
- Given the date step is open, when I view it, then today's date is selected and the 6 previous days are shown as tappable date chips for quick selection
- Given I tap a date chip for yesterday, when I proceed, then the registration uses that date without requiring me to open a full calendar
- Given I need a date older than 7 days, when I tap 'Pick another date', then a full calendar date picker opens allowing selection of any past date
- Given the duration step is open, when I view it, then chips for 15, 30, 45, 60, and 90 minutes are displayed and 30 min is pre-selected
- Given I tap the 45-minute chip, when I proceed, then the registration uses 45 minutes and this value becomes my new default
- Given I need a custom duration such as 75 minutes, when I tap a free-entry field and type 75, then the registration accepts 75 minutes and validates that the value is between 1 and 480 minutes
Business Value
HLF reported that a single peer mentor had 380 registrations in one year, many of which are logged retroactively at the end of a working period. Without a fast retroactive entry flow, these registrations are skipped entirely, leading to systematic under-reporting that understates the organisation's impact and endangers Bufdir funding calculations.
Components
- Date Selection Step ui
- Duration Selection Step ui
- Activity Registration Cubit service
- Registration Defaults Manager service
- Registration Preferences Store data
- Wizard State Manager service