Add Individual User Merge Request Dashboard in Productivity Mode
Summary
Add an Individual User Merge Request Dashboard to the Team-wise Productivity Leaderboard that displays detailed merge request information (project name, MR title, status, and URL) when a user is selected. This improves transparency and enables deeper analysis of individual contributions.
Problem to Solve
As a mentor or project reviewer, I want to view a detailed list of merge requests created by each team member so that I can accurately assess their contributions and development progress.
Intended Users
- Contributors / Developers
- Mentors
- Project Leads
- Admins
User Experience Goal
Users should be able to select a team and individual member and instantly view that user's merge request history in a clean, readable dashboard table.
Proposal
When a user is selected from the team dropdown in the Productivity Dashboard:
- The system fetches all merge requests authored by that user.
- Displays a dynamic dashboard table containing:
- Project Name
- MR Title
- Status (opened / merged / closed)
- MR URL
- Data should load with a spinner and handle cases where no MRs exist gracefully.
Further Details
- Implementation added inside
modes/productivity_mode.py. - Uses GitLab project scanning for accurate MR retrieval.
- Avoids GitLab API filtering limitations.
- Improves:
- Individual performance review
- Team evaluation
- Contribution transparency
Security or Permissions Considerations
- No new permissions required.
- Uses existing GitLab API access token.
- Read-only access to merge request data.
- No modification of GitLab data.
Documentation Impact
- Update:
-
README.md→ Add description of the new dashboard feature - User guide → Productivity dashboard usage section
-
Testing Considerations
Tests Required:
- Unit tests for:
- MR data fetching logic
- UI tests for:
- Table rendering
- Empty MR result handling
Edge Cases:
- Users with zero merge requests
- API timeout or failure
- Large number of merge requests
Milestone & Labels
Suggested Milestone:
Analytics Dashboard Enhancements
Suggested Labels:
enhancement
feature
dashboard
analytics
good first issue