-
-
Notifications
You must be signed in to change notification settings - Fork 833
File drop UI fixes and improvements #5505
File drop UI fixes and improvements #5505
Conversation
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
@@ -42,6 +42,7 @@ const RoomContext = createContext<IState>({ | |||
canReply: false, | |||
useIRCLayout: false, | |||
matrixClientIsReady: false, | |||
dragCounter: 0, |
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.
This is probably not necessary here? But there is draggingFile: false
, is that intentional?
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.
I'm slightly worried that counting enters/leaves will cause problems and desync (there's a ton of ways to leave a browser window without triggering a dragleave event, making you always +1)
Can we get away with a simple isDragging
instead?
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.
This method is the only solution I've found... I don't think I quite understand what you mean by isDragging
here. There seems to be a isDragging
method in react-dnd
but I don't think this can be used here. What am I missing?
@SimonBrandner apologies for the laggy review on this— trying to resource some design time to improve the colours and visual treatment of this interaction but overall looking great! |
Hi @SimonBrandner I took a quick look at this and have a proposal. I think I understood the video properly, but as always, please let me know if I misunderstood or in practice this won't work because of reasons I've not considered. In some quick testing, I couldn't quite work out the logic for how the existing backgrounds appear, and I don't want to accidentally introduce new logic. My proposal is something like this:
** = Actually, I'm not sure if these are actually required. Adding feedback might be hard to do in the existing logic, and the subsequent tick might look ok but its confusing because currently a dialog appears to confirm uploading, the tick might suggest it's done when it's not. So my proposal is just to change the first two and give the user this view:
The upload icon should exist already but let me know if not/you can't get it from the figma/if you have any questions. |
Hi @niquewoodhouse, I think the check would be a bit weird given the current UI. I'd stick with the simple design at least for now. I'll look into implementing what you have suggested! |
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
@niquewoodhouse, done! |
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This seemed to have caused a little lag and it was unnecessary Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
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.
overall looks fine, just a couple clarifying questions. Thanks!
@@ -42,6 +42,7 @@ const RoomContext = createContext<IState>({ | |||
canReply: false, | |||
useIRCLayout: false, | |||
matrixClientIsReady: false, | |||
dragCounter: 0, |
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.
I'm slightly worried that counting enters/leaves will cause problems and desync (there's a ton of ways to leave a browser window without triggering a dragleave event, making you always +1)
Can we get away with a simple isDragging
instead?
Co-authored-by: Travis Ralston <travpc@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
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.
thanks!
This PR fixes the misplaced UI and fixes #3541 along with improving the UI a bit with a background for better readability. It follows the slight adjustments suggested in this design.
Note: The GIFs are a bit laggy. Use the live preview for a better experience