Skip to content

Improved remote share owner display - #9410

Merged
jancborchardt merged 1 commit into
masterfrom
shareownernamewidth
Jul 3, 2014
Merged

jancborchardt merged 1 commit into
masterfrom
shareownernamewidth

Conversation

@PVince81

@PVince81 PVince81 commented Jul 3, 2014

Copy link
Copy Markdown
Contributor

The parts of the remote share owner name is now split between user name,
domain name and root so they can be formatted / displayed differently.

The full name is visible in a tooltip.

It doesn't look that good at the moment.
I have split the parts in separate spans so they could be styled differently, for example using different shades of gray.

Please note that a user name can also be "me@[email protected]/owncloud" so we need to handle such cases as well.

See screenshot:
remote-share-owner

TODO:

  • discuss / improve how to display the names
  • add unit tests

Please have a look @owncloud/designers

@jancborchardt jancborchardt mentioned this pull request Jul 3, 2014
9 tasks done
@jancborchardt

Copy link
Copy Markdown
Contributor

We should only display the first part, before the domain. So from your example:

The full address is too long, and should only be shown inside the dropdown, and on hovering the name.

@PVince81

PVince81 commented Jul 3, 2014

Copy link
Copy Markdown
Contributor Author

Thanks.
Should we also tweak the tooltip ? Displaying "user@[email protected]/path/to/owncloud" doesn't wrap well and doesn't make much sense.

@PVince81

PVince81 commented Jul 3, 2014

Copy link
Copy Markdown
Contributor Author

For the tooltip, how about "Shared by [email protected] on server.com/path/to/owncloud" ?
The word wrapping would work better.
Also, do we want to repeat "Shared by" in the tooltip ?

@jancborchardt

Copy link
Copy Markdown
Contributor

The tooltip should only show the user address, and without any subfolders. So instead of Shared by [email protected]@server.com/path/to/owncloud:

(The tooltip is for expanding on the name only, so we shouldn’t repeat the »Shared by«.)

@PVince81

PVince81 commented Jul 3, 2014

Copy link
Copy Markdown
Contributor Author

Ok got it, thanks.

@jancborchardt jancborchardt added this to the ownCloud 7 CE milestone Jul 3, 2014
The parts of the remote share owner name is now split between user name,
domain name and root so they can be formatted / displayed differently.

The user name + domain name are displayed in the tooltip.
@PVince81

PVince81 commented Jul 3, 2014

Copy link
Copy Markdown
Contributor Author

All done.
The unit tests speak for themselves: you can see the expected conversions.

Please review.

@PVince81

PVince81 commented Jul 3, 2014

Copy link
Copy Markdown
Contributor Author

For the code review @icewind1991 @MorrisJobke

@icewind1991

Copy link
Copy Markdown
Contributor

Code looks good, tested 👍

@scrutinizer-notifier

Copy link
Copy Markdown

The inspection completed: No new issues

@ghost

ghost commented Jul 3, 2014

Copy link
Copy Markdown

@PVince81

PVince81 commented Jul 3, 2014

Copy link
Copy Markdown
Contributor Author

@jancborchardt please have another look. Thanks.

@jancborchardt

Copy link
Copy Markdown
Contributor

This is awesome! Thank you @PVince81 👍 and my eternal ❤️ ;)

jancborchardt added a commit that referenced this pull request Jul 3, 2014
Improved remote share owner display
@jancborchardt
jancborchardt merged commit fc41746 into master Jul 3, 2014
@jancborchardt
jancborchardt deleted the shareownernamewidth branch July 3, 2014 21:45
@karlitschek

Copy link
Copy Markdown
Contributor

@jancborchardt @PVince81 Please note that I created the astable7 branch just seconds before your merge. So this has to be backported if this should be in ownCloud 7.

@jancborchardt

Copy link
Copy Markdown
Contributor

@karlitschek hm … seconds before? It seems that stable7 is at ea756a1, 32 hours ago.

@karlitschek

Copy link
Copy Markdown
Contributor

grmpf. my mistake. Now it is up to date and includes this pull request

@jancborchardt

Copy link
Copy Markdown
Contributor

Cool, thanks!

@vgezer

vgezer commented Jul 21, 2014

Copy link
Copy Markdown
Contributor

Sorry for late comment, but what do we do with that string?

https://github.com/owncloud/core/pull/9410/files#diff-22009a6a304cf522a49026e925d2898eR194

It has been merged as soon as the new branch is created and unfortunately we do not have this string translated in any language?

@lock lock Bot locked as resolved and limited conversation to collaborators Aug 16, 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