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

Update environment variables and resolve JSON module in tsconfig.json #9

Closed martedesco closed 2 months ago

martedesco commented 2 months ago

This pull request introduces the ability to use mocked data for the GitHub Copilot metrics, which can be toggled through a new environment variable. The changes are primarily in the README.md, .env, and src/api/GitHubApi.ts files. The most significant changes include the addition of the VUE_APP_MOCKED_DATA environment variable, updates to the setup instructions in the README.md file to include details about the new environment variable, and modifications to the getGitHubCopilotMetricsApi function to return mocked data when the VUE_APP_MOCKED_DATA environment variable is set to true.

Mock data feature introduction: