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

Enable Sidebar Drag and Drop Upload along with Multi-level Support #3308

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

sam-shubham
Copy link

[#3086] Enable Sidebar Drag and Drop with Multi-level Uploads

Enhanced the Sketch Files sidebar to support drag-and-drop file uploads, improving accessibility and workflow.

Details:
• Introduced a wrapper component to handle drag-and-drop functionality.
• Enabled multi-level uploads, allowing files to be uploaded into nested directories.
• Updated initSidebarUpload to dynamically initialize uploads for the active folder or root directory.
• Integrated drag-and-drop by wrapping <ConnectedFileNode> with a SidebarFileDragDropUploadWrapper for seamless uploads.

Improvements:
• Simplified the file upload process by removing the need for [+] > [Upload File].
• Enhanced user feedback with dynamic drag-over messages.

This update improves user workflow and sets the foundation for future features like cross-sketch file duplication.

Fixes #3086

Changes:
• Added the SidebarFileDragDropUploadWrapper component for drag-and-drop functionality.
• Updated initSidebarUpload to handle parent directory setup for multi-level uploads.
• Enhanced Redux state management to store the parentId for initiated sidebar uploads.
• Integrated dropzone-related event handling in uploader.js.

Working

I have verified that this pull request:

  • has no linting errors (npm run lint)
  • has no test errors (npm run test)
  • is from a uniquely-named feature branch and is up to date with the develop branch.
  • is descriptively named and links to an issue number, i.e. Fixes #123

[processing#3086] Enable Sidebar Drag and Drop with Multi-level Uploads

Enhanced the Sketch Files sidebar to support drag-and-drop file uploads, improving accessibility and workflow.

Details:
	•	Introduced a wrapper component to handle drag-and-drop functionality.
	•	Enabled multi-level uploads, allowing files to be uploaded into nested directories.
	•	Updated initSidebarUpload to dynamically initialize uploads for the active folder or root directory.
	•	Integrated drag-and-drop with <ConnectedFileNode> for seamless uploads.

Improvements:
	•	Simplified file upload process by removing the need for [+] > [Upload File].
	•	Enhanced user feedback with dynamic drag-over messages.

This update improves user workflow and sets the foundation for future features like cross-sketch file duplication.
Copy link

welcome bot commented Dec 24, 2024

🎉 Thanks for opening this pull request! Please check out our contributing guidelines if you haven't already.

@sam-shubham sam-shubham changed the title Here’s the revised commit message: Enable Sidebar Drag and Drop Upload along with Multi-level Support Dec 24, 2024
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.

Sketch folder side bar drag and drop
1 participant