-
Notifications
You must be signed in to change notification settings - Fork 805
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
Replace share settings popup with a page on a StackView #5194
Conversation
Note that big diffs are mainly due to reparenting contents of share settings popup to new file |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #5194 +/- ##
==========================================
+ Coverage 57.63% 57.71% +0.07%
==========================================
Files 138 138
Lines 17490 17441 -49
==========================================
- Hits 10081 10066 -15
+ Misses 7409 7375 -34
|
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.
Nice! :) Could you adjust the buttons on the bottom to resemble the mockup more:
nextcloud/server#26691
- "Delete link" as part of settings list, text-only button
- "Add another link" same thing (forgot in the mockup)
- Bottom buttons should be "Cancel" on left and "Share & copy link" on right.
- Clicking on "Share & copy link" should also move back to the main overview
Sure, will do. However, my 2 cents: text-only buttons are a bad idea, especially in the way we use them in the client. They look like links, and links are supposed to take you places. Buttons perform actions. Deleting a share is an action and should therefore be a proper button Edit: corollary -- if we add a "cancel" button, should we be getting rid of the close button at top? Or should this close the whole drawer when it is displayed within the tray window? At the moment these two buttons would make each other redundant Edit 2: I am confused by the text "Share & copy link" -- what exactly is this supposed to mean? Shares will always already be created when accessing this new page. What about non-link shares (i.e. user shares)? Should this button not be included? Edit 3: Do we want to move the "Add another link" button to the bottom of the list? This ruins the risk of it being hidden by other share fields above it, forcing users to scroll when they might not be interested in editing a share at all. Seems like bad UX? Edit 4: Related to Edit 3, we already display a button on the main share list to copy the link for a link share, seems redundant to add another one to the main share details page maybe? |
I would have to agree with you here, regular text and underline looks like a link. Is it possible to have custom styling for text-only buttons (bold text, no underline, center aligned with the associated icon, for this particular button (Unshare) the color would be red)? Or we could use a button with a white background (or dark in dark mode) and red text and icon. Are any of those possible? The issue with the existing design it that it is very present and the placement makes it look like a secondary action. if we could move it to be the last item on the list and change the styling to be not as present, that would be an improvement.
I think we don't need a cancel button since the close button is there on the top right :)
Maybe better wording would be "Copy share link" for link shares. If it's not a link share it doesn't have to be included like you mentioned, there could just be a button that says "Save" or "Back" or something of that sort.
I would say so, yes. I would think it's unlikely that there are so many share links that the "Add another link" button is not visible, so in most cases it is okay. The action of adding another link is not very related to editing a share, so it makes sense to move it outside to the list of shares :)
For a share link copying it and sharing it is the most frequently used button, so I think duplication is okay. It would be nice to edit a link share and immediately copy the link without navigating to another page :) |
@nimishavijay what do you think of this? 🙂 Screen.Recording.2022-11-23.at.15.23.55.mov |
Looks great @claucambra! :) Just one clarification:
So actually this is one thing that the spec at nextcloud/server#26691 was specifically intended to fix. Right now we immediately create the share:
So this is why this new flow specifically has the "Share & copy link" button. Only on clicking that should the share actually be created. However we should probably do that at the same time in server and mobile, and looking at the issue I don’t think it’s done in either cc @PVince81 @tobiasKaminsky. |
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.
Looks nice! :)
5b435d7
to
7d202fc
Compare
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
…ded columnlayout in contentitem Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
7d202fc
to
2261615
Compare
AppImage file: nextcloud-PR-5194-2261615f6919564cec31990db9a5f2decee90856-x86_64.AppImage |
Kudos, SonarCloud Quality Gate passed! |
Our users reported missing features by this change, Previous features (for example 3.3.2) were
Current features are only
|
Right! @claucambra regarding @wkhj's comment, we should add the top 3 radio buttons as per mockup to stay feature complete :) |
@wkhj could I ask you to open a new issue about this, so we can schedule it? Thank you! :) |
Screen.Recording.2022-11-23.at.15.23.55.mov
Closes #4945