feat: add visual drag-and-drop zone for file upload and favicon fallback#351
Open
dhruv-jani-0808 wants to merge 11 commits into
Open
feat: add visual drag-and-drop zone for file upload and favicon fallback#351dhruv-jani-0808 wants to merge 11 commits into
dhruv-jani-0808 wants to merge 11 commits into
Conversation
Contributor
Author
|
Hi @imDarshanGK 👋 I've submitted this PR to address the issue. Here's a quick summary of what's implemented:
Would love a review when you get the chance! 🙏 |
Owner
|
@dhruv-jani-0808 update your branch with the latest main changes |
Contributor
Author
|
hey @imDarshanGK |
Owner
|
@dhruv-jani-0808 update your branch with the latest main changes |
Contributor
Author
|
@imDarshanGK i have updated my main branch with latest main changes |
Owner
|
@dhruv-jani-0808 update your branch with the latest main changes |
Contributor
Author
|
hey @imDarshanGK |
Owner
|
@dhruv-jani-0808 update the branch with the latest main changes |
Contributor
Author
|
hey @imDarshanGK updated! |
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.
Description
Adds a clean, interactive visual drag-and-drop zone directly over the code editor, and adds a .ico favicon fallback for broader browser compatibility.
File Upload / Drag-and-Drop:
Favicon:
Related Issue
Fixes #289
Type of change
Checklist
mainpytest -vand all tests passfeat/fix/docs/test: short descriptionScreenshots (if frontend change)
BEFORE :

AFTER :

BEFORE :

AFTER :

Auto language detection proof :
https://github.com/user-attachments/assets/b080ff0c-6363-4d34-85f8-52aaf9589fab
Test evidence
This is a frontend-only change (frontend/index.html). No backend logic was modified, so pytest is not applicable. Tested
manually in browser:
✅ Dragged .py, .js, .ts, .java, .cpp files onto the editor — overlay appeared, file loaded correctly
✅ Language tab auto-switched based on file extension
✅ Overlay dismissed cleanly on dragleave and drop
✅ Favicon icon visible in browser tab (both SVG and .ico)
✅ Works in both dark and light mode