github-copilot-resources / copilot-metrics-viewer

Tool to visualize the Copilot metrics provided via the Copilot Business Metrics API (current in public beta)
https://ashy-sky-02a7d0403.5.azurestaticapps.net/
MIT License
215 stars 99 forks source link

Refactor acceptance rate calculation in MetricsViewer.vue #34

Closed martedesco closed 1 month ago

martedesco commented 1 month ago

This pull request primarily focuses on refactoring the calculation of the acceptanceRateAverage in the MetricsViewer.vue file. The calculation is now based on the cumulative number of acceptances and suggestions, rather than the average of daily acceptance rates.

Here are the key changes: