Communicate the extension state by changing the icon
Created by: AlicjaSuska
Part of RFC 221: Improve discoverability/awareness of the browser extension
Description
The browser extension icon should change its state to communicate that extension is on, off or that extension is not working properly.
Design documentation
Variants:
- colorful logo - extension on, working properly or extension is not working but there is no action to be taken:
- when on sourcegraph.com
- for any domain except the code hosts Note: it doesn't make sense to display the alert in those cases as the error cannot be resolved.
- colorful logo + alert dot - extension on, not working properly, there is an issue to solve:
- disconnected from the URL (no green dot next to the URL)
- viewing the private repository that is not connected to Soucegraph
- additional permissions for the code host needed
- gray logo - extension off
- when the toggle is set to 'off'