✨ Feature(upload): add batch url upload support#1376
Merged
Molunerfinn merged 4 commits intodevfrom Jan 12, 2026
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This pull request adds support for batch URL uploads to PicGo, addressing issue #1302. Users can now upload multiple URLs at once by separating them with newlines, either through drag-and-drop or via the URL input dialog.
Changes:
- Added utility functions
parseNewlineSeparatedUrlsandextractHttpUrlsFromTextto handle multiple URLs from various input sources - Updated the URL input dialog to support textarea input for multiple URLs
- Implemented confirmation dialog when uploading more than 10 URLs at once (in Upload page only)
- Added invalid URL logging and user notifications
- Migrated test infrastructure from Karma/Mocha to Vitest
- Upgraded Husky from v3 to v9 and configured Git hooks
Reviewed changes
Copilot reviewed 21 out of 25 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| src/universal/utils/common.ts | Added core URL parsing functions with support for newline-separated, concatenated, and NUL-separated URLs |
| src/universal/types/types.d.ts | Extended IShowInputBoxOption to support textarea input type |
| src/universal/types/i18n.d.ts | Added translation keys for batch URL upload feedback |
| src/universal/events/constants.ts | Added LOG_INVALID_URL_LINES event constant |
| src/renderer/pages/Upload.vue | Refactored drop handling to support batch URLs with confirmation for large batches |
| src/renderer/pages/MiniPage.vue | Refactored drop handling to support batch URLs |
| src/renderer/components/dialog/InputBoxDialog.vue | Added textarea support with vertical resize and max-height |
| src/renderer/utils/bus.ts | Updated type to use IShowInputBoxOption interface |
| src/main/events/ipcList.ts | Added handler to log invalid URL lines |
| src/tests/universal/utils/common.spec.ts | Added comprehensive unit tests for URL parsing functions |
| public/i18n/*.yml | Added translations for invalid URLs and batch upload confirmation |
| package.json | Added vitest, upgraded husky, added test/prepare/commitlint scripts |
| pnpm-lock.yaml | Updated dependencies for husky v9 and vitest v4 |
| .husky/pre-commit | Added pre-commit hook to run checks and tests |
| .husky/commit-msg | Added commit-msg hook for commitlint |
| .gitignore | Added openspec/ directory |
| test/* | Removed old Karma/Mocha test infrastructure |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
ISSUES CLOSED: #1302