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

VNC in new window #425

Merged
merged 11 commits into from
Jul 9, 2020
Merged

VNC in new window #425

merged 11 commits into from
Jul 9, 2020

Conversation

yfrimanm
Copy link
Contributor

In order to add an option to open the VNC console in a new window, we’ll add a new button ‘Open Console in new window’ and allow that to take action from the Admin console as well as from the Developer console. we'll also show how the detached window looks like.

@openshift/team-ux-leads

@openshift/team-ux-review (Administrator perspective)
@openshift/team-devconsole-ux (Developer perspective)

Copy link
Contributor

@lizsurette lizsurette left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking great! I did add a link to an early design idea we had on exposing this as an option as well as "Expand to full screen". Just in case it's any sort of inspiration :)


In order to add an option to open the VNC console in a new window, we’ll add a new button ‘Open Console in new window’ to the existing ‘VNC console’ dropdown with the ‘Disconnect before switching’ checkbox option and ‘Send key’ button.

![oprn from the new button](img/Open-console-1c.png)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There were some early ideas around some text and iconography (long ago!!) for expanding this to a full window and opening in a new window/tab that I wanted to share incase it helps:
https://docs.google.com/document/d/1Fh2eb9TD0aq9JulVbLlss2ucdqYzx_uqTaThse_fcgE/edit#heading=h.3m45k77pubys

One thing I think this older design does is save some vertical space.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh wow, blast from the past. 😄

I was going to suggest the same, maybe placing this button to the left of the Send key button to save some vertical space (should Send key be a dropdown by the way?). An external link icon may also be good here since a new tab/window opens when clicked. That old design was inspired by the actions in the Logs and Terminal tabs you can see in a Pod Details page today.

Copy link
Contributor Author

@yfrimanm yfrimanm Jun 28, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @lizsurette and @andybraren.
The original design (as mentioned at the 'Note' in the google doc https://docs.google.com/document/d/1YFJDCWJj8NdodFhtXqq7KbhXz9EhHeBg9xyfybA0mVs/edit#heading=h.4kmd69x7yzsn) had all the buttons in one row to save some vertical space, but due to limitations of the buttons being part of the console component, we had to place the ‘Open Console in new window’ button in a separate row.
But now that I see it was already done in the past, maybe we can change it back. @glekner WDYT?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think that part of the old design doc was ever implemented, but agreed, I'd be interested to hear if the component itself could be updated with the new button. Is the VNC Console component used anywhere else in the OpenShift UI? Maybe this is the only place? 🤷‍♂️

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think that part of the old design doc was ever implemented, but agreed, I'd be interested to hear if the component itself could be updated with the new button. Is the VNC Console component used anywhere else in the OpenShift UI? Maybe this is the only place? 🤷‍♂️

@yaacov any idea?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for that old link @lizsurette I totally forgot about that :)
I did confirm with the OCP stakeholders today that we don't have this surfacing anywhere else so it would be great to move this over to a PF4 approach. @glekner WDYT?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its doable, but it should be a different PR.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 from me to move to PF4

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its doable, but it should be a different PR.

@glekner Yes, we discussed off-line that #5593 will use current component, and we will continue to make it closer to the design in follow-up PRs.

@yaacov
Copy link
Member

yaacov commented Jun 30, 2020

@matthewcarleton @yfrimanm @glekner hi,

We discussed some topics in Slack:

a - opening the console in a new tab instead of a new window.
b - adding hint about how to drag the new tab into a new window
c - adding hint about using the cli to open a new VNC window.

@yfrimanm can you see how you can update the design to match this discussed topics ?

@yaacov
Copy link
Member

yaacov commented Jun 30, 2020

@yfrimanm in the old design:

https://docs.google.com/document/d/1Fh2eb9TD0aq9JulVbLlss2ucdqYzx_uqTaThse_fcgE/edit#heading=h.3m45k77pubys

we have a help link "Remote connection settings" that explain how to open spice using the CLI, we can do the same here educating users how to install and use virtclt and virt-viewer to open the VNC console.

When users click the ‘Open Console’ button, they will get a new tab that represents another OS (no toolbar) with a dismissble inline info notification about the consoles tab features.
They will be able to toggle between the 2 tabs: their original OpenShift cluster and the other OS tab they have opened.

![new tab](img/Detached3-new-tab.png)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This image include a long info text, can you add the text as text here (and not just as an image) ?

Copy link
Contributor Author

@yfrimanm yfrimanm Jul 1, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yaacov here it is and also added to the MD file

Consoles tab
The Consoles tab allows the user to connect an in-browser or desktop-based Graphical and/or Serial console to the virtual machine.
You can change the console type using the dropdown selector. The Graphical VNC console is selected by default and will open in a separate tab of the console view when clicking the ‘Open console’ button link. You can drag the new tab into a new browser window.
The Expand action makes the console viewport fill the current window’s full width and height.

@@ -0,0 +1,47 @@
---
parent: Virtualization
version: 4.x
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this work is being implemented now. Can we confirm it isn't getting into 4.6?

Copy link
Contributor

@matthewcarleton matthewcarleton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just some small tweaks and then this should be GTG!


![open from the kebab menu](img/Open-console2.png)

## In the Developer console
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've reached out to @beaumorley @serenamarie125 about how we want to deal with the dev side of this. We may want to push it out to another release or put the design under the dev console designs.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok we are ok I've confirmed that this is already pulled into the dev perspective.
I did noticed though that the icon for a new window/tab didn't get added so we could file a bug for that.

Copy link
Contributor

@matthewcarleton matthewcarleton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

Copy link
Contributor

@lizsurette lizsurette left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Member

@beanh66 beanh66 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@beanh66 beanh66 merged commit 235b97f into openshift:master Jul 9, 2020
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.

None yet

7 participants