Skip to content

adding share owner information to the file list - #7012

Merged
PVince81 merged 8 commits into
masterfrom
display-share-owner-master
Mar 5, 2014
Merged

PVince81 merged 8 commits into
masterfrom
display-share-owner-master

Conversation

@DeepDiver1975

Copy link
Copy Markdown
Contributor

@jancborchardt pixel-push support requested 😉 THX

@ghost

ghost commented Jan 30, 2014

Copy link
Copy Markdown

@karlitschek

Copy link
Copy Markdown
Contributor

Awesome. 👍 @PVince81 @schiesbn

@jancborchardt

Copy link
Copy Markdown
Contributor

@DeepDiver1975 the »Shared by « does not need to introduce a new element. Instead we should just put it in the »Share« action (replace the text) and put a .permanent class on it to have it show all the time.

@karlitschek can we please only use thumbs up for when a pull request was tested and alright? Otherwise it gets very confusing for our review process which we all agreed on.

@jancborchardt

Copy link
Copy Markdown
Contributor

@DeepDiver1975 that is, it probably needs to be added somewhere in the fileactions.js instead of the PHP.

@karlitschek

Copy link
Copy Markdown
Contributor

@jancborchardt Who said that I didn't test it? ;-)

@jancborchardt

Copy link
Copy Markdown
Contributor

@karlitschek I just looked at it and it doesn’t look like something I would thumbs up yet because of overlay etc. Hence Tom mentioned it needs some design. ;)

@DeepDiver1975

Copy link
Copy Markdown
Contributor Author

@DeepDiver1975 the »Shared by « does not need to introduce a new element. Instead we should just put it in the »Share« action (replace the text) and put a .permanent class on it to have it show all the time.

as discussed - I'll try to move it to the share button location ...

@karlitschek

Copy link
Copy Markdown
Contributor

@jancborchardt True. But I saw that you are mentioned to look into the design. Beside that it is clear that this is only a first step. We have to work more and the share overview side for ownCloud 7 anyways.

@jancborchardt

Copy link
Copy Markdown
Contributor

@karlitschek yes, I know you use the »thumbs up« to mean »I agree with this change«. :) But since we agreed to use it for our two-thumbs-up review process, that makes it seem like you tested and reviewed the change and deemed it to be mergable.

In essence, it would just be cool if the thumbs up symbol is reserved to mean »tested and reviewed« and would only be used if that is the case. If we wash down the meaning of it, not-really-reviewed stuff will be merged and the quality will suffer. ;)

(Sorry for the seemingly off-topic discussion.)

@DeepDiver1975 thanks!

@karlitschek

Copy link
Copy Markdown
Contributor

@jancborchardt There are perhaps two different understandings. One is "works perfectly and there is absolutely nothing to improve" and "Works and is a huge step into the right direction and the polishing can be done later in the ownCloud 7 release schedule."

@karlitschek

Copy link
Copy Markdown
Contributor

@jancborchardt Any another factor is that I know that this code will be touched anyways soon because of other upcoming changes in the files app. :-)

@DeepDiver1975

Copy link
Copy Markdown
Contributor Author

@karlitschek @jancborchardt please have a look - THX

@DeepDiver1975

Copy link
Copy Markdown
Contributor Author

FYI: this change shall be used for backporting to stable6 - this is decoupled from OC7 sharing/files app re-doing

@jancborchardt

Copy link
Copy Markdown
Contributor

@DeepDiver1975 nice! That’s what I’m talking about. :) Just some issues:

  • the »Shared« should be capitalized
  • the share dialog does not open for me anymore: ReferenceError: $dir is not defined @ /apps/files_sharing/js/share.js line 29

@DeepDiver1975

Copy link
Copy Markdown
Contributor Author

@jancborchardt fixed

@jancborchardt

Copy link
Copy Markdown
Contributor

👍 Looks all good from my side, also within shared folders. If you reshare something, the label changes to »Shared« and I think that’s ok for now.

@PVince81 @owncloud/designers second review please. :)

Comment thread apps/files_sharing/js/share.js Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use a more specific selector here to avoid going through the whole page ?
For example: $('#fileList [data-share-owner]')

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@PVince81 @kabum permission to hijack pull request granted - THX

@MorrisJobke

Copy link
Copy Markdown
Contributor

I'm fine with that. It's a bit weird that you have to click on the "Shared by abcdef" to share something and then if you share it this is replaced by a "Shared". But if there will be the avatars of the users it's easier to understand. 👍

@PVince81 Feel free to merge or to request your jQuery selector change. ;)

@DeepDiver1975

Copy link
Copy Markdown
Contributor Author

I'm fine with that. It's a bit weird that you have to click on the "Shared by abcdef" to share something and then if you share it this is replaced by a "Shared".

Hmm - I guess we did not think about the reshare scenario @jancborchardt

@jancborchardt

Copy link
Copy Markdown
Contributor

As mentioned above I tried the reshare and I’m ok with what happens for now. Because currently still everything is in the »Shared« folder – and if everything just says »Shared by« you can’t distinguish. If on reshare it changes, it’s easier to identify.

A follow-up should be to have the share logo plus the avatars of the people who are part of the share (max 3–5, additional ones would be visible in the dropdown). No text like »Shared«, and who is the specific »owner« is less important than showing everyone who has access to it.

What do you think about this: Maybe actually we should already do something similar now with the text. Say Thomas shared a file with Morris and me, the text next to the sharing icon (which should be the group icon) should say »Thomas, Morris«. Then when I reshare it with Raghu, it should say »Thomas, Morris, Raghu«. After the 3rd person we should just say »Thomas, Morris, Raghu, …« and all the additional people you would see in the share dialog.
That would be the same for when I share with Thomas and Morris. It should not say »Shared« but instead »Thomas, Morris« (with the »group« share icon). When I additionally share it via link, the group icon should change to the »world« icon.

How’s that sound?

@MorrisJobke

Copy link
Copy Markdown
Contributor

@jancborchardt Sounds great

@MorrisJobke

Copy link
Copy Markdown
Contributor

@PVince81 @DeepDiver1975 I hijacked this and fixed the jQuery selector.

@PVince81

PVince81 commented Feb 4, 2014

Copy link
Copy Markdown
Contributor

Just tried it out and there is a bug:

  1. Create user1, user2
  2. user1 shares with user2
  3. User2 sees "Shared by user1"
  4. User2 clicks on "Share", then enables "public share" and closes the dropdown
  5. User2 disables "public share"

Expected: "Shared by user1" should reappear
Actual: No more "Shared by" icon/label until the next page refresh

@PVince81

Copy link
Copy Markdown
Contributor

Quick-tested, still works after the rebase.

As discussed with @jancborchardt , the issue above will be addressed in a separate issue.

Let's wait for Jenkins before merging.

@PVince81

Copy link
Copy Markdown
Contributor

Raised #7334 in advance for the issue I mentionned above.

@PVince81

Copy link
Copy Markdown
Contributor

Hmm needs another rebase

@jancborchardt

Copy link
Copy Markdown
Contributor

@DeepDiver1975 can you rebase it?

Conflicts:
	apps/files_sharing/lib/cache.php
@scrutinizer-notifier

Copy link
Copy Markdown

A new inspection was created.

@ghost

ghost commented Feb 28, 2014

Copy link
Copy Markdown

@jancborchardt

Copy link
Copy Markdown
Contributor

Looks good from my side, @PVince81 can you give it a final review?

@PVince81

PVince81 commented Mar 5, 2014

Copy link
Copy Markdown
Contributor

Still works 👍

PVince81 pushed a commit that referenced this pull request Mar 5, 2014
adding share owner information to the file list
@PVince81
PVince81 merged commit 2cfd875 into master Mar 5, 2014
@PVince81
PVince81 deleted the display-share-owner-master branch March 5, 2014 11:43
@DeepDiver1975

Copy link
Copy Markdown
Contributor Author

thx

@jancborchardt

Copy link
Copy Markdown
Contributor

Great to have this in finally. :)

@lock lock Bot locked as resolved and limited conversation to collaborators Aug 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants