Skip to content
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

Feature/toolbar tabs #11

Merged
merged 2 commits into from
Apr 17, 2024
Merged

Feature/toolbar tabs #11

merged 2 commits into from
Apr 17, 2024

Conversation

martedesco
Copy link
Collaborator

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.

@martedesco martedesco merged commit 6a56e0e into main Apr 17, 2024
6 checks passed
@martedesco martedesco deleted the feature/toolbar-tabs branch April 17, 2024 14:49
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.

None yet

1 participant