feat: add visual drag-and-drop zone for file upload and favicon fallback#351
Conversation
|
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! 🙏 |
|
@dhruv-jani-0808 update your branch with the latest main changes |
|
hey @imDarshanGK |
|
@dhruv-jani-0808 update your branch with the latest main changes |
|
@imDarshanGK i have updated my main branch with latest main changes |
|
@dhruv-jani-0808 update your branch with the latest main changes |
|
hey @imDarshanGK |
|
@dhruv-jani-0808 update the branch with the latest main changes |
|
hey @imDarshanGK updated! |
|
hey @imDarshanGK i have updated the branch with latest changes |
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