feat(ui): implement main team filter dropdown.
What does this MR do?
This Merge Request adds a Team Filter Dropdown to the Team Leaderboard in the GitLab Compliance & Analytics Tool.
The feature allows users to select All Teams or a specific team from a dropdown menu. Based on the selected option, the leaderboard analysis will display either all teams or only the selected team's performance metrics.
This MR also removes the "View Specific Team" button and replaces it with the dropdown filter for a cleaner and more consistent user interface.
Motivation / Use Case
Currently, the leaderboard displays metrics for all teams only, which makes it difficult to focus on a single team’s performance.
This feature allows users to:
- Filter leaderboard results by team
- View metrics for a specific team
- Improve usability and data readability
- Maintain existing functionality for viewing all teams
Related Issue: Team Filter Dropdown Feature
Implementation Notes
-
Added a dropdown menu between Workspace and Create New Team section.
-
Dropdown includes:
- "All Teams"
- List of all configured teams
-
Stored selected team in a variable and applied filtering before rendering results.
-
Modified leaderboard results rendering logic to display:
- All teams when "All Teams" is selected
- Only selected team when a specific team is selected
-
Removed the "View Specific Team" button below the Run Leaderboard Analysis section.
-
No breaking changes were introduced.
-
Existing functionality remains unchanged.
How to Test
-
Pull this branch locally.
-
Run the application:
python main.py -
Open the Team Leaderboard page.
-
Verify the dropdown appears between Workspace and Create New Team.
-
Select All Teams → Run Leaderboard Analysis → All teams should be displayed.
-
Select a specific team → Run Leaderboard Analysis → Only that team's metrics should be displayed.
-
Confirm the "View Specific Team" button is removed.
-
Verify no existing functionality is broken.
Checklist
- Code is clean and readable
-
No breaking changes -
Feature is documented -
Feature tested locally -
Existing functionality unaffected
-


