copilot-metrics-viewer icon indicating copy to clipboard operation
copilot-metrics-viewer copied to clipboard

add editors breakdown

Open giotab opened this issue 9 months ago • 2 comments

In order to see Editors usage as well, I changed the existing LanguagesBreakdown component to be more generic so that both Languages and Editors require less effort to maintain.

github copilot editors pie chart

Here are the most significant changes:

New Features:

  • src/components/BreakdownsComponent.vue: Introduced a new component that provides a generic breakdown view. This component can display breakdowns by different keys such as language or editor. It includes a pie chart to visualize the top 5 items by accepted prompts and acceptance rate, and a data table for a detailed breakdown.

Enhancements:

  • src/components/MainComponent.vue: Replaced the LanguagesBreakdown component with the new BreakdownsComponent. Added 'editors' to the list of tab items to provide a breakdown by editors. [1] [2] [3]
  • src/components/MetricsViewer.vue: Removed the processing of language breakdowns as it is now handled by the BreakdownsComponent. [1] [2]

Refactoring:

  • src/model/Breakdown.ts: Renamed from Language.ts and updated the class name to Breakdown to make it more generic.
  • src/model/Metrics.ts: Renamed the Breakdown class to BreakdownData and updated the breakdown member of the Metrics class to use BreakdownData. [1] [2] [3]

Removals:

  • src/components/LanguagesBreakdown.vue: Removed this component as its functionality is now covered by the BreakdownsComponent.
  • src/components/MetricsViewer.vue: Removed the import of the Language model as it is no longer used.

giotab avatar Apr 30 '24 18:04 giotab

@giotab , thanks for your contribution! I added a few comments 👍🏼

martedesco avatar May 03 '24 15:05 martedesco

@giotab , thanks for your contribution! I added a few comments 👍🏼

Hi @martedesco , not sure I can see the comments 🤔 unless you mean in the PR's description? Also, should I bump the version number to 1.5.0?

giotab avatar May 11 '24 09:05 giotab

Hi @martedesco , not sure I can see the comments 🤔 unless you mean in the PR's description?

My bad, I didn't submit them!

Also, should I bump the version number to 1.5.0?

I will add a few things before releasing it, so no need to worry about that 🙏🏼

martedesco avatar May 15 '24 08:05 martedesco