-
Notifications
You must be signed in to change notification settings - Fork 16
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
feat: open webview from image action #235
Conversation
Is this needed? |
This is removing the quick pick and making all the paths go to the webview - isn't that the intention? |
e413bf9
to
598675e
Compare
Removes the quick pick command, and instead triggers opening the webview, switching to the build page, and preselecting the image. Signed-off-by: Tim deBoer <[email protected]>
Adding tests for the command redirecting to the build page, and for the build page allowing an initial selection. To test a select control the values must be strings, so I had to rework the Build page a bit to use string values. Signed-off-by: Tim deBoer <[email protected]>
53603cd
to
142f18e
Compare
Added tests, and rebased on main. Ready for full review. |
|
||
// if we trigger immediately, the webview hasn't loaded yet and can't redirect | ||
// if we trigger too slow, there's a visible flash as the homepage appears first | ||
await new Promise(r => setTimeout(r, 100)); |
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.
Signed-off-by: Tim deBoer <[email protected]>
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.
Approved, but let's open an issue for refactoring / fixing the bug with await new Promise(r => setTimeout(r, 100));
* feat: open webview from image action Removes the quick pick command, and instead triggers opening the webview, switching to the build page, and preselecting the image. Signed-off-by: Tim deBoer <[email protected]> * chore: add tests Adding tests for the command redirecting to the build page, and for the build page allowing an initial selection. To test a select control the values must be strings, so I had to rework the Build page a bit to use string values. Signed-off-by: Tim deBoer <[email protected]> * chore: respond to review comments Signed-off-by: Tim deBoer <[email protected]> --------- Signed-off-by: Tim deBoer <[email protected]> Signed-off-by: Vladimir Lazar <[email protected]>
What does this PR do?
Removes the quick pick command, and instead triggers opening the webview, switching to
the build page, and preselecting the image.
Screenshot / video of UI
N/A
What issues does this PR fix or reference?
How to test this PR?
Tests still to-do.