Repository navigation
[ISSUE #15142] feat(ai): support drag-and-drop zip upload and batch skill upload - #15154
Merged
KomachiSion merged 8 commits intoMay 15, 2026
Merged
Conversation
|
Thanks for your this PR. 🙏 感谢您提交的PR。 🙏 |
Add HTML5 drag-and-drop support to both console-ui (legacy) and console-ui-next frontends, allowing users to drag .zip files directly onto the skill management page for upload. Key changes: - Add page-level drag overlay with visual feedback - Add drag event handlers with dropEffect='copy' to prevent browser default file-open behavior - Add drag-and-drop to UploadSkillDialog drop zone - Add batchUpload API method calling /upload/batch endpoint - Show per-skill colored results (green success / red failure) in toast - Add i18n strings for drag hints and batch upload results
Add batch upload endpoint that accepts a zip containing multiple skill subdirectories (each with its own SKILL.md). Returns per-skill results with succeeded/failed lists. - Add BatchUploadResult model in api module for cross-module access - Add /v3/console/ai/skills/upload/batch endpoint - Add parseMultipleSkillsFromZip to SkillZipParser - Wire batch upload through console handler chain and maintainer-client - Add unit tests for multi-skill zip parsing
Show a one-line summary (succeeded/failed counts) as the toast title, with per-skill details below: green checkmarks for succeeded skills and red crosses with failure reasons for failed ones.
Add missing third parameter to resolveUploadVersion in batch upload path to match the method signature change.
Rebuild console static resources with latest skill management changes including UI refinements and removal of unused BizTagEditDialog.
…logic - Extract doUploadSingleSkill to eliminate duplicate logic between uploadSkillFromZip and batchUploadSkillsFromZip - Make parseMultipleSkillsFromZip return MultiSkillParseResult carrying both parsed skills and parse failures, so invalid folders don't block the entire batch and failures are reported to the user - Detect sibling folders missing SKILL.md and report them as warnings in the batch upload result (showing only the folder name) - Silently ignore well-known non-skill directories (.git, __MACOSX, etc.)
…ources Assisted-by: Claude Code Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
saynoword
force-pushed
the
feat/suport-drag-and-batch-upload
branch
from
May 15, 2026 03:27
5f40e10 to
f3a098c
Compare
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
KomachiSion
approved these changes
May 15, 2026
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.
Please do not create a Pull Request without creating an issue first.
What is the purpose of the change
Add drag-and-drop zip upload support to the Skill Management page and introduce a batch upload endpoint that accepts multi-skill zip archives, enabling users to upload multiple skills at once with clear per-skill feedback.
Brief changelog
BatchUploadResultmodel inapimodule for cross-module accessibilityparseMultipleSkillsFromZiptoSkillZipParserreturningMultiSkillParseResultthat carries both parsed skills and parse failuresSKILL.mdand report them as warnings in the batch result (showing only the folder name for clarity).git,__MACOSX,node_modules, etc.)doUploadSingleSkillprivate method to eliminate duplicate logic betweenuploadSkillFromZipandbatchUploadSkillsFromZip/v3/console/ai/skills/upload/batchendpoint wired through console handler chain and maintainer-clientdropEffect='copy'and visual overlay to bothconsole-uiandconsole-ui-nextbatchUploadAPI method inconsole-ui-nextcalling the batch endpointCommits
ea4fc91c0feat(console): support drag-and-drop zip upload in skill managementea791f1bafeat(ai): support batch upload skills from multi-skill zip archive53751fcf8refactor(console): simplify batch upload toast to show per-skill resultse418e636cfix(ai): align resolveUploadVersion call with updated method signature881cea0cefeat(console): update frontend static assets for skill management UI5f40e10e6refactor(ai): improve batch upload resilience and deduplicate upload logicVerifying this change
mvn -B clean package apache-rat:check spotbugs:check -DskipTestsmvn test -pl ai -Dtest=SkillZipParserTest(23 tests, all pass)mvn test -pl ai(1200 tests, all pass)Follow this checklist to help us incorporate your contribution quickly and easily:
[ISSUE #123] Fix UnknownException when host config not exist. Each commit in the pull request should have a meaningful subject line and body.mvn -B clean package apache-rat:check spotbugs:check -DskipTeststo make sure basic checks pass. Runmvn clean install -DskipITsto make sure unit-test pass. Runmvn clean test-compile failsafe:integration-testto make sure integration-test pass.