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 and LanguagesBreakdown.vue, which provide new functionalities to the application. The existing MetricsViewer.vue and MainComponent.vue components have been updated with several improvements and modifications.
New components:
src/components/CopilotChatViewer.vue: A new Vue component named CopilotChatViewer 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: The MainComponent has been refactored to include the new LanguagesBreakdown and CopilotChatViewer components. The toolbar color has been changed from black to indigo, and the title now includes the GitHub organization name. The enterprise item has been removed from the items array. [1][2][3]
src/components/MetricsViewer.vue: The MetricsViewer component has undergone several changes. The Languages 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: The Languages Breakdown section, which included a data table displaying language breakdown data, has been removed from the MetricsViewer component. This code was redundant because the new LanguagesBreakdown component now handles the display of language breakdown data.
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.