Skip to content

Drag-and-drop folder/archive upload with real progress - #11

Merged
grenkoff merged 1 commit into
mainfrom
feature/upload-dnd-progress
Jun 14, 2026
Merged

grenkoff merged 1 commit into
mainfrom
feature/upload-dnd-progress

Conversation

@grenkoff

Copy link
Copy Markdown
Owner

What

Reworks the dashboard uploader to be folder- or archive-based, with drag-and-drop and accurate progress.

Changes

  • Drag-and-drop of a folder or an archive onto the upload card (dashed drop zone with highlight). Folders are walked breadth-first via the directory-entry API with bounded concurrency (batches of 64) and a live "Reading N files…" indicator; loose individual files are intentionally ignored.
  • Real upload progress. Archive uploads now use XMLHttpRequest so the progress bar reflects actual bytes sent (upload.onprogress) instead of jumping straight to 100%. The bar is byte-based (bytesUploaded / bytesTotal).
  • Folder or archive only. Removed loose-file selection; the second button is now "Choose archive" (archive extensions only). .txt files inside a chosen folder are still imported.
  • Button polish. "Upload" is always visible, disabled until something is selected, and resets after a completed import.

Verification

  • npm run typecheck — clean
  • npm run lint — clean

@grenkoff
grenkoff merged commit df9932e into main Jun 14, 2026
3 checks passed
@grenkoff
grenkoff deleted the feature/upload-dnd-progress branch June 14, 2026 23:44
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.

1 participant