MEDIUM story-peer-mentor-profile-status-peer-mentor-005 3 pts
3
Story Points
Medium
Priority
Peer Mentor Profile & Status Screen
Feature

User Story

As a Peer Mentor (Likeperson)
I want to see a summary of my recorded activities on my profile screen, including recent activity count, total hours contributed, and access to my full activity history
So that I can verify that my contributions are being tracked correctly, feel motivated by seeing my cumulative impact, and identify any activities that may have been missed

Audience Summaries

This story directly addresses volunteer motivation and retention by giving peer mentors transparent visibility into their own contribution history. When volunteers can see their total activities, hours logged, and year-to-date impact, they feel recognized and are more likely to remain engaged with the platform long-term. This supports the strategic 'Peer Mentor Year in Review' (Wrapped) vision co-identified with NHF and HLF during workshops — a differentiating feature that positions the platform as genuinely caring about volunteer recognition. Reduced churn among trained peer mentors lowers recruitment and onboarding costs.

Accurate self-reporting is also encouraged when mentors can verify their own logged history, improving data quality for organizational reporting and grant compliance.

This story has medium priority and moderate delivery complexity. The mentor-activity-summary-panel and activity-history-list are distinct UI components that depend on the profile screen infrastructure established by story-peer-mentor-profile-status-peer-mentor-001. The data layer must aggregate real activity log records — not estimates — requiring a reliable query against the mentor's activity log table, filtered by 30-day and year-to-date windows. Five acceptance criteria must be validated: stats display, hours as a distinct metric, full history navigation, per-item detail (date, type, duration, contact), and a zero state with encouragement.

Testing must cover mentors with zero, few, and many activities. Rollout risk is low but the zero state must be polished since new mentors will see it first.

Implementation requires building two components: the mentor-activity-summary-panel (aggregated stats) and the activity-history-list (full scrollable log). The summary panel needs backend queries that compute: COUNT of activities in the last 30 days, COUNT for the current calendar year, and SUM of duration for the year — all scoped to the authenticated mentor's ID. These should be efficient indexed queries against the activity log table, not computed on the client. The history list needs pagination or virtual scroll for mentors with large histories.

Each list item must join to the contacts table to resolve the optional contact name. The zero state requires conditional rendering logic. Navigation from panel to full history must pass the mentor's context. Ensure queries handle timezone boundaries correctly for the 30-day window.

Unit tests should cover the aggregation logic and the optional contact join edge cases.

Acceptance Criteria

  • Given I am on my profile screen, When the mentor-activity-summary-panel loads, Then I see my total activity count for the last 30 days and for the current year
  • Given I am on my profile screen, When the panel loads, Then I see total hours logged this year as a distinct metric
  • Given I tap 'View All Activity' in the summary panel, When the navigation executes, Then I see a scrollable activity-history-list with all my logged activities
  • Given I am viewing my activity history, When the list loads, Then each item shows the activity date, type, duration, and the contact name if associated
  • Given I have no activities logged, When the summary panel loads, Then I see a zero state with an encouragement message and a shortcut to register a new activity

Business Value

Activity visibility on the peer mentor's own profile directly supports volunteer motivation and accuracy. When mentors can see their logged contributions, they are more likely to catch underreporting errors, feel recognized for their work, and stay engaged with the platform. This also supports the multi-organization aspiration for a 'Peer Mentor Year in Review' feature (Wrapped equivalent) identified in workshops with NHF and HLF.