-
Notifications
You must be signed in to change notification settings - Fork 669
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple link shares and UI adjustments for share dialog #5695
Conversation
Great work! Fine for me as it is. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a great PR, I like the new design of the sharing dialog a lot! 😊
There's some thoughts result of testing this for a bit now:
- Server sets the name of the file as default name of the public link.
- Links can be created in the web UI with no-name: some users might want just to create an old-school link share and now they're forced to set an explicit name.
- The "Create" button is enabled even when it does nothing, related with the previous points; maybe we can create a link with no explicit name and display the name from the "token" field on the response like the server does? (Also note that the server uses this value to list the public links when no name was set; the new dialog shows "Public link")
- When clicking a link on the list and "Password protect"/"Set expiration date" do update the link's properties but the name field still applies only for creating new links (update the textbox on click and change the button label to "Update" instead of "Create"?)
- Also, updating the link name by directly clicking its name on the list does not perform the PUT request to update the name on the server.
- Actions for each link are stacked in a drop menu (open, copy, send link), when there's enough room for them in the list view
- The detailed permissions are still shown on the "Users and Groups" tab (ref. ckamm@3d92c2c)
Again, this is an amazing change! 🎉
@SamuAlfageme Thanks for checking it out, here are detail comments.
I didn't do this because then the nice help text in the edit box typically isn't visible. We could have a label and pre-fill the edit box as suggested. I'll try that.
Why would someone go "I absolutely want a nameless link share!"? I doubt this is a real use-case and think having a straightforward default-name as you suggested above is sufficient.
Will fix.
I didn't realize it was still possible to create nameless links on the server. Then we must be consistent with the names displayed there. I didn't like the token-based name because it looked too technical, but believe consistency is more important.
The flow for creating/updating is hard to get right. If I did as you suggested and made the creation box do double duty as the name-edit box, one could not create new links unless there also was a way to deselect the current share: and it wouldn't be discoverable that deselecting was necessary to create more shares. I think the current way is comparatively clear. Adding a "Link properties" label might be helpful.
Yes, there currently is no way of editing the name of a share. I'll look at it.
I used the menu because in my opinion it's easier to discover what the actions do this way, because there's obvious text. The button should probably get a "..." label to make it clearer more actions are hiding there. I have no strong opinion here.
This patch was merged to 2.3 and hasn't yet been merged to master. It's just not included in this branch. |
@SamuAlfageme Updated with some fixes! |
@ckamm lookin' great 😎 I think it's good to be merged. Last comments:
+1 to try how a label that separates somehow explicitly a "create" section from an "update" section; It might be also useful if possible to have the ability to deselect any entry on the table by clicking outside/on empty space.
Agreed on the menu; however I think the most common use case for sharing links is to get copied, so a shortcut could also be nice. And last difference with the web UI would be that there they have consecutive numbering on the name (by appending As said, from an user's pov, this is good to go. |
Code looks ok to me 👍 However
|
There will probably be a ShareLinkLine too, due to owncloud#5655
Starting from oC 10.0.0 having several public link shares with different attributes for a path will be supported. This adds functionality to create, edit and delete these public link shares. The behavior is currently gated by server version, but should be adapted to use a capability as soon as one is introduced, see owncloud/core#27622. The UI reduces to a single-share version when talking to older servers. Testing scenarios: * Link sharing is disabled (by capability, not by theme) * Required passwords * Required expiry * Forbidden 'allow upload' for folders * New and old servers
* Allow creating nameless shares * Display token as name for nameless shares (both to be consistent with server) * Allow changing a share's name by editing it in the table * Minor adjustments
b3e1e96
to
3c1a2cd
Compare
@guruz Rebased on top of master with some minor adjustments due to conflicting changes. I'll merge it now. |
See #5655
For servers that support it:
For older servers: