codecov / codecov-browser-extension

A browser extension for Codecov. Works for Chrome and Firefox
Apache License 2.0
37 stars 12 forks source link

Refactor file view content script #29

Closed anukul closed 1 year ago

anukul commented 1 year ago

used common function to create both flags and components dropdown, split code into multiple files

anukul commented 1 year ago

also fixed bug where selecting a flag (/ component) for a specific repository would show "Coverage: N/A" for other repositories since this selection is currently global, and there is no way to unselect a flag unless it's shown in the dropdown (not applicable for flags of other repositories).

added TODO to make this selection scoped to each repository, for better UX. will get around to it over the next week