Repository navigation
gui: Added conn status icons to Remote Devices (fixes #8244) - #8553
Conversation
|
I've done a very brief local test. Just a few comments - please feel free to address them if needed.
I think all of them should be translatable actually. "Relay" is no question, as "relaying" is already translated in the GUI. When it comes to LAN, WAN, etc., the common perception may be so, but in reality they also use very different names, especially in languages that don't use the Latin alphabet, e.g. LAN is "局域网" in Chinese. |
|
1.) That's worth a try, surely would save an otherwise unnecessary import. Looking into this. 2.) Long names is at least not a problem, it works the same as it did before; the name just get clipped off before the icon (endofthename...). A smaller GUI on f.e. a mobile device will "hide" the connection status, which was mostly intentional. But this is mostly just a choice, it can obviously be placed so that it will be showing in smaller screens too. Not entirely sure if it's important enough to show on smaller screens. 3.) I actually haven't had this happen myself, so that's quite interesting and worth a second look at. Putting it in the folder info would also be a possibility, but I have a feeling that it will be overlooked there. And the translations is a valid point. |
|
Thank you for a very quick answer 🙂.
I'd like to see it on mobile personally, but the fact is that there's already very little space there, so it may not be the best idea if doing so would truncate device name completely. However, does this mean that the whole "connection type" information is unavailable on mobile then? If yes, then I think this could yet be another argument for simply moving it to the device info.
This is what it looks for me. The browser is Chromium. |
|
Is there a particular reason not add a new row? The type of connection and its rating is IMHO a rather crucial information and arguably easier to grasp for most users than looking at the IP address and its mouseover. This would improve the situation on smaller screens as we don't have to cram all the information and the doc link into a mouseover. |
|
Mostly because for many who already know a thing or two about it, it would be kind of duplicate with the information available under Address - either directly since it's clear from the IP or via the tooltip. It would be quite overkill, at least to me, to add an entire row to basically explain what that icon is doing there. And the ones who don't know about it - have little use for that row anyways. At least I don't see the average user start a debugging-session to figure out why they are using QUIC instead of TCP. As I understood it, it's mostly to quickly view the status without having to dive into the device details. But if the consensus is that an additional row adds enough value, then I'm not against it either. P.s. I at least changed it so that it's visible on a mobile screen - doesn't seem too troublesome on my S21 FE. Does require a little more testing still. P.p.s. The Icon clipping I'm really not a fan of. I don't think it looks that well in that way. But it's possible |
|
To be honest, neither the address alone nor specific connection types by themselves mean anything to the average non-technical person. How about naming it "Connection Quality" instead, and then use simple and easily to understand words like "Excellent", "Good", "Average", and "Bad"? This would make it accessible to everyone. You could even combine both together, i.e.
Yeah, thank you for trying. I hand't tested this myself, so I didn't really know whether the icons would look acceptable modified that way. |
This is an acceptable option. However, I wouldn't say that for example "relay" is bad. Just the least favoured option in case there are alternatives available. We don't want users to panic either when they are connected to a relay :) |
|
Oh yes, you could tweak the terminology, of course 😉. Maybe just "Excellent", "Very good", "Good", and "Average"? Although, to be fair, I think "bad" kind of plays well with the single bar icon… |
|
I like the icon idea in general, very nice and also very useful to see it without expanding. On small screens, the device status is already reduced to an icon, so the second icon should still fit reasonably. Why not combine this with the address row in the details? AFAIR it doesn't show the connection type for connected devices currently? You can just append the text version (TCP LAN for example) in parentheses behind the current address. We don't need to repeat the icon there, just put a link to a suitable docs page in that row. I'm not a fan of the extensive popover. Better just explain the symbol meaning in the docs page linked from the details row. It's something each user needs to learn only once if interested, not every time the mouse hovers over this thing. |
|
Wouldn't it look cleaner to put the icon on the far right end? It's always the same width, while the device status (right aligned) can have different lengths, making the icon jump around. |
Potentially. The only 'downpart' is that Disconnected devices currently don't have a status-icon. Either that's acceptable or we could add the reception-0 icon as placeholder (which would be redundant) - if we take this approach at least. |
|
Isn't the address row already pretty crowded? e.g an IPv6 with a five digit port I would also support moving the icon to the far right. Maybe we should add an icon for disconnected devices for consistency. We already show a simple offline/online icon on small screens. Maybe we should reuse the offline one and add also keep the green and purple color tones. |
|
Could we drop the checkmark and use green bars instead? Using both is a bit redundant. Green bars 1-4 for an online device and the purple one for offline devices. |
|
I'm against having this icon in the header. If transfer speeds are not as expected, the user can get more information on (quality of) connection by expanding the device section |
|
There is certainly value in seeing it at a glance without drilling down. If "transfer speeds are not as expected", you will likely notice just in that one moment where you need to catch a train and find the sync not finished as expected with half an hour still to go. Seeing that a relay is (erroneously) involved right away, helps set the expectations right and gives a chance to act upon it. In the linked issue, there seemed to be a clear consensus to show it at top level and quick to grasp with a very simple icon. |
|
I disagree! The connection type usually does not change that often (or most times not at all) to justify an extra icon in the header. Other ideas |
|
Not sure about the others, but displaying the icon all the time would be useful for me to quickly diagnose whether all devices are connected in the way that they are supposed to be (and not, for example, use a relay when they all are located in the same network). Yes, you can unfold each of them and check the connection type manually, but this becomes tiresome very quickly with a larger number of devices. Showing the icon only for specific (i.e. worse) types of connection is a possibility, but then it would probably need to be a different icon than the proposed signal one… Showing it only during syncing would likely end up with bad user experience though, as the icon would appear and disappear constantly, e.g. when the transfer is bursty, which is common on slow/unstable connections, or simply when files are regularly updated every few seconds or so. |
|
Checking the connection type is the most basic troubleshooting step for slow transfer speeds. I stopped counting the number of times i had to explain this in the forum. "It's very easy to find! Just open up the device information, locate the address row and wait for the mouseover to appear." Oh, and of course I have to explain for the thousandth time what kind of connection is considered good/bad. |
|
Thanks a lot for this contribution @er-pa ! Good discussion here, I'd just like to drop two things here: Lets try to not bike-shed to the point of straining @er-pa's time too much, and focus on getting to a decision (with weight given to the creator of the solution). And try to keep things simple and non-magic (like dis/appearing icons based on opaque rules). |
|
Maybe just e.g. a snail icon for slow (= relay) connections? My suggestions are because users only ask for help / complain if a) something does not work or b) it is slow. Otherwise they don't care about TCP, QUIC, etc. and probably don't know. |
|
I don't see why we should only cover a single case if we can provide a rating for each connection type? What is the purpose of hiding this crucial information from the user? We already have show online/offline for small screens. This would only add more granularity. And for larger screens it's even simpler as we have enough space? |
|
I've tested the current state. Not sure if this is the final version or still work in progress, but here are my observations/comments. As previously, please feel free to address them if necessary.
It's not that there are "glitches", but as things are right now, the tooltip is placed inside the device title bar, which itself is an interactive element. This means that clicking the title bar while placing the mouse over the icon at the same time will both unfold device info and display the tooltip, which just doesn't feel right in terms of user experience, at least for me. |
I was still working on it, but thanks for your feedback either way ^^.
Yep, once it's all rounded up I'll clean that up.
No, it's not necessary. I'm just not a fan of using string-like attributes in that way, esp not while testing. But, I can clean this up when finalising it.
Well, is it the only way? Probably not, just one that I knew of. But there are a couple things to consider: 1.) We didn't prefer to include the entire bootstrap icon library, which is understandable for only 5 icons. If there are much better ways to accomplish this, do tell. I still have to test it on older devices and other browsers (Edit: Seems to work fine on a stock-browser down in a Lollipop environment).
Potentially not, I will probably remove them. |
|
If you want to avoid importing an extra svg you could use css to draw the bars. Then you can style them like you want |
Not necessarily "better" per se, but I've managed to make it work using the following code.
default theme dark and black themes I used the method from https://stackoverflow.com/questions/22252472/how-to-change-the-color-of-an-svg-element/53336754#53336754 to calculate the filter values. The advantage is that |
|
If the only caveat using that method is that the icon simply doesn't recolour when it's not supported, then it surely beats a possible edge-case where it becomes a black square - even though I haven't been able to get there - yet; someone probably will. Seems like a solid alternative. |
|
Apart from some minor fixes, everything looks fine for me. I actually like the icons a lot 🙂. Edit: The only other problem that I can think of, and which has been discussed previously, is that the average user still won't be able to understand the difference between all the different connection types, and why, for example, TCP LAN is better than QUIC, etc. without reading the docs. This may be something to address in a different commit though. |
|
Yes, I think so. This is enough to maybe trigger the thought process to investigate it, I'm happy enough with that. |
|
Any screenshots of the current state? |
* main: docker: Fix handling of PCAP variable (fixes syncthing#8567) cmd/stcrashreceiver: Update to more modern panicparse (syncthing#8566) cmd/strelaysrv: Add optional auth token (fixes syncthing#3987) (syncthing#8561) lib/fs: Skip xattrs test on EOPNOTSUPP (fixes syncthing#8564) (syncthing#8565) gui: Add connection status icons to Remote Devices (fixes syncthing#8244) (syncthing#8553)






Implementation proposal of the discussed enhancement in #8244
In short:
Depending on the connection type we add an icon before the device-status in the Remote Device panel. This should make it easier to notice if/when we use an inferior connection-type (f.e. Relay).
One can argue about what connection types deserve an 'own' icon, but also considering the amount of icons that are available in the same style from a default library (without needing to tweak them ourselves) I simply agreed with the latest comments from the issue, so from "worst" to "best":
1 - Relay
2 - QUIC
3 - TCP WAN
4 - TCP LAN
The icons used are default reception icons from the bootstrap library (1-4 respectively). This icon-library was added.
The tooltip has been made somewhat interactive to add a direct link to the relevant document-page and sub-part. To accomplish this I added a delay of 1000ms before the tooltip disappears, this should give some time to click on the '?'-icon. Other than linking to the docs, this tooltip gives a brief description in a style of "Connection type: [type]" where
"Connection type" is translatable, whereas the types currently aren't (apart from 'Relay', not sure whether it can be properly translated actually - I'm open to input). Reason being that the other connection types are, afaik, internationally known abbreviations.both parts are translatable.Testing
Testing it is quite simple. Add some remote devices, preferable with different connection types.
Screenshots
An example of how it now looks:

Documentation
I will adjust the documentation when the implementation is approved.
This can quite simply be a brief explanation of what these icons mean, what they don't mean and a visualisation of the four possible states (icons) with a short description of the meaning of each of them.