-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cody VSCode: Add support for verified email check message when connected to app; and improve connected status message #52075
Conversation
serverEndpoint: DOTCOM_URL.href, | ||
serverEndpoint, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fixes a regression; serverEndpoint is already set above to DOTCOM_URL if we're connecting to dotcom, or it's set to LOCAL_APP_URL if we're connecting to App so we don't want to overwrite it here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have the release build of App to test the button but the code looks good to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sweet!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@limitedmage yup, makes sense: #52131 |
…graph.com" (#52131) Follow-up to this comment: #52075 (review) ## Test plan - N/A
…graph.com" (#52131) Follow-up to this comment: sourcegraph/sourcegraph#52075 (review) ## Test plan - N/A
Show verified email message when connecting Cody extension to App
When connecting the Cody extension to App, it's expected to act similarly to dotcom in that requires an email address and if the user doesn't have a verified email address, it should show the same message.
This PR checks if we are connecting to App, and if so it will treat the email verification logic the same as if we were connecting to sourcegraph.com, so we also get the same error message for an unverified email.
Background info: App will basically proxy the request to dotcom so the response to
currentUser { id, hasVerifiedEmail }
will be similar to a dotcom response. The only difference, then, is that Cody extension holds an access token to App and App holds an access token to dotcom.Video
Screen.Recording.2023-05-17.at.11.16.53.AM.mov
Update "Connected to" display
This is a cosmetic change to show "Connected to Sourcegraph App" instead of "Connected to http://localhost:3080":
Test plan