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

add editors breakdown #24

Merged

Conversation

giotab
Copy link
Contributor

@giotab giotab commented Apr 30, 2024

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:

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:

@martedesco martedesco self-requested a review May 2, 2024 17:48
@martedesco
Copy link
Collaborator

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

@giotab
Copy link
Contributor Author

giotab commented May 11, 2024

@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?

@@ -0,0 +1,243 @@
<template>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make sense to name it BreakdownComponent.vue? As I would assume it is a singular breakdown per component e.g. languages or editors

src/components/BreakdownsComponent.vue Outdated Show resolved Hide resolved
src/components/MetricsViewer.vue Show resolved Hide resolved
@martedesco
Copy link
Collaborator

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 martedesco merged commit 84b4268 into github-copilot-resources:main May 22, 2024
2 checks passed
@giotab giotab deleted the generalize-breakdown-component branch May 23, 2024 11:46
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

2 participants