Review Peer Mentor Activity History on Contact Detail
The activity history list component is embedded in the contact detail screen and loads the peer mentor's registered activities from the contact detail repository. The list shows each activity with its date, type label (using the organization's custom terminology), duration, and chapter attribution. A time window selector allows the coordinator to filter by preset periods (last 30 days, last 6 months, this year) or a custom date range. Activities registered by proxy on behalf of this peer mentor are marked with a proxy audit badge to distinguish them from self-registered entries. The coordinator can tap any activity entry to navigate to the activity detail for further inspection or correction.
User Story
Acceptance Criteria
- Given I am on the contact detail screen, When I scroll to the activity history section, Then I see a list of activities sorted by date descending, showing activity type, date, duration, and chapter
- Given the contact has more than 20 activity records, When I scroll to the bottom of the history list, Then the next page of records loads automatically (infinite scroll pagination)
- Given I am viewing the activity history, When I tap the time window selector, Then I can choose from preset options (Last 30 days, Last 6 months, This year, Custom) and the list filters accordingly
- Given an activity in the history was registered by a coordinator on behalf of this peer mentor, When it appears in the list, Then a proxy audit badge is shown next to the activity indicating proxy registration
- Given I tap an activity entry in the history list, When navigation occurs, Then I am taken to the activity detail screen for that specific registration
- Given the contact has no activities registered in the selected time window, When the filter is applied, Then an empty state message is shown with a suggestion to register the first activity
Business Value
Coordinators are responsible for the quality and completeness of activity reporting across their peer mentor network. Without an embedded activity history view on the contact detail screen, coordinators must leave the contact context and search through global activity logs to check a specific peer mentor's registration history — a time-consuming process that discourages proactive monitoring. Inline history visibility directly reduces under-reporting by making it trivial for coordinators to spot gaps, and enables faster pre-submission verification before Bufdir export deadlines.
Components
- Contact Detail Screen ui
- Activity History List ui
- Contact Detail Service service
- Contact Detail Repository data
- Proxy Audit Badge Widget ui
- Time Window Selector ui
- Time Window Service service