Skip to content

Conversation

karpikpl
Copy link
Collaborator

@karpikpl karpikpl commented Jan 11, 2025

This pull request includes significant updates to the GitHub Copilot metrics viewer, focusing on improving the metrics data handling, validation, and visualization. The most important changes include updating the mock data responses, enhancing the metrics API functions, and adding new validation and conversion utilities.

It replaces #125 due to merge conflicts and GitHub bug that prevented from applying suggestions.

Mock data updates:

  • api/server.mjs: Updated the mock data responses for various endpoints to use new sample files.
  • src/api/ExtractSeats.ts: Updated import paths for the organization and enterprise seats mock data.

Metrics API enhancements:

  • src/api/GitHubApi.ts: Enhanced the getMetricsApi and getTeamMetricsApi functions to return both metrics and original data, and updated the endpoints to use /metrics instead of /usage. [1] [2] [3]

New utilities:

UI improvements:

Documentation updates:

  • README.md: Updated image sources and improved the description of key metrics.

fixes #122
closes #116 #115 #113 #122 #63

DevOps-zhuang and others added 19 commits November 19, 2024 12:31
…ons bug for acceptance rate (by lines); remove unused variables in SeatsAnalysisViewer
…te labels, improve clarity, and reorder cards for better focus on acceptance rates by count
… enhance error handling and improve code readability
…usage route 2) add MetricsToUsageConverter class, to map the new returned metrics schedma to old metrics schema, so the caller don't need to update more. 3) add CopilotUsageChecker to check the data quality of the new fetched schema, and display it in api-response page.
…re, simplify the button layout in the ApiResponse component.
@karpikpl karpikpl changed the title Feature/new copilot metrics API - includes #125 Feature/new copilot metrics API - replaces #125 Jan 11, 2025
@karpikpl karpikpl merged commit a5cfc56 into main Jan 13, 2025
5 checks passed
@karpikpl karpikpl deleted the feature/new-copilot-metrics branch January 13, 2025 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use of /metrics Update API to latest version Show the Acceptance Rate (by count) and Acceptance Rate (by lines)
3 participants