Repository navigation
Conversation
|
Without yet looking at the code yet, it's certainly an advantage to avoid the protocol change. However it still means you may get configuration issues if two people want to share a folder with ID "photos" with you (but they're not the same photos). Perhaps this could be worked around by auto-suggesting a fairly unique folder ID (the first word of the label followed by a short hash of the label or something). It's certainly worth looking into as it's a simple improvement. We could also send the label as an optional attribute so the receiving side can see the label on connection establishment. |
|
yes, sharing under the same folder id different content is a problem. I have to read it three times, I hope I get it. As I understand you described it the way I did. (Typing the label invokes creating a folder-id of So creating two folders labeled with the same name should create a different folder-id (but this can be improved). |
|
Thanks for working on this old idea! |
|
It must be somewhat editable at creation time as we must be able to create a folder with the same ID as someone else, or there will be no sharing. :) |
|
@st-jenkins add to whitelist |
|
I sort of agree with generating random ID's and not making them editable. |
This is still a spike aka. enabler story. When this implementation is likely to be merged, there is some more things to do. I'm willing to do these things (translation entries, missing label/id display in device view etc.). |
|
@AudriusButkevicius What's your idea of the flow if using non-editable ID:s? The only way to add a folder is via the connection prompt, and not by someone telling you "add the folder AE7D3EF6AB22 that I just created"? |
|
Maybe a way of listing all folders on another device which are shared with you? Similar to the prompt, but it's a list you can choose to view rather than something that gets in your face. |
|
Sure, that UI could exist, but I'm just thinking shouldn't there be a way to set up a device to share a folder with someone without them establishing a connection? Say you have a box that's going to be shipped to somewhere and doesn't have connectivity now, or something like that. |
|
The folders in ClusterConfig gain a Label field, and we show both. Sharing a folder becomes a slightly more painful experience though, as you have to remember and share some cryptiic thing. |
|
So yeah, having some one-time-token for {any device}+{this folder} thing would be awesome, but given we first need a trusted device, I can't see how we could do this. Unless we have a way to put extra info in the TLS handshake. |
|
I still don't understand how I'm supposed to add a folder using the cryptic ID when someone tells me to, unless I can edit the ID field when adding the folder. The other option is via prompt after connection only, or am I misunderstanding something? |
|
Possibly relevant, possibly not: you can get a fair amount of entropy while still being memorable (and shoutable) by choosing three words and sticking them together: for example, my parents' router's default wifi password is something like "phone-baby-tea". Although you do hit internationalization fun... |
|
Under ideal conditions you'd just share folders by handing out a one off token, in which case you don't even get an opportunity to see the folder ID, given this does not exist, and there is no distinction between new folders and already existing folders being newly added, you can ignore me. I guess tue only meaningful comment I have about thia PR is changing the random N characters to a number between 1000 and 9999, as 4 digits is easier to remember. |
|
@AudriusButkevicius ok, I don't care about the random-part. If there are no other objections, I'll will work on completeness. |
|
I overall think this is a great addition, though its a protocol change if implemented with completeness, so needs to be part of v0.13 |
|
Currently it's "just" some javascript here. So I feel that we need to get clarified what the flow is here as I don't think we're all on the same page. Whether it's a protocol change or not isn't a big deal to me - we can add label as a field to the protocol, or we can stash it in the existing Options field. The bigger part that I don't think we're all agreed on is the user experience - what happens when you press what button and so on in terms of things being generated or typed in and editable or not |
|
open items
How can we get further? |
|
I think we're talking about two different things here.
You've started implementing number one. Most of the discussion is about number two. I know that number two solves the issue of conflicting folder IDs, but I'm not really sure if just number one adds enough value to be worth it on it's own? |
|
I agree with your decomposition of the discussion. It clarifies a lot. According to 1 ("Adding a friendlier label "on top" of the existing folder ID") I'm pretty sure the number one adds a tiny but important value to the UX. IMHO it decomposits label and identifier. Identifiers used as names are bad identifiers when there are a lot. And vice versa good identifiers are bad names, because hashes are not catchy. In case you add a share on the mobile, you choose naturally a very short identifier (less typing). This makes sense in the local context of that specific phone. Later on when you share this identifier maybe with a bigger instance, which is connected you will maybe have a lot shares with similiar or the same identifiers. Benefits of a separate label:
The current state is a lose-lose situation, between names and identifiers, human vs. machine. |
|
Agreed. So does it make sense then to do this as a half way solution at this point, i.e. something like:
A future extension could at some point further hide and automate the actual folder ID but then we already have both in place... Some care needs to be taken to make sure it's clear to the user what the distinction is between the two fields; i.e. that one actually matters for correct operation and the other does not. |
I think you'll struggle here... Purely from a UX point of view, my vote would be for going straight to autogenerated ID, ie only ever having one user-editable ID/name-like field. |
c9fbbdf to
890903f
Compare
|
Aside from everything else, I would not worry about possible future encryption integrations as that's really undefined at the moment. When that day comes we'll define the requirements on the ID, migrate existing IDs as appropriate, and so on. Lets just do something that's simple and convenient at the moment. |
|
I am happy to merge. |
|
regarding UI
I think this will clutter the UI, imagine next to every device there is the same with the deviceid. Try another perspective and open the folder dialog and hide helptexts (select one help line and set css
In terms of UX the label should be more dominant than the technical id. The order is intented to |
|
Yeah! |
|
Last words from @calmh? |
|
shipit! |
|
Awesome work @lkwg82, thanks for pushing this through! 😄 |
|
@st-review merge this please Add folder label in addition to ID (fixes #966) An auto generated ID is suggested on folder creation to reduce conflicts with folders created on other devices. |
|
What? Don't thank me, thank @lkwg82. Buggy bot... |
|
Once again; this merge bot is just awesome! (aside from the wrong thanks :D) |
|
Oh, and this needs an update to the specs in the docs repo as well... |
|
@calmh I missed your last comment, is this already addressed or is this still missing? |
|
Still missing. You're welcome to do it, otherwise I'll get to it before v0.13 release time. |
|
This also requires a refresh of the getting started guide. |

I read the thread at https://forum.syncthing.net/t/friendly-names-for-shared-folders/2477 and #966.
It seems no one actually tried it. I digged into the code and had an idea. I tried and it runs.
Disclaimer: I'm new to golang and angularjs. I lost the thread in both discussions, sry.
The idea I implemented is:
Some screenshots are attached.

autogenerating folder id based on label

(I expect some changes and discussion on this. Later on if and when we are going to merge this, I catch up 'contributing code'-tasks)