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 significant changes to the project, primarily focusing on the addition of new components and the enhancement of existing ones. The new components include
CopilotChatViewer.vue
andLanguagesBreakdown.vue
, which provide new functionalities to the application. The existingMetricsViewer.vue
andMainComponent.vue
components have been updated with several improvements and modifications.New components:
src/components/CopilotChatViewer.vue
: A new Vue component namedCopilotChatViewer
has been added. This component fetches GitHub Copilot metrics and handles API errors, providing appropriate error messages based on the error response status.src/components/LanguagesBreakdown.vue
: Another new Vue component,LanguagesBreakdown
, has been introduced. This component fetches GitHub Copilot metrics, processes language breakdown data, and displays it in various formats, including a pie chart and a data table. It also handles API errors.Refactoring:
src/components/MainComponent.vue
: TheMainComponent
has been refactored to include the newLanguagesBreakdown
andCopilotChatViewer
components. The toolbar color has been changed fromblack
toindigo
, and the title now includes the GitHub organization name. Theenterprise
item has been removed from theitems
array. [1] [2] [3]src/components/MetricsViewer.vue
: TheMetricsViewer
component has undergone several changes. TheLanguages Breakdown
section has been removed, and minor changes have been made to the component's imports. [1] [2] [3] [4] [5] [6] [7]Removal of redundant code:
src/components/MetricsViewer.vue
: TheLanguages Breakdown
section, which included a data table displaying language breakdown data, has been removed from theMetricsViewer
component. This code was redundant because the newLanguagesBreakdown
component now handles the display of language breakdown data.