-
Notifications
You must be signed in to change notification settings - Fork 274
Implement Agent Mode Statistics display with models used by users #226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: karpikpl <[email protected]>
Co-authored-by: karpikpl <[email protected]>
@copilot do not call it agent mode - rename it to Github.com
|
Co-authored-by: karpikpl <[email protected]>
I've addressed all the requested changes:
All changes implemented in commit ee5d336. The build and tests pass successfully. Warning Firewall rules blocked me from connecting to one or more addressesI tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
@copilot merge with main again. Move calculations to the backend because UI fails to display the charts. |
I've successfully addressed all the requested changes:
The UI now fetches pre-calculated data from the backend instead of doing heavy calculations in the Vue component. This should resolve the chart display issues and provide better performance. All tests continue to pass. Changes implemented in commit 0c23cd4. Warning Firewall rules blocked me from connecting to one or more addressesI tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds a new Agent Mode Statistics feature for GitHub.com Copilot interactions, including backend aggregation, a dedicated UI component, navigation updates, end-to-end tests, and CSS hover fixes.
- Implements
server/api/github-stats.ts
to fetch and compute usage and model statistics. - Adds
AgentModeViewer.vue
to display overview cards, interactive charts, and detailed model tables; integrates it inMainComponent.vue
. - Introduces new E2E page objects and tests (
GitHubTab.ts
,DashboardPage.ts
,github-tab.spec.ts
) and refines global CSS for hover styles.
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.
Show a summary per file
File | Description |
---|---|
server/api/github-stats.ts | New API handler aggregates Copilot metrics into GitHubStats |
app/components/AgentModeViewer.vue | Component rendering statistics cards, charts, and model details |
app/components/MainComponent.vue | Integrated AgentModeViewer and added the “github.com” tab |
e2e-tests/pages/GitHubTab.ts | New Playwright page object for GitHub.com statistics |
e2e-tests/pages/DashboardPage.ts | Added navigation helper for the GitHub tab |
e2e-tests/github-tab.spec.ts | E2E tests validating the GitHub.com statistics tab |
app/assets/global.css | CSS overrides for improved tab and panel hover behavior |
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
* Initial plan * Initial exploration and setup complete Co-authored-by: karpikpl <[email protected]> * Implement Agent Mode Statistics display with models used by users Co-authored-by: karpikpl <[email protected]> * Rename agent mode to GitHub.com and update terminology Co-authored-by: karpikpl <[email protected]> * Merge with main and move GitHub.com calculations to backend Co-authored-by: karpikpl <[email protected]> * model info * Update e2e-tests/pages/GitHubTab.ts Co-authored-by: Copilot <[email protected]> * Update app/components/AgentModeViewer.vue Co-authored-by: Copilot <[email protected]> * Update server/api/github-stats.ts Co-authored-by: Copilot <[email protected]> * Update e2e-tests/pages/GitHubTab.ts Co-authored-by: Copilot <[email protected]> * code cleanup after copilot made a mess --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: karpikpl <[email protected]> Co-authored-by: Piotr Karpala <[email protected]> Co-authored-by: Piotr Karpala <[email protected]> Co-authored-by: Copilot <[email protected]>
…n charts, and bar chart visualizations (#236) * Initial plan * Implement Teams tab functionality with comparison features Co-authored-by: karpikpl <[email protected]> * Redesign Teams component with dropdown selection and multi-line charts Co-authored-by: karpikpl <[email protected]> * Fix Teams tab styling and implement bar charts for language/editor comparison - Fixed v-chip styling issues in team selection dropdown (added color="primary" and variant="outlined") - Fixed selected teams chips styling (changed to variant="tonal" for better visibility) - Replaced language/editor comparison tables with interactive bar charts - Added Bar chart component import from vue-chartjs with BarElement registration - Implemented generateBarChartData() function for chart data transformation - Updated chart clearing logic to include bar chart data - All 85 tests passing, styling issues resolved Co-authored-by: karpikpl <[email protected]> * Implement Agent Mode Statistics display with models used by users (#226) * Initial plan * Initial exploration and setup complete Co-authored-by: karpikpl <[email protected]> * Implement Agent Mode Statistics display with models used by users Co-authored-by: karpikpl <[email protected]> * Rename agent mode to GitHub.com and update terminology Co-authored-by: karpikpl <[email protected]> * Merge with main and move GitHub.com calculations to backend Co-authored-by: karpikpl <[email protected]> * model info * Update e2e-tests/pages/GitHubTab.ts Co-authored-by: Copilot <[email protected]> * Update app/components/AgentModeViewer.vue Co-authored-by: Copilot <[email protected]> * Update server/api/github-stats.ts Co-authored-by: Copilot <[email protected]> * Update e2e-tests/pages/GitHubTab.ts Co-authored-by: Copilot <[email protected]> * code cleanup after copilot made a mess --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: karpikpl <[email protected]> Co-authored-by: Piotr Karpala <[email protected]> Co-authored-by: Piotr Karpala <[email protected]> Co-authored-by: Copilot <[email protected]> * Update package.json (#237) Update for version 2.0.7 * Bump @eslint/plugin-kit in the npm_and_yarn group across 1 directory (#238) Bumps the npm_and_yarn group with 1 update in the / directory: [@eslint/plugin-kit](https://github.com/eslint/rewrite/tree/HEAD/packages/plugin-kit). Updates `@eslint/plugin-kit` from 0.2.4 to 0.2.8 - [Release notes](https://github.com/eslint/rewrite/releases) - [Changelog](https://github.com/eslint/rewrite/blob/main/packages/plugin-kit/CHANGELOG.md) - [Commits](https://github.com/eslint/rewrite/commits/plugin-kit-v0.2.8/packages/plugin-kit) --- updated-dependencies: - dependency-name: "@eslint/plugin-kit" dependency-version: 0.2.8 dependency-type: indirect dependency-group: npm_and_yarn ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump the npm_and_yarn group across 1 directory with 3 updates (#242) Bumps the npm_and_yarn group with 3 updates in the / directory: [esbuild](https://github.com/evanw/esbuild), [@eslint/plugin-kit](https://github.com/eslint/rewrite/tree/HEAD/packages/plugin-kit) and [eslint](https://github.com/eslint/eslint). Updates `esbuild` from 0.25.6 to 0.25.7 - [Release notes](https://github.com/evanw/esbuild/releases) - [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md) - [Commits](evanw/esbuild@v0.25.6...v0.25.7) Updates `@eslint/plugin-kit` from 0.2.8 to 0.3.4 - [Release notes](https://github.com/eslint/rewrite/releases) - [Changelog](https://github.com/eslint/rewrite/blob/main/packages/plugin-kit/CHANGELOG.md) - [Commits](https://github.com/eslint/rewrite/commits/plugin-kit-v0.3.4/packages/plugin-kit) Updates `eslint` from 9.17.0 to 9.32.0 - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](eslint/eslint@v9.17.0...v9.32.0) --- updated-dependencies: - dependency-name: esbuild dependency-version: 0.25.7 dependency-type: direct:development dependency-group: npm_and_yarn - dependency-name: "@eslint/plugin-kit" dependency-version: 0.3.4 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: eslint dependency-version: 9.32.0 dependency-type: direct:production dependency-group: npm_and_yarn ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Fix Teams component rendering by adding missing template directive in MainComponent.vue Co-authored-by: karpikpl <[email protected]> * fixes to styles * working API * in progress * fix for routes * fixing seats * seats * seats * Update app/components/TeamsComponent.vue Co-authored-by: Copilot <[email protected]> * ident * fix pr comment * 2.1.0 --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: karpikpl <[email protected]> Co-authored-by: Piotr Karpala <[email protected]> Co-authored-by: Piotr Karpala <[email protected]> Co-authored-by: Copilot <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This PR implements a comprehensive Agent Mode Statistics feature that displays statistics for different Copilot interaction modes and the AI models used by users, addressing all requirements in the issue.
Changes Made
New Agent Mode Statistics Tab
AgentModeViewer.vue
component to display comprehensive agent mode statisticsAgent Mode Overview Cards
The implementation displays four colorful overview cards showing statistics for each agent mode:
Interactive Charts and Visualizations
Detailed Models Information
Technical Implementation
UI Screenshots
Agent Mode Tab in Navigation:

Agent Mode Statistics Display:

Testing
Fixes #225.
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 /home/REDACTED/work/copilot-metrics-viewer/copilot-metrics-viewer/node_modules/.bin/nuxt build
(dns block)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 /home/REDACTED/work/copilot-metrics-viewer/copilot-metrics-viewer/node_modules/.bin/nuxt build
(dns block)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 /home/REDACTED/work/copilot-metrics-viewer/copilot-metrics-viewer/node_modules/.bin/nuxt build
(dns block)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 /home/REDACTED/work/copilot-metrics-viewer/copilot-metrics-viewer/node_modules/.bin/nuxt build
(dns block)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 2)
(dns block)node (vitest 3)
(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.