Add support to Enterprise level metrics #23
Merged
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 pull request introduces changes to enhance the functionality of the application and improve the user experience. The most significant changes include the addition of environment variables to control the scope of API calls and changes to the API to support different scopes. These changes allow the application to target API calls to either an enterprise or an organization.
Environment Variables and API Calls:
.env
: Introduced new environment variablesVUE_APP_SCOPE
andVUE_APP_GITHUB_ENT
to determine the scope of the API calls and the enterprise or organization name to target API calls, respectively.src/api/GitHubApi.ts
: RenamedgetGitHubCopilotMetricsApi
togetMetricsApi
and modified it to use the new environment variables to determine the API endpoint. Also, added a new methodgetTeams
to fetch teams data. [1] [2]User Interface and User Experience:
src/components/ApiResponse.vue
: Added a copy to clipboard feature for the JSON response displayed in the UI. [1] [2] [3]src/components/MainComponent.vue
: Updated the toolbar title to include the capitalized item name and the GitHub organization name. Also, added error handling for an invalid scope in the.env
file. [1] [2] [3] [4]Documentation and Version Updates:
README.md
: Updated the setup instructions to include the new environment variables and their usage. Also, updated the "Coming next" section. [1] [2]package.json
: Updated the project version from 1.2.0 to 1.4.0 - preparing for release.Minor Changes:
public/index.html
: Updated the favicon from.ico
to.svg
.src/components/RawDataViewer.vue
file.