vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Icon request: move chat back into sidebar

Open bpasero opened this issue 7 months ago • 5 comments

A chat session can be inside a floating window and there is desire to have a 1-click gesture to move it back into the sidebar:

Image

I am using layout-sidebar-right codicon but wonder if a new icon could be made to make this gesture clearer. I imagine a combination of sidebar and an arrow to indicate its moving there?

bpasero avatar May 14 '25 08:05 bpasero

We will either require 2 icons - left & right - or a single icon that encapsulates any position

Image

mrleemurray avatar May 21 '25 09:05 mrleemurray

Yeah its tricky, in theory chat could also be in the panel 🤯

bpasero avatar May 21 '25 09:05 bpasero

Is it possible to programatically update the icon depending on the last "docked" location?

mrleemurray avatar May 21 '25 14:05 mrleemurray

Also, this is the behaviour on Visual Studio

Image

Perhaps this is also a suitable approach?

mrleemurray avatar May 21 '25 14:05 mrleemurray

Is it possible to programatically update the icon depending on the last "docked" location?

Yeah we know the location and could show a per-location icon.

Also, this is the behaviour on Visual Studio

I think VS has a generic support for any view to be either floating or docked, we only have this for editors and selected components:

Image

"Open Chat in Side Bar"

bpasero avatar May 21 '25 14:05 bpasero

I chatted with the icon designer & we agreed that using the existing panel / sidebar icons in a per-location method would be the best solution - they are known metaphors, which the user understands & also gives context to what location in the UI the chat will return to.

mrleemurray avatar May 27 '25 09:05 mrleemurray

There is a slight difference though: in the main window these icons toggle the view visibility, while here in the floating window, many things happen:

  • the floating chat window closes because the chat view moves back into the main window
  • the main window sidebar opens to show that chat view

Users might be a bit confused and might have expected a secondary sidebar to become visible in the floating window, hence I was thinking about a combination of the existing icon and something that makes it clear this is moving the view.

bpasero avatar May 27 '25 09:05 bpasero

Understood - we will explore some modifiers in conjunction with the per-location method

mrleemurray avatar May 27 '25 09:05 mrleemurray

@bpasero here are the proposed designs, inspired from Teams:

Image

mrleemurray avatar May 28 '25 14:05 mrleemurray

@mrleemurray really nice! My feeling is that 1, 3, 4 would suffice and carry enough information.

bpasero avatar May 28 '25 19:05 bpasero

Awesome - I will get those codicons ready for you

mrleemurray avatar May 29 '25 09:05 mrleemurray

Icons added as per #250111

mrleemurray avatar May 30 '25 13:05 mrleemurray

The icon is great.

Fixing via https://github.com/microsoft/vscode/pull/250263

bpasero avatar Jun 02 '25 07:06 bpasero