Clipboard image entry support#46
Merged
Merged
Conversation
Users can now paste images directly from the clipboard into the web app using Cmd/Ctrl+V. The paste handler extracts image files from clipboard data and processes them through the existing compression pipeline. - Add paste event listener to handle clipboard images - Update drop zone UI to show paste hint (⌘V to paste) - Skip paste handling when typing in input fields - Add comprehensive e2e tests for clipboard functionality
|
Cursor Agent can help with this pull request. Just |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
This PR is being reviewed by Cursor Bugbot.
You can kick off a cloud agent using @cursor - e.g. @cursor fix the bug in clipboard.spec.ts.
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.
Add clipboard image paste support to the web app for improved user convenience.
Note
Introduces clipboard paste handling to
+page.sveltevia a newhandlePastethat reads image files fromClipboardEventand callsaddFiles. Pasting is ignored when focus is in inputs/textareas/contenteditable, and multiple pasted images switch to list view.The drop zone UI now displays a paste hint and a keyboard cue for paste. New Playwright e2e tests (
web/e2e/clipboard.spec.ts) verify the hint visibility, single-image paste flow, prevention while typing, and multi-image paste behavior.Written by Cursor Bugbot for commit 92345e0. This will update automatically on new commits. Configure here.