feat(ui): add drag-and-drop image upload to composers

Add an ImageDropOverlay component and useImageDropTarget hook that let
users drop an image onto the home prompt card or canvas agent composer to
upload it as a reference, with a localized drop overlay.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-11 01:02:12 +08:00
parent 58f11302fe
commit 0ef4b7c1ee
7 changed files with 342 additions and 2 deletions
+2
View File
@@ -58,6 +58,8 @@
"logout": "Log out",
"credits": "{count} Credits",
"attachReference": "Attach reference",
"dropImageToUpload": "Release to upload image",
"dropImageSubtext": "Supports JPG, PNG, SVG or WebP",
"webReference": "Web reference",
"modelSelection": "Model selection",
"webEnabled": "Web reference on",