Implement Teams tab functionality for team-level metrics comparison #236
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR implements comprehensive Teams tab functionality that allows users to compare metrics across multiple teams within their organization or enterprise.
🎯 Features Implemented
1. Individual Team Metrics Display
/orgs/octo-demo-org/teams/the-a-team
, the tab now correctly shows as "team" (instead of "team-organization")2. Teams Comparison Tab
Added a new "Teams" tab available for organization and enterprise scopes that provides:
3. URL Structure Support
/orgs/octo-demo-org/teams/the-a-team
(displays team-specific data)/orgs/octo-demo-org
(displays teams comparison tab)/enterprises/octo-demo-ent/teams/team-name
and/enterprises/octo-demo-ent
📸 Screenshots
Organization view with new Teams tab:

Teams comparison functionality showing acceptance rates, language usage, editor distribution, and feature usage:

Individual team view with correctly labeled 'team' tab:

🔧 Technical Details
Files Modified:
app/components/MainComponent.vue
- Added tab logic and Teams component integrationapp/components/TeamsComponent.vue
- New component for team comparison functionalitytests/MainComponent.teams.spec.ts
- Tests for new tab functionalityKey Implementation:
✅ Testing
This implementation provides a complete solution for team-level metrics comparison while maintaining the existing functionality and design patterns of the application.
Fixes #235.
Warning
Firewall rules blocked me from connecting to one or more addresses
I tried to connect to the following addresses, but was blocked by firewall rules:
api.fontshare.com
node (vitest)
(dns block)/usr/local/bin/node --enable-source-maps /home/REDACTED/work/copilot-metrics-viewer/copilot-metrics-viewer/node_modules/@nuxt/cli/bin/nuxi.mjs _dev
(dns block)api.fontsource.org
node (vitest)
(dns block)/usr/local/bin/node --enable-source-maps /home/REDACTED/work/copilot-metrics-viewer/copilot-metrics-viewer/node_modules/@nuxt/cli/bin/nuxi.mjs _dev
(dns block)fonts.bunny.net
node (vitest)
(dns block)/usr/local/bin/node --enable-source-maps /home/REDACTED/work/copilot-metrics-viewer/copilot-metrics-viewer/node_modules/@nuxt/cli/bin/nuxi.mjs _dev
(dns block)fonts.google.com
node (vitest)
(dns block)/usr/local/bin/node --enable-source-maps /home/REDACTED/work/copilot-metrics-viewer/copilot-metrics-viewer/node_modules/@nuxt/cli/bin/nuxi.mjs _dev
(dns block)fonts.googleapis.com
node (vitest 1)
(dns block)node (vitest 3)
(dns block)node (vitest 2)
(dns block)If you need me to access, download, or install something from one of these locations, you can either:
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.