Skip to content
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

Automatically open and copy the menu on public link share activation #11537

Closed
wants to merge 1 commit into from

Conversation

skjnldsv
Copy link
Member

@skjnldsv skjnldsv commented Oct 2, 2018

@nextcloud/designers
I really dislike what I have done right here, feels terrible!
Is there no way of waiting for a dom element to appear?

@jancborchardt Or we can find another way to fix this issue

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
@skjnldsv skjnldsv added design Design, UI, UX, etc. 2. developing Work in progress feature: sharing labels Oct 2, 2018
@skjnldsv skjnldsv added this to the Nextcloud 15 milestone Oct 2, 2018
@skjnldsv skjnldsv self-assigned this Oct 2, 2018
@skjnldsv
Copy link
Member Author

skjnldsv commented Oct 2, 2018

capture d ecran_2018-10-02_11-07-54
We need to find a way to nicely display the checkbox though 🤔

@jancborchardt
Copy link
Member

@skjnldsv definitely looks better than currently! :) 👍

(As discussed, let’s try with "Copy" for text next to the copy icon.)

@skjnldsv skjnldsv removed their assignment Oct 2, 2018
@skjnldsv skjnldsv removed their assignment Oct 3, 2018
@skjnldsv
Copy link
Member Author

skjnldsv commented Oct 3, 2018

@jancborchardt I have no time for this one ^^

@jancborchardt
Copy link
Member

@skjnldsv I’ll try and look into it. :)

@schiessle
Copy link
Member

schiessle commented Oct 18, 2018

@skjnldsv are you aware of #11169 and #11844 I have the feeling that we duplicate work here and changing the same stuff at the same time in two different pull request.

Maybe you want to join me on my PR and while making multiple links possible improve the UX. Your JS experience would be much appreciated. You can already find some suggestions in the issue linked here.

@jancborchardt
Copy link
Member

@schiessle please see my comment at #11169 (comment) – these two issues are actually separate, and the "multiple link shares" addition should not change the entire flow of how links work. There is a spec we designed which defines it, and if we throw around stuff midway, that’s recipe for confusion and breakage.

@schiessle
Copy link
Member

@jancborchardt but we touch and change exactly the same code which creates a hell of merge conflicts. Let's implement the multiple share links and while touching the code anyway make it work smooth.

@jancborchardt
Copy link
Member

Let's implement the multiple share links and while touching the code anyway make it work smooth.

@schiessle yes, but as we defined in design discussions with multiple people. 🙂

Also, this is a bugfix we clearly need to backport since we had so many complaints already. And multiple link sharing is a feature. So we need to keep it separate.

@mmuman
Copy link

mmuman commented Oct 18, 2018

Thanks for working on this, last upgrade made me wonder what was happening.

I'd just point a few things though:

  • there is a natural way to show links (A HREF),
  • there is more than one way to use them, not only clipboard (drag-n-drop, setting a bookmark…),
  • not everyone likes others tampering with their clipboard,
  • the input field (rather having the link as selectable text on the page, a text link would do alike) had the nice side-effect of being able to select the text and paste it with middle button on GNU/Linux without having to actually touch the clipboard (although IIRC the code which selected the whole content made it hard to actually get the whole string in the kill-ring).

@newhinton
Copy link
Contributor

@skjnldsv @jancborchardt What if we dump the checkbox?
We could use the shareicon as an indicator, it is grey when it isnt shared, and we could color it in the main color if it is shared. Also the text next to it would change from "share link" to "You shared this", and display the groups/users/urls below.

@jancborchardt
Copy link
Member

What if we dump the checkbox? We could use the shareicon as an indicator, it is grey when it isnt shared, and we could color it in the main color if it is shared.

I’m not super excited about this – checkboxes are a very clear indicator of state. Having our own standard for color & text needs people to read text and be able to view color. We just need to integrate the checkbox nicely, like move it slightly over the icon maybe.

@mcarpenterjr
Copy link

Have you guys considered just having the text be a link to open the share menu for the item? I have about 5 users that complain constantly about how that UI is very misleading like they want to click the text or the icon to get to the menu. but instead they have to home in on the Kabob which is fine for when you want to do more than just share.

@jancborchardt
Copy link
Member

The new spec is at #11844 (comment)

The only issue is that this will then only land for Nextcloud 15 and not be backportable. Which could be fine because the development cycle is almost over already. cc @skjnldsv @jospoortvliet

@jancborchardt
Copy link
Member

@mcarpenterjr I added a point in my comment of the spec:

Do we want to automatically open the 🞄🞄🞄 menu here too? (Maybe at least for the first link so it kind of shows people the options?)

This would maybe take care of that?


Btw @skjnldsv feel free to close this when it’s rolled into #11844

@mcarpenterjr
Copy link

@jancborchardt Thanks man, looks great.

@MorrisJobke MorrisJobke deleted the public-share-link-menu-copy branch November 2, 2018 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants