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

Move sharing options into popover menu #607

Merged
merged 6 commits into from
Oct 3, 2016
Merged

Conversation

ChristophWurst
Copy link
Member

@ChristophWurst ChristophWurst commented Jul 27, 2016

bildschirmfoto von 2016-07-27 15-31-44

@jancborchardt your turn, fix the styling :-P

TODO:

  • 'Unshare' button does not work. The event is not propagated to the registered event handler, no clue why cc @nextcloud/javascript
  • with files, the 'can edit' checkbox can only be unchecked. If it's set again then some logic unsets it magically 😩

cc @nextcloud/designers

@mention-bot
Copy link

@ChristophWurst, thanks for your PR! By analyzing the annotation information on this pull request, we identified @PVince81, @blizzz and @schiessle to be potential reviewers

@schiessle
Copy link
Member

having this new drop-down menu for the additional share permissions looks great. But I would keep the "unshare" button out. This makes it way more easier to unshare multiple files in a row.

@rullzer
Copy link
Member

rullzer commented Jul 27, 2016

Awesome!
But I agree with @schiessle for the unshare button.

@rullzer
Copy link
Member

rullzer commented Jul 27, 2016

Btw why is can edit not in the dropdown?

@ChristophWurst
Copy link
Member Author

Btw why is can edit not in the dropdown?

Because it's used more frequently according to @jancborchardt

@MorrisJobke
Copy link
Member

Because it's used more frequently according to @jancborchardt

And it is a meta permission. Can edit includes all the other ones, right?

@rullzer
Copy link
Member

rullzer commented Jul 27, 2016

can edit does not cover can share...

@jancborchardt
Copy link
Member

»can edit« is outside of the dropdown because deciding if you share something with a person read-only or with full access is arguably an important decision. It should not be hidden away in a dropdown.

Agree that we can keep the »Unshare« button out of the dropdown for now. So it should look like this:

😎 Hans           [ ] can edit  •••  🗑

😃 Maria          [x] can edit  •••  🗑

@jancborchardt
Copy link
Member

jancborchardt commented Jul 27, 2016

What we should also do:

  • Sort people with most permissions up top (those with edit rights)
  • rename »can share« to »can reshare« so it’s more clear

@rullzer
Copy link
Member

rullzer commented Jul 28, 2016

I think the can reshare should also be out of the dropdown. It is an essential permission.

@rullzer
Copy link
Member

rullzer commented Aug 10, 2016

Ah it is because of some of the js magic. Let me fix it :)

@rullzer rullzer force-pushed the sharing-popover-menu branch 3 times, most recently from 483ede9 to cbf0a65 Compare August 10, 2016 09:01
@rullzer
Copy link
Member

rullzer commented Aug 10, 2016

Should work now ;)

Some things:

  • Can we move the ... and trash icon all the way to the right?
  • Can we make the menu appear on the dots?

@rullzer rullzer force-pushed the sharing-popover-menu branch from cbf0a65 to 098460f Compare August 19, 2016 11:09
@rullzer
Copy link
Member

rullzer commented Aug 19, 2016

sharemenu

It now looks like this. Which I think is very nice!
Only thing I really dislike here is the trashbin next to the dot menu... way to easy to click on it....

@jancborchardt suggestions?

@MorrisJobke
Copy link
Member

Only thing I really dislike here is the trashbin next to the dot menu... way to easy to click on it....

And the alignment is a bit off.

@rullzer
Copy link
Member

rullzer commented Aug 24, 2016

From #146

  • Rename edit to upload and edit

Never mind was for link sharing

@rullzer
Copy link
Member

rullzer commented Aug 24, 2016

@MorrisJobke yeah I leave all that to somebody with a bit more CSS fu ;)

@jancborchardt
Copy link
Member

Only thing I really dislike here is the trashbin next to the dot menu... way to easy to click on it....

@rullzer ;D exactly the reason why I would have moved it into the menu. ;) But a bit of spacing might take care of it as well.

@MorrisJobke
Copy link
Member

@ChristophWurst @rullzer What is the status of this? Could I somehow help here?

@rullzer
Copy link
Member

rullzer commented Aug 30, 2016

@MorrisJobke ah yes. The aligning is still a bit off and we probabaly need more spacing between the delete button.

Awesome if you could take care :)

@MorrisJobke MorrisJobke self-assigned this Aug 30, 2016
@rullzer rullzer mentioned this pull request Sep 6, 2016
@blizzz blizzz mentioned this pull request Sep 20, 2016
9 tasks
@ChristophWurst
Copy link
Member Author

@MorrisJobke @rullzer what's the status of this now? Anything left that needs to be done?

@MorrisJobke
Copy link
Member

@MorrisJobke @rullzer what's the status of this now? Anything left that needs to be done?

Rullzer asked if I could help with the layout. I haven't looked at it yet.

@ChristophWurst
Copy link
Member Author

Fixed the alignment and added some padding to the unshare icon:
bildschirmfoto am 2016-10-03 um 09 34 43

@ChristophWurst ChristophWurst added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Oct 3, 2016
@rullzer
Copy link
Member

rullzer commented Oct 3, 2016

@ChristophWurst thnx!

I'd say lets get this in! We can sort out details later. Longer we wait the more conflicts and stuff will pop up.

SO LGTM!

@codecov-io
Copy link

Current coverage is 30.59% (diff: 100%)

Merging #607 into master will not change coverage

@@             master       #607   diff @@
==========================================
  Files          1081       1081          
  Lines         60020      60020          
  Methods        6808       6808          
  Messages          0          0          
  Branches          0          0          
==========================================
  Hits          18362      18362          
  Misses        41658      41658          
  Partials          0          0          

Sunburst

Powered by Codecov. Last update 07a1be2...96af627

@LukasReschke
Copy link
Member

LGTM

@LukasReschke LukasReschke merged commit 08b0e5c into master Oct 3, 2016
@LukasReschke LukasReschke deleted the sharing-popover-menu branch October 3, 2016 12:18
@LukasReschke
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews design Design, UI, UX, etc. enhancement feature: sharing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants