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

Improve usability of dragging dropping files #590

Conversation

sergiobayona
Copy link
Contributor

[Issue #131] Enhance Drag and Drop UX with Window-Wide Drop Zone

This PR implements an improved drag and drop experience by:

  • Making the entire browser window act as a drop target
  • Adding clear visual feedback during drag operations
  • Handling edge cases like canceled drag operations

Implementation Details

The window now provides visual cues during drag interactions:

  • Displays a thick dotted border around the inner window perimeter
  • Dims the background color to indicate an active drag state
  • Gracefully reverts visual state if drag is canceled

Demo

Video demonstration of the new drag and drop behavior

Note: Visual styling (border style, background opacity) can be adjusted based on feedback.

@krschacht
Copy link
Contributor

This is awesome, thanks for doing this @sergiobayona! I tested locally and reviewed the code. It all looks good except I made some minor improvements to the styling in dark vs light mode.

It looks like our CI system is having some trouble so I'm working to resolve that and then I'll merge this in.

I'm curious, why did you start using HostedGPT and any notable plans with it?

@krschacht krschacht changed the title improve usability of dragging dropping files Improve usability of dragging dropping files Jan 12, 2025
@krschacht krschacht merged commit 89ca36e into AllYourBot:main Jan 12, 2025
6 checks passed
@sergiobayona
Copy link
Contributor Author

hey @krschacht glad to help. I think this project has a ton of potential. The chat interface is the first "point of contact" with AI for most people. Would love to share some ideas with you. I hang out at the Ruby AI Builders Discord. I see you're there as well. Will ping you and say hi.

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

Successfully merging this pull request may close these issues.

2 participants