feat:personal and contributed projects
What does this MR do?
This merge request improves the User Profile Overview by correctly identifying and displaying Contributed Projects. It removes the duplicate contributed projects section and adds proper logic to calculate the contributed projects count based on user activity instead of static or empty data.
Motivation / Use Case
Previously, the contributed projects count always showed 0, even when the user had contributions. GitLab does not provide contributed projects directly, so this enhancement derives them using user activity (merge requests), ensuring accurate statistics and a clearer profile overview for users
Implementation Notes
Removed the duplicate Contributed Projects section displayed below Personal Projects.
Implemented logic to fetch user merge requests using GitLab API.
Derived unique contributed projects by extracting and de-duplicating project IDs from merge requests.
Displayed the contributed projects section above Personal Projects.
Updated Account Statistics to reflect the correct contributed projects count.
No breaking changes; existing personal projects logic remains unchanged
How to Test
Pull this branch. Run the Streamlit app using: streamlit run app.py
Enter a GitLab username with at least one public merge request.
Click Fetch User Info.
Verify:
Contributed Projects section appears above Personal Projects.
Contributed Projects count is greater than 0 (if MRs exist).
No duplicate contributed projects section is shown.
Checklist
-
Feature is documented in code comments
-
Code is clean, readable, and follows project style
-
No breaking changes
-
Feature tested locally
-
Feature works as intended
Related Issues or Discussions
Implements enhancement for accurate contributed projects display in User Profile Overview.