After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 736481 - selection mode not suitable for Polari
selection mode not suitable for Polari
Status: RESOLVED FIXED
Product: polari
Classification: Applications
Component: general
3.13.x
Other Linux
: Normal normal
: ---
Assigned To: Polari maintainers
Polari maintainers
Depends on:
Blocks:
 
 
Reported: 2014-09-11 14:12 UTC by Jakub Steiner
Modified: 2015-02-23 19:27 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
roomList: Show a context popover on right-click (1.71 KB, patch)
2015-02-23 19:26 UTC, Florian Müllner
committed Details | Review
Drop selection mode (16.63 KB, patch)
2015-02-23 19:26 UTC, Florian Müllner
committed Details | Review
ui: Reduce room sidebar width (1.14 KB, patch)
2015-02-23 19:26 UTC, Florian Müllner
committed Details | Review

Description Jakub Steiner 2014-09-11 14:12:10 UTC
The selection mode pattern has been thought out as a solution for performing an action on a larger list of items. I think its use in Polari is quite inelegant:

* There is quite a bit of travel required to reach the actionbar
* There is only one action — 'leave'
* 'leave' doesn't really apply well on people (private chats). Especially painful when that's usually the kind of item you want to get rid of from the sidebar

I think Polari is better off using a context menu/popover instead, in a similar fashion we're doing it in Boxes where the selection mode was inappropriately used to perform actions on a non-running VM: https://raw.githubusercontent.com/gnome-design-team/gnome-mockups/master/boxes/wires/multi-window.png

While having a single item in the popover isn't great either, it at least allows to have different action depending on context (leave vs close conversation).
Comment 1 Jakub Steiner 2014-09-11 14:13:20 UTC
I also tend to leave/close a single or maximum of two rooms/chats at a time, further hinting towards not using selection mode here.
Comment 2 Florian Müllner 2014-09-11 14:39:27 UTC
I'm not wed to using the selection mode pattern - CC'ing Allan who proposed that pattern originally.

However I'm not quite convinced that only exposing leave/close in a context menu is a great idea - before adapting the selection-mode patter, I had a [-] button in the sidebar header to go with [+]. Maybe we can go back to that, or maybe have a close button in each row that shows on hover?
Comment 3 Florian Müllner 2014-09-11 14:41:04 UTC
(In reply to comment #0)
> * 'leave' doesn't really apply well on people (private chats)

Never left someone / been left by someone? Lucky man ...
Comment 4 Jakub Steiner 2015-01-23 15:30:55 UTC
The other option is to modify the channel-members popover to be a chat context headerbar menu (keeping the people counter instead of the hamburger for chatrooms).

For direct messages it would only have one item "end conversation", for chatrooms it would have the userlist with searchbox as is, but have the "close chatroom" entry at the bottom.
Comment 5 Allan Day 2015-01-23 16:33:25 UTC
There are two main questions here, in my mind:

 1. How often do people use multiple selections here?
 2. Is it ever right to enter selection mode with right click?

My sense is (1) not often, and (2) probably not. So I think I agree with the bug.
Comment 6 Florian Müllner 2015-01-23 17:01:34 UTC
(In reply to comment #5)
> So I think I agree with the bug.

Cool. Do you also agree with the proposed UI in comment #4?
Comment 7 Allan Day 2015-01-23 18:08:54 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > So I think I agree with the bug.
> 
> Cool. Do you also agree with the proposed UI in comment #4?

Users will expect to be able to interact with items in the sidebar list, so I think we need to make some changes there - the proposal in the original report seems like a good option for this.

The proposal in comment #4 might be a good idea, but I think it's probably an additional step.
Comment 8 Florian Müllner 2015-02-23 19:26:44 UTC
Created attachment 297706 [details] [review]
roomList: Show a context popover on right-click

Currently right-clicking a room will select the room and switch to
selection mode. However as it is very uncommon to leave more than
one room at once, so this behavior is far more cumbersome than
helpful. So instead, just open a context popover that allows to
directly leave the room in question.
Comment 9 Florian Müllner 2015-02-23 19:26:50 UTC
Created attachment 297707 [details] [review]
Drop selection mode

In hindsight, the selection mode pattern was not a good choice for
room management - it only exposes a single action and is hardly used
for more than one item at once. In addition to this, the action uses
quite unfortunate wording - "Leave husband" - when applied to private
conversations (which are usually more volatile than rooms, thus more
commonly closed).
As the last commit made the leave action available without switching
to selection mode, just drop the pattern entirely now.
Comment 10 Florian Müllner 2015-02-23 19:26:55 UTC
Created attachment 297708 [details] [review]
ui: Reduce room sidebar width

After removing selection-mode, we no longer have to account for either
selection-mode button or action bar, so we can cut down on the sidebar
width to leave more room to actual content.
Comment 11 Florian Müllner 2015-02-23 19:27:30 UTC
Attachment 297706 [details] pushed as 8917c47 - roomList: Show a context popover on right-click
Attachment 297707 [details] pushed as 5b1432e - Drop selection mode
Attachment 297708 [details] pushed as 79737e8 - ui: Reduce room sidebar width