User Story
As an Administrator, I want to see a line graph showing the times of day when a Resident is most engaged, so that I can identify patterns of engagement.
Description
This feature adds a line graph to the Resident Profile Overview that visualizes Resident engagement patterns across a 24-hour period.
- The x-axis will represent the hours of the day (12am-11pm).
- The y-axis will represent the total minutes of engagement within each hour.
- Engagement is defined as any tracked interaction with UnlockEd's educational content (e.g., Knowledge Center, Learning Path, My Progress, Trending Content).
- The line graph should display a single line for the selected Resident.
- Hovering over data points should reveal the exact time and number of minutes spent during that hour.
Tasks
User Flow
- Admin logs into UnlockEd.
- Admin navigates to the Residents page.
- Admin clicks on a Resident's name to open the Resident Profile Overview.
- In the Engagement Metrics section, Admin sees a line graph titled "Most Engaged Time of Day".
- Admin reviews the graph, which shows:
- Hourly engagement data across a 24-hour period.
- Peaks and troughs indicating the most and least active times for the Resident.
- Admin hovers over any data point to view a tooltip with:
- Hour of the day.
- Total engagement time during that hour.
Acceptance Criteria
- The line graph displays Resident engagement correctly across a 24-hour time frame.
- The x-axis clearly shows hour markers from 12am to 11pm.
- The y-axis accurately reflects total engagement time in minutes.
- Hovering over a data point reveals:
- The time of day.
- The minutes of engagement during that hour.
- The graph is visually clear, responsive, and accessible.
- No performance issues occur when loading the line graph for high-activity Residents.
Technical Considerations
- Use the existing charting library if available.
- Ensure the graph renders dynamically without page reloads.
User Story
As an Administrator, I want to see a line graph showing the times of day when a Resident is most engaged, so that I can identify patterns of engagement.
Description
This feature adds a line graph to the Resident Profile Overview that visualizes Resident engagement patterns across a 24-hour period.
Tasks
User Flow
Acceptance Criteria
Technical Considerations