-
Notifications
You must be signed in to change notification settings - Fork 806
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
Make UserStatusSelector a dismissible page pushed onto the tray window #4760
Conversation
219e5d7
to
76e8287
Compare
Codecov Report
@@ Coverage Diff @@
## master #4760 +/- ##
==========================================
- Coverage 57.24% 57.19% -0.05%
==========================================
Files 138 138
Lines 17144 17144
==========================================
- Hits 9814 9806 -8
- Misses 7330 7338 +8
|
4da94f8
to
74cae56
Compare
the behavior with respect to having it close when we ant is much better |
How about making the pre-defined statuses list scrollable? |
74cae56
to
41dfa8e
Compare
Screen.Recording.2022-07-21.at.19.50.54.mov |
@claucambra thanks for the video |
This is much better than the separate window :) I am not sure about the scrollable status list, it doesn't seem obvious that there are more statuses available and it seems a but cramped. What do you think about replacing the main dialogue with the status dialogue instead of overlaying it? Would that be possible? It can then be in full height without any scrolling, and on clicking "Set status" or "Cancel" it could go back to the main dialogue. The position would depend on the OS, for eg. on Windows it would be bottom and right aligned with the main dialogue (because the tray menu icon is on the bottom right) and on Ubuntu it could be top and right aligned (assuming the tray menu icon is on the top right). What do you think? cc @jancborchardt |
I think an easier and maybe more intuitive way of doing this is by making the status selector a page that gets pushed on top of the existing dialog, forming a stack. Then this page can be removed by hitting a back or cancel button. This should have the same effect as your proposal without having ti create an entirely separate window -- thoughts? :) |
Yes, that's exactly what I had in mind when I proposed that :) |
41dfa8e
to
4adfc4c
Compare
How about this? Screen.Recording.2022-07-22.at.13.39.14.mov |
@mgallien @allexzander @camilasan the diffs have blown up but this is mainly just due to moving what used to be most of the contents of |
e19133f
to
eccd780
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.
Super nice! Looks great 🚀🚀🚀 :)
The design is much better! :) The animation is a bit out of place though, as normally left/right animations denote diving down into details and going back up. In this case, an animation from the bottom like an iOS/Android bottom sheet commonly used for dialogs would probably be more fitting. Does that work? |
eccd780
to
7df7e93
Compare
Sure, I added this animation: Screen.Recording.2022-07-22.at.14.57.45.mov |
@claucambra given the comment about having the set user status slide from bottom, I would go with a Drawer that are made for that (and inherit from Popup that was your original idea) |
7df7e93
to
3ec1fac
Compare
Agree, looking at it now it is pretty obvious the drawer does what we want more directly I have also rolled back the bigger changes of putting the tray window contents into its own file as I felt it was a bit out of scope |
3ec1fac
to
2eef125
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.
If the video in your comment is the current state: Nice! Really great job, looks slick :)
2eef125
to
d03a6ee
Compare
@claucambra Looks good. But, should not this dialog auto-close when the tray window gets closed by clicking outside it? For me (on Windows), the dialog remains open when I click that tray icon next time. I'd expect it to get closed if I changed my mind about setting the status. #Update I have also noticed one other bug. Selecting the status |
I think this will be caused by the model not being correctly requested to load when the drawer is opened. Will look into it, thanks
Argh. Okay, will test with different font sizes |
d03a6ee
to
9fcda24
Compare
@allexzander This is actually used by a very, ahem, interesting bug outside the changes of this PR. Will open a new PR with a fix for this soon |
Fix in #4822 |
b60342a
to
02909e4
Compare
@allexzander @mgallien The drawer now auto-closes when the tray window is closed, and I have adjusted the layout to remove unnecessary padding around certain elements and to reduce the spacing if there is insufficient space. This should really help |
/rebase |
Signed-off-by: Claudio Cambra <claudio.cambra@gmail.com>
02909e4
to
d86f25d
Compare
AppImage file: Nextcloud-PR-4760-d86f25d21536e6953d7eb8cf22a33ee3c3c1911f-x86_64.AppImage |
SonarCloud Quality Gate failed. |
Closes #3819
Screen.Recording.2022-07-22.at.13.39.14.mov