-
Notifications
You must be signed in to change notification settings - Fork 159
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
Public link share consistent ui #2841
Conversation
87fa915
to
10b3162
Compare
10b3162
to
b9bcc54
Compare
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.
Code and feature looks good, some minor comments
apps/files/src/components/PublicLinksSidebar/EditPublicLink.vue
Outdated
Show resolved
Hide resolved
tests/acceptance/pageObjects/FilesPageElement/publicLinksDialog.js
Outdated
Show resolved
Hide resolved
Regarding the iPhone test, I guess it's using a reduced window size so some UI elements might be rendered differently, like for example the file actions. Not sure why it would affect the public link panel though. AFAIK the right sidebar appears full screen in responsive mode. |
Thanks @kulmann, looks a lot better already. Some feedback
|
@kulmann regarding the test failure: please note that Selenium is trying to actually click on visible elements. Basically when waiting for an element to be visible and clicking on it, the element needs to actually appear in the viewport. For clicking, Selenium is not using JS click events but actually simulating a mouse click on a specific screen location. With that knowledge, I suspect that in the iPhone screen size case the button for link creation doesn't fit on the screen so is not clickable by mouse. You could try doing a local test with the screen resolution "375x812". |
@PVince81 What's the way to go with this? Change implementation of the role dropdown for small screens to something other than a dropdown? Or force the dropdown to appear below the button and then scroll down before the |
@kulmann as far as I remember, Selenium automatically does a "scroll into view" so that the DOM element becomes visible. What can happen however is that some other DOM element is overlapping so clicking on the location would click on something else |
please note that we likely have similar tests for the collaborators view, also with that dropdown. so you could compare to see if there are differences |
The difference is, that there are only three roles in the collaborators role dropdown, whereas the public link role dropdown has four. Four exceed the viewport to the top, three doesn't, which is the only reason why this works for collaborators and does not work for public links. |
Found a solution for this: |
@pmaier1
Didn't know about the requirement. I'm pretty new to Phoenix so I don't have many insights on plans, yet. From a UX perspective I agree that showing the token to the user is useless. I removed it and set the link on the name of the link. Again, from a UX perspective this is what a user would expect anyway - link name being the actual link.
Done
How do you want to add these? Tooltip on a little question mark icon?
Agreed. I removed it.
This is self explanatory already. ;-) What I don't like, is that
Not a problem of the code but of the translation. Are the two english terms ok (Contributor and Collaborator)? |
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.
👍 for the additional changes
9743884
to
d0936c4
Compare
clickable instead.
with certain viewport sizes. Leads to z-index issues of the dropdown and is ugly.
d0936c4
to
6c7f0cb
Compare
Thanks for the response and changes you already made @kulmann 👌
Not sure about that point. Afaik tooltips should be avoided because they are not so nice for mobile users (I'm not the expert here). My point is that the private link concept is not well understood by a majority of the users which is why we should add some short explanation. Public links also have some criticality as they are accessible by anyone who has the link (or guesses it) unless there's a password set. Informing the user about this is a hard requirement. I the oC10 frontend the private link explanation is a tooltip, the public link explanation is just text in the panel.
I agree. "Name" in English then, I guess. Maybe we don't need the headlines, though. Would leave that decision up to you.
Yeah, agreed. The English terms came were my ideas, so I like them unless someone complains :) Let's see how we can fix this in the translation. Not a topic for here. |
Description
Refactors the links sidebar into being more similar to / consistent with the collaborators sidebar. In detail:
links
sidebar looks more similar tocollaborators
sidebar (no gray background anymore)add
button for both public links and collaborators to being left aligned.Related Issue
Motivation and Context
Consistency of UI/UX of sharing sidebar panels.
How Has This Been Tested?
Screenshots (if appropriate):
Visual impression of the sidebar panel
Visual impression of the public link form
Dropdown for role selection active
X for removing the expiration date of a public link
Types of changes
Checklist: