8000 Entire Desktop should support Drag and Drop Event and understand Desktop's active app and context · Issue #54 · Marak/buddypond · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Entire Desktop should support Drag and Drop Event and understand Desktop's active app and context #54

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

Open
Marak opened this issue Apr 4, 2022 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@Marak
Copy link
Owner
Marak commented Apr 4, 2022

A buddy should be able to drag a file anywhere onto the desktop window and be able to import that file into the desktop.

This drag and drop action should be context aware and know what the current active application is, what the current context is, and if that application supports the type of file being uploaded.

If there is no active app or context, the drag and drop should present a file preview window which shows metadata about the file and provides options to send the file to an application or perform other actions.

Examples:

Drag Drop Event - A buddy drags a png image file into the desktop app with no apps or windows open
Result - The file is opened in `App.Paint`
Drag Drop Event - A buddy drags an animated GIF file into the desktop app with no apps or windows open
Result - The file is opened in `App.GifStudio`
Drag Drop Event - A buddy drags an mp3 or wav sound file into the desktop app with no apps or windows open
Result - The file is opened in `App.SoundRecorder`
Drag Drop Event - A buddy drags an animated GIF file into the desktop app while chat window with another buddy is open and active. 
Results - Desktop is aware of context ( chatting with Buddy ) and the file is sent to the buddy via chat message. 
@Marak Marak added enhancement New feature or request good first issue Good for newcomers labels Apr 4, 2022
@Marak
Copy link
Owner Author
Marak commented Apr 4, 2022

This should be relatively easy to do.

To get current active window element:

console.log(desktop.ui.getActiveWindow())

Then that element should have data() attributes for app and context.

console.log(desktop.ui.getActiveWindow().data('app'))
console.log(desktop.ui.getActiveWindow().data('context'))

@Marak
Copy link
Owner Author
Marak commented Feb 2, 2025

This is now initially implemented live as v5.

Buddies now have the ability to drag and drop files into window context.

Keep issue open to track UX improvements until feature is completed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant
0