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

Share dialog: user list not really visible #3022

Closed
tobiasKaminsky opened this issue Sep 12, 2018 · 11 comments
Closed

Share dialog: user list not really visible #3022

tobiasKaminsky opened this issue Sep 12, 2018 · 11 comments

Comments

@tobiasKaminsky
Copy link
Member

  • open image
  • click on share/send
  • open share dialog

2018-09-12-074909

--> User list is too narrow

@AndyScherzinger and me discussed to split this view into "user" and "link" via tabs (same like on file detail). Also height should be adjusted to have ~80% of visible space.
Then every tab has more space and it will also work better on landscape mode on mobile.

@nextcloud-android-bot
Copy link
Collaborator

GitMate.io thinks possibly related issues are #1955 (Share permission dialog), #1548 (About dialog), #2589 (Share: filter existing user/group from suggestion), #1477 (Notifications list doesnt really refresh), and #577 (Share icon in the file list should be grey and have some information).

@AndyScherzinger
Copy link
Member

@tobiasKaminsky on the other hand, wouldn't it be even better to launch the file details fragment instead of this (legacy) dialog? Since the file detail screen allows for any share action/details to be specified (can edit/delete, expiration, etc). So I think it would be even better if we can launch the file details :)
While that might be quite an issue since the file details fragments depends on the filedisplayactivity. SO another discussion would be to get rid of the 2 pane layout and make file details its very own activity to be launched which could then also be used in this scenario (or any other sharing scenario).

@AndyScherzinger
Copy link
Member

cc @nextcloud/designers for feedback since my latest comment would imply quite a change in the UI/interaction flow...

@tobiasKaminsky
Copy link
Member Author

If you open an image, then click on send/share it is quite strange in my opinion to not have an dialog but a new fullscreen fragment shown.

Also there will be at least one place, where we need also such a sharing dialog
(as mentioned on IRC)

@AndyScherzinger
Copy link
Member

Well, then we need to move the sharing logic to a separate class and work with delegation, also define an interface for the dialog's share actions that need to be implemented by the dialog calling activity since the search callback due to the search provider implementation will hit the activity not the dialog (that is how the OS handles the provider). other than that we might even have to refactor parts of the file details sharing fragment since we don't want to duplicate the whole thing. We could of course, like done of the fragment simply not have a scrollview embedded but let the whole thing scroll that way the UIs would be the same and the scrolling issue would also be solved. Besides we should probably do it that way anyways since having two different types of sharing UIs with different functionality/scope would be weird too...

I'll think about how we can get this done :)

@tobiasKaminsky
Copy link
Member Author

This one would be ideal to move it to MVP concept, so that we have two different views (standalone dialog and tab in file detail) for exact the same functions, or?

If you agree, I would give it a try :-)

@AndyScherzinger
Copy link
Member

You can give it a try, but MVP will not be the savior here ;)
The problem are the searches and service replies since the will hit the activity, not the fragment, not the dialog...

Go for it! 👍

@tobiasKaminsky
Copy link
Member Author

@AndyScherzinger while the other ideas are great for longer term, can we have some kind of a quick fix?
Like trying to get the dialog to ~80% of the screen and thus the list is more visible? Can you maybe give it a try?

@AndyScherzinger
Copy link
Member

Sure. I can give it a try for a quick fix. Not sure if it can be achieved quickly with little effort but I'll have a look.

@AndyScherzinger AndyScherzinger self-assigned this Oct 12, 2018
@jancborchardt
Copy link
Member

Yeah, the dialog sizing is cool as a quick fix, if possible.

For the long-term, it still seems good to keep the dialog-like appearance and not switching to a full-screen view so you still have a sense of place. Is it possible to simply use the share list though as we use in the share tab of the sidebar?

(And we should not split sharing and link, the new design handles it way better too. :)

@tobiasKaminsky
Copy link
Member Author

Already fixed 🎉

2020-11-17-132056

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants