Native integrations: show a UI hint that the user should log in to Sourcegraph
Created by: lguychard
In https://github.com/sourcegraph/sourcegraph/pull/6293, the browser extension / native integrations code was changed to exit early when the user was not logged in, signaling that state only with a console.log
:
Previously, a hint to sign in to Sourcegraph would only be displayed in the repo header (not individual file headers, so this hint would not be shown on eg. pull request views on some code hosts).
This change was made with the GitLab native integration in mind - we had strict constraints there not to add any extra UI elements, and needed to silence console errors that were shown when the user was not signed in to a Sourcegraph instance.
That being said, in other native integrations (like Bitbucket Server), it would be desirable to show a UI hint that the user needs to sign in to his Sourcegraph instance (see "level 2: UI hints" of RFC 67 for suggestions on what this could look like).