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 709984 - show connections without active channels
show connections without active channels
Status: RESOLVED FIXED
Product: polari
Classification: Applications
Component: general
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: Polari maintainers
Polari maintainers
Depends on: 761057
Blocks:
 
 
Reported: 2013-10-12 12:04 UTC by Jonh Wendell
Modified: 2016-01-29 15:36 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
polari-room: Move room_compare() into JS (2.89 KB, patch)
2016-01-28 23:19 UTC, Florian Müllner
committed Details | Review
roomList: Include accounts with no rooms (7.42 KB, patch)
2016-01-28 23:19 UTC, Florian Müllner
committed Details | Review
roomList: Sort accounts with no rooms last (1.46 KB, patch)
2016-01-28 23:19 UTC, Florian Müllner
committed Details | Review
Visible placeholder (8.82 KB, image/png)
2016-01-29 13:13 UTC, Florian Müllner
  Details

Description Jonh Wendell 2013-10-12 12:04:02 UTC
currently, if you are connected to a network but not active on any channel, the left panel doesn't show anything.

perhaps we should show it, just like xchat does.
Comment 1 Allan Day 2013-10-16 13:30:12 UTC
The real issue here is that, if you add a network, you will generally then want to populate it with channels.

There are a few ways to do this:

 * Add a way to specify multiple channels into the add network dialog.
 * Have an "add multiple channels" item under the network in the sidebar when it is empty.

I think that the former is probably better.
Comment 2 Florian Müllner 2016-01-28 23:19:19 UTC
Created attachment 319978 [details] [review]
polari-room: Move room_compare() into JS

We will soon add placeholder rows without an associated room to the
roomList, so do the row sorting directly in JS instead of using
a PolariRoom method.
Comment 3 Florian Müllner 2016-01-28 23:19:31 UTC
Created attachment 319979 [details] [review]
roomList: Include accounts with no rooms

We want to remove the old connections dialog in favor of managing accounts
directly from the room list. As we still want users to be able to manage
accounts that don't have any joined rooms, we need to stop excluding them
from the room list.
Comment 4 Florian Müllner 2016-01-28 23:19:40 UTC
Created attachment 319980 [details] [review]
roomList: Sort accounts with no rooms last

We now include inactive accounts in the list so the user can
manage them, but they are less interesting than accounts with
open conversations - make the sort order reflect that.
Comment 5 Bastian Ilsø 2016-01-29 12:21:49 UTC
Review of attachment 319978 [details] [review]:

looks good to me.
Comment 6 Bastian Ilsø 2016-01-29 12:25:39 UTC
Review of attachment 319979 [details] [review]:

looks good to me. I have some comments/suggestions but nothing blocking.

::: src/roomList.js
@@ +446,3 @@
+
+        let placeholder = new Gtk.ListBoxRow({ selectable: false,
+                                               activatable: false });

we might want to consider making the placeholder visible simply stating "no rooms" in italic or so, what do you think?  in any case I think this is a good starting point and the suggestion could be a separate patch/bug.

@@ +489,3 @@
+
+    _updatePlaceholderVisibility: function(account) {
+        if (!account.enabled) {

I wonder if this check is necessary once we remove the Connections dialog and there's no way to "disable" accounts. but i guess that's something to do in a separate bug/patch.
Comment 7 Bastian Ilsø 2016-01-29 12:26:08 UTC
Review of attachment 319980 [details] [review]:

looks fine by me.
Comment 8 Florian Müllner 2016-01-29 13:13:26 UTC
Created attachment 320019 [details]
Visible placeholder

(In reply to Bastian Ilsø from comment #6)
> we might want to consider making the placeholder visible simply stating "no
> rooms" in italic or so, what do you think? 

Dunno, might be a bit much for something that's mostly uninteresting ...
Comment 9 Florian Müllner 2016-01-29 13:29:51 UTC
(In reply to Bastian Ilsø from comment #6)
> +    _updatePlaceholderVisibility: function(account) {
> +        if (!account.enabled) {
> 
> I wonder if this check is necessary once we remove the Connections dialog
> and there's no way to "disable" accounts.

Not very user friendly, but:
gdbus call --session --dest org.freedesktop.Telepathy.AccountManager
           --object-path /org/freedesktop/Telepathy/Account/idle/irc/fmuellner4 
           --method org.freedesktop.DBus.Properties.Set
                    'org.freedesktop.Telepathy.Account' 'Enabled' '<false>'

(or more friendly via empathy, kopete or (for now) the "Online Accounts" panel)
Comment 10 Florian Müllner 2016-01-29 15:36:25 UTC
Attachment 319978 [details] pushed as 5a2b488 - polari-room: Move room_compare() into JS
Attachment 319979 [details] pushed as 36ed1c9 - roomList: Include accounts with no rooms
Attachment 319980 [details] pushed as 8a28956 - roomList: Sort accounts with no rooms last