Skip to content
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

sandbox form prototype #2317

Merged

Conversation

dgolovin
Copy link
Collaborator

  • POC to provision sandbox
  • Prototype of Sandbox integration in Add Cluster editor

@codecov
Copy link

codecov bot commented Dec 18, 2021

Codecov Report

Merging #2317 (206574d) into master (f92db88) will decrease coverage by 3.75%.
The diff coverage is 17.24%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2317      +/-   ##
==========================================
- Coverage   69.84%   66.08%   -3.76%     
==========================================
  Files          51       46       -5     
  Lines        3412     3288     -124     
  Branches      629      611      -18     
==========================================
- Hits         2383     2173     -210     
- Misses       1029     1115      +86     
Impacted Files Coverage Δ
src/odo/command.ts 78.23% <ø> (ø)
src/webview/cluster/clusterViewLoader.ts 9.66% <4.54%> (-3.02%) ⬇️
src/openshift/sandbox.ts 57.14% <57.14%> (ø)
src/vscommand.ts 33.33% <0.00%> (-56.87%) ⬇️
src/telemetry.ts 41.66% <0.00%> (-50.00%) ⬇️
src/watch.ts 84.00% <0.00%> (-16.00%) ⬇️
src/debug.ts 80.00% <0.00%> (-13.34%) ⬇️
src/util/credentialManager.ts 70.58% <0.00%> (-11.77%) ⬇️
src/cli.ts 80.00% <0.00%> (-10.00%) ⬇️
src/openshift/cluster.ts 76.00% <0.00%> (-7.00%) ⬇️
... and 9 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f92db88...206574d. Read the comment docs.

@mohitsuman
Copy link
Collaborator

@dgolovin I have fixed the UI for the workflow in the latest 2 commits. The elements to select phone number is through a drop-down now.

@mohitsuman
Copy link
Collaborator

We might need to test the phone verification properly again after the changes. And there is one issue in the workflow, if the user during Login cancels the VSCode pop up (coming from vscode-redhat-authentication) then the spinner is stuck throughout. We need to close the editor and start again.

@mohitsuman
Copy link
Collaborator

This is how the first page of the workflow will look. All are working links.

Screenshot 2022-01-24 at 12 30 26 AM

@mohitsuman
Copy link
Collaborator

mohitsuman commented Jan 23, 2022

For the user profile, the information will refer to the currently logged-in user session.

  • shows when hovered over the profile icon

Screenshot 2022-01-24 at 1 53 50 AM

@mohitsuman mohitsuman changed the title i2236 sandbox form prototype sandbox form prototype Jan 25, 2022
dgolovin and others added 18 commits January 26, 2022 20:31
This PR related to  redhat-developer#2236

Signed-off-by: Denis Golovin dgolovin@redhat.com
Steps to run:
* Build webview react app using `npm run dev:compile:cluster-view`
* Run `Launch Cluster Editor in Chrome` from `Debug: Select and
  Start Debugging` palette item

Those steps above will include stub for `acquireVsCodeApi()` function
(see devstub.js file for implementation) that drives workflow for
Sandbox page.

This is simple implementation to allow work on UI in parallel with
backend.

This PR related to redhat-developer#2236.

Signed-off-by: Denis Golovin dgolovin@redhat.com
This PR fixes #????.

Signed-off-by: Denis Golovin dgolovin@redhat.com
Signed-off-by: Denis Golovin dgolovin@redhat.com
Signed-off-by: Denis Golovin dgolovin@redhat.com
Signed-off-by: Denis Golovin dgolovin@redhat.com
Signed-off-by: Denis Golovin dgolovin@redhat.com
Tested with mock serve implemented with nodejs express
module. There are still usecases to adress:
1. Connection timieouts
2. Expiration of auth token in the middle of workflow
3. And, of course, proxy support

Signed-off-by: Denis Golovin dgolovin@redhat.com
Signed-off-by: Denis Golovin dgolovin@redhat.com
Signed-off-by: Denis Golovin dgolovin@redhat.com
Signed-off-by: Denis Golovin dgolovin@redhat.com
@dgolovin dgolovin merged commit 3b41281 into redhat-developer:master Jan 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants