Skip to content

Add drag and drop support for patch files and bump to v1.0.1#13

Merged
unknowIfGuestInDream merged 3 commits intomasterfrom
copilot/optimize-drag-and-drop
Jan 29, 2026
Merged

Add drag and drop support for patch files and bump to v1.0.1#13
unknowIfGuestInDream merged 3 commits intomasterfrom
copilot/optimize-drag-and-drop

Conversation

Copy link
Contributor

Copilot AI commented Jan 29, 2026

Implements drag and drop file upload for the textarea input area and upgrades version to 1.0.1.

Changes

Drag and Drop

  • Added drag/drop event handlers with counter-based approach to prevent flickering on nested elements
  • Visual feedback: green dashed border when dragging over textarea
  • Validates file extensions (.patch, .diff, .txt)
  • Refactored into shared processFiles() function used by both drag-drop and file upload

i18n

  • Updated placeholder text in all locales (en, zh, ja) to mention drag and drop
  • Added invalidFileType message for unsupported file drops

Version

  • Bumped to 1.0.1 in package.json and both manifest files

Screenshots

UI with updated placeholder

Rendered diff preview

Original prompt

This section details on the original issue you should resolve

<issue_title>功能优化</issue_title>
<issue_description>1. 支持拖拽patch.diff 文件到Input Patch/Diff Content 区域后执行上传和渲染
2. 版本升级到1.0.1</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: unknowIfGuestInDream <57802425+unknowIfGuestInDream@users.noreply.github.com>
@unknowIfGuestInDream unknowIfGuestInDream marked this pull request as ready for review January 29, 2026 07:58
Co-authored-by: unknowIfGuestInDream <57802425+unknowIfGuestInDream@users.noreply.github.com>
Copilot AI changed the title [WIP] Optimize drag and drop for patch.diff upload Add drag and drop support for patch files and bump to v1.0.1 Jan 29, 2026
@unknowIfGuestInDream unknowIfGuestInDream merged commit 80188c1 into master Jan 29, 2026
2 checks passed
@unknowIfGuestInDream unknowIfGuestInDream deleted the copilot/optimize-drag-and-drop branch January 29, 2026 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

功能优化

2 participants