feat: allow selecting multiple folders via Add Folder button#215
Merged
feat: allow selecting multiple folders via Add Folder button#215
Conversation
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
Fixes #207 — users can now select and upload multiple folders at once using the "Add Folder" button in the desktop (Wails) app.
internal/backend/upload.go): AddedSelectFolders()(opens the native multi-select file picker and returns only directory paths) andUploadFolders([]string)(queues each folder as a separate NZB, emitting a singlequeue-updatedevent at the end).App.js/App.d.ts): Manually added bindings for both new methods per CLAUDE.md rules.client.ts): AddedselectFolders()anduploadFolders()delegating to the new Wails methods in desktop mode.handleFolderUploadnow callsselectFolders()+uploadFolders(). Shows a singular toast for 1 folder and a count-aware toast for 2+.folders_addedandfolders_added_descriptionkeys; updated tooltip text to mention multiple folders.The web-mode code path is unchanged — browsers only expose one folder at a time via
webkitdirectoryand that remains as-is.Test Plan
go build ./...passesbun run checkinfrontend/passes (0 errors, 0 warnings)