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

Add error handling for missing GitHub token and explicitly stating VUE_APP_MOCKED_DATA=true in the UI #29

Closed abirismyname closed 1 month ago

abirismyname commented 1 month ago

This pull request primarily focuses on improving the handling of environment variables in the GitHubApi.ts and MainComponent.vue files. The changes include adding a console log to notify when mock data is being used, throwing an error when the VUE_APP_GITHUB_TOKEN environment variable is not set, and displaying a message on the main component when mock data is being used.

User Feedback Enhancements:

Error Handling Improvements: