Repository navigation
feat(video-to-bootanim): add drag and drop support to video dropzone - #2
Merged
Mr-Hasan-Hamid merged 1 commit intoSep 26, 2026
Conversation
Adds native drag-and-drop file ingestion to the video-to-bootanimation dropzone with visual active state feedback. Co-authored-by: Md Hasan Hamid <86195509+Mr-Hasan-Hamid@users.noreply.github.com>
|
Someone is attempting to deploy a commit to the rainyxwear-6506's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
MIME validation and drag-leave handling need correction.
Review effort: Lite
Findings: 1
Open (2)
What changed in this PR
Adds drag-and-drop support for MP4/WebM video imports in the Video to Boot Animation workflow.
Changes:
- Extracts shared file-processing logic.
- Adds drop handling and active drag feedback.
- Connects dropped files to the existing importer.
| File | Description |
|---|---|
src/app/video-to-bootanimation/page.tsx |
Wires dropped files into video processing. |
src/app/video-to-bootanimation/components/VideoDropZone.tsx |
Implements drag/drop behavior, validation, and visual feedback. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| setIsDragging(false); | ||
|
|
||
| const droppedFile = e.dataTransfer.files?.[0]; | ||
| if (droppedFile && (droppedFile.type.includes("video") || droppedFile.name.match(/\.(mp4|webm)$/i))) { |
Comment on lines
+26
to
+30
| const handleDragLeave = (e: React.DragEvent<HTMLDivElement>) => { | ||
| e.preventDefault(); | ||
| e.stopPropagation(); | ||
| setIsDragging(false); | ||
| }; |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Summary of changes
/video-to-bootanimation)..mp4or.webmfile directly into the drop zone area, in addition to clicking to browse files.Co-authored with @Mr-Hasan-Hamid