pro.webssh.net icon indicating copy to clipboard operation
pro.webssh.net copied to clipboard

Sessions and tabs improvements

Open jarrah31 opened this issue 2 years ago • 8 comments

Bug description

Clicking open sessions from the sessions group in the sidebar causes them to open in whichever tab you are working in, rather than jumping to the tab that session was opened from. The original tab ends up having an empty panel.

This also results in the tab staying open when you ctrl+d quit a session.

Steps to reproduce

  1. Start a new SSH session within a tab
  2. Open a new 2nd tab and start another session with a different server.
  3. With the 2nd tab open, select the session in the sidebar from the 1st tab
  4. The 1st session opens in the 2nd tab. I would expect it to swap to the 1st tab.
  5. The 1st tab has an empty panel
  6. Quitting the 1st session results in the 1st tab remaining open.

jarrah31 avatar May 17 '22 07:05 jarrah31

In my point of view it’s not a bug because I have « cloned » some other apps HUD concepts (like Rayon ssh app)

At this time I’m unable to focus a tab which contains the selected connection view controller.

The Rayon app do a « great » thing : when a connection is re-attached to another tab, the « zombie » tab isn’t blank but instead display a message : « Terminal was transfered to another window »

I understand that the current WebSSH workflow has a trouble. I need to improve it with your feedbacks.

isontheline avatar May 17 '22 08:05 isontheline

I understand now, that's fine with me if it's an expected behaviour.

Yes, improving the message in the tabs would help explain what it's doing. I like the « Terminal was transferred to another window » suggestion for the tab along with something simple for the tab title such as "transferred".

I've noticed that on a tab where the session was moved from (so is now empty), if I then click an open session to appear in that tab again and then quit the session, the main tab window doesn't revert back to the list of Connections.

Also, in the steps above, at step 3 when I select the 1st tab sessions, the tab title says WebSSH rather than the session name. If I then subsequently swap to other sessions, the correct name always appears.

jarrah31 avatar May 17 '22 08:05 jarrah31

Would it also be possible to close a session from the sidebar sessions list please? Perhaps the ability to right-click a session and close from the menu pop-up? I guess on an iPad you could swipe left the session to reveal a red trash icon?

jarrah31 avatar May 17 '22 08:05 jarrah31

I've noticed that on a tab where the session was moved from (so is now empty), if I then click an open session to appear in that tab again and then quit the session, the main tab window doesn't revert back to the list of Connections.

Also, in the steps above, at step 3 when I select the 1st tab sessions, the tab title says WebSSH rather than the session name. If I then subsequently swap to other sessions, the correct name always appears.

Thank you for your feedback! I will fix / improve these issues.

Would it also be possible to close a session from the sidebar sessions list please? Perhaps the ability to right-click a session and close from the menu pop-up? I guess on an iPad you could swipe left the session to reveal a red trash icon?

RC2 already contains this improvement : image

It will be shipped in a few hours 😅

isontheline avatar May 17 '22 19:05 isontheline

It works great, thank you!

jarrah31 avatar May 18 '22 07:05 jarrah31

@jarrah31 "Empty panels" behavior shouldn't occurs anymore since WebSSH 18.1 : https://testflight.apple.com/join/QSrBK59z

isontheline avatar May 24 '22 20:05 isontheline

I'm wrong sorry. I would mean "when exiting a connection no empty panel should occurs". Instead connection' list is displayed.

isontheline avatar May 24 '22 20:05 isontheline

Hi Arnaud, yes I can confirm that now works - thank you!

jarrah31 avatar May 24 '22 20:05 jarrah31

Hello @jarrah31 👋 I'm closing it as I've read it twice and didn't found no finished tasks.

Of course if I'm wrong please tell me

I wish you a nice day ☀️

isontheline avatar Mar 03 '24 20:03 isontheline