-
Notifications
You must be signed in to change notification settings - Fork 158
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
Switch to webview api #174
Conversation
40a3529
to
8cbe5d9
Compare
src/install-webview.js
Outdated
@@ -4,8 +4,7 @@ const os = require('os'); | |||
const vscode = require('vscode'); | |||
const {workspace} = vscode; | |||
const formidable = require('formidable'); |
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.
unused?
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.
nice catch, indeed we no longer need that as it was used to parse form data sent by the page when we had to rely on a server started by the extension.
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.
Code looks good and makes sense. My comments are more UX related (cc @dhung09 ):
- Status Panel:
- I like the responsiveness with changes in login state
- Should
Kite Search
go to the web docs (where it goes currently) or the copilot? All the other links go to the copilot. If we decide to keep it pointing to the webdocs, perhaps we should label it differently (e.g.Kite Web Docs
) - We should not show
Permissions
in Kite Local, if possible - When I hover on the links in the Status Panel, I get popups with what, from a user perspective, appears to be gobbledegook. I'm guessing we should probably get rid of that
- There was no apparent action taken when I clicked
Invite Friends
- Install Panel (with no Kite installed)
- When I enter a new email, no apparent action takes place. I do get a verification email. If I verify that email, then take no further action (I'm asked to create a password), and then restart the VSCode install flow, I get to a point where I seem to have a passwordless account, and can't move forward from that point
- is there a reason a verification email is being sent here? Shouldn't I be able to just create an account without that extra step?
- If I enter an extant email, then I can continue when I click
Continue
. However, no apparent action is taken when I enter the correct password - When I click "Forgot Password", no apparent action is taken, though a reset password email is sent
- Because of being unable to get past a couple of the steps above, I wasn't able to fully evaluate the rest of the flow
- When I enter a new email, no apparent action takes place. I do get a verification email. If I verify that email, then take no further action (I'm asked to create a password), and then restart the VSCode install flow, I get to a point where I seem to have a passwordless account, and can't move forward from that point
I've just made a pass on the status view, the install flow will come after
I do agree this is definitely weird. Whatever solution is fine with me though. And even if we continue to point to the webdocs, do we still need the
I guess this is a change we'll be able to address with kite-api 2.2 and your
Oh yeah I didn't noticed that mostly because I was clicking on them rather that hovering. Apparently it happens because we don't provide any
That was indeed broken, I missed these links when updating to |
@dbratz1177 For the install flow, when you talk about no action being done, are you talking about visual feedback? That was some of the things I was considering as improvements. |
It's working for me (both the https://kite.com/invite and the redirection). And I think it's still a thing, though I do know we're going to be phasing out our current Pro iteration
After a second look, this is probably the essential issue that I was having... if we're requiring users to take action outside of VSCode to complete the installation process, I think we have to provide them some sort of feedback as to what to do next, and what to expect from the rest of the process. |
I retried the scenario of installing with a newly created account and yes the install do start after a while, we can definitely do better here though. It looks to me that when we submit the form with the new email we should move to a new screen explaining what's going to happen. |
@abe33 I'm not aware of any issue with the backend that's generating the slowness. |
@abe33 another option to an intermediary screen would be to just add a spinner like the installation page |
c9b18c8
to
1559a6a
Compare
@dbratz1177 @dhung09 Added two new views for email verification and account creation, it seems it's the account creation that takes an extra time to end. Feel free to modify the views content. |
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.
Changes look good to me - my concerns were largely addressed
14eed01
to
f04e641
Compare
Ref #172