View Activity Type Breakdown in Annual Summary
Within the annual summary, a dedicated activity type breakdown section shows the distribution of activity types (e.g., home visits, phone calls, group sessions, crisis support) using a visual chart. The breakdown uses the organization-specific activity type labels configured by the admin. For peer mentors who conducted a wide variety of activity types, the chart shows up to 5 types with an 'other' grouping for the remainder. The breakdown is interactive — tapping a segment shows the count and total hours for that activity type. The data is sourced from the same aggregation pipeline as the main summary stats, ensuring consistency. A highlight card calls out the peer mentor's most-performed activity type for the year.
User Story
Acceptance Criteria
- Given I have activities of multiple types in the selected year, when I view the annual summary, then an activity type breakdown section shows a visual chart with my activity distribution
- Given my organization uses custom activity type labels, when the breakdown is rendered, then it uses the organization-specific labels rather than generic system labels
- Given I tap on a segment of the activity breakdown chart, when the detail is shown, then I see the session count and total hours for that activity type
- Given I conducted more than 5 distinct activity types, when the chart renders, then the top 4 types are shown individually and the remainder are grouped as 'Other' with a combined count
- Given I have only one activity type for the selected period, when the breakdown renders, then it shows 100% for that single type without rendering a misleading chart
- Given I use a screen reader, when I navigate the activity breakdown section, then each chart segment is announced with its label, count, and percentage of total activities
Business Value
Activity type breakdown data serves a dual purpose: it gives peer mentors meaningful self-insight into their volunteer patterns, and it provides organizations with aggregate data on which activity types their volunteer workforce is predominantly performing. For Bufdir reporting, understanding the composition of peer mentor activity types is required for grant compliance. By surfacing this information in an engaging format within the Wrapped experience, the feature encourages peer mentors to voluntarily diversify their activity types — particularly valuable for NHF's complex activity taxonomy across 12 national associations and 1,400 local chapters.
Components
- Activity Type Breakdown Widget ui
- Wrapped Summary Screen ui
- Annual Stats Aggregation Service service
- Wrapped Summary BLoC service
- Peer Mentor Stats Aggregator service
- Summary Accessibility Provider infrastructure
- Activity Aggregation Repository data