Gallery has no clipboard paste support — user with a design file in their clipboard (e.g., from a screenshot tool, email attachment, or a browser drag) can't paste it into the Gallery #246
Labels
No labels
blocked:commit-ready-failed
blocked:gate-fetch
blocked:gate-lint
blocked:gate-plan
blocked:gate-research
blocked:needs-attention
blocked:needs-decision
blocked:needs-human
blocked:no-changes
blocked:verify-failed
bug
deferred
feature-request
in-progress
needs-decompose
needs-triage
quickfix
security/medium
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/Kimi_Agent_Brother_10_Digitizing_App#246
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Finding
src/pages/Gallery.tsxhas:onDrop={handlePageDrop}per #197)onPastelistenergrep -n 'onPaste\|paste' src/pages/Gallery.tsxreturns 0.A user with a PNG in their clipboard (e.g., from a screenshot tool, an email attachment preview, a "copy image" from a browser):
The Workspace's clipboard paste (per #186 fix) is wired:
useWorkspacelistens for paste events. The Gallery's parallel is missing.Where
src/pages/Gallery.tsx(no paste listener)useEffectwithwindow.addEventListener('paste', ...)is the reference implementationSuggested fix shape
Add a
pasteevent listener to the Gallery's window:handleFileUploadis the same handler that the file picker calls — it dispatches the same flow (add the design, toast a success, navigate to the design or stay on the Gallery).The user can now:
The same pattern as the Workspace's paste (per #186) but routed to the Gallery's design storage (instead of the workspace's image state).
Severity
Low. The user can save the clipboard image to disk and use the file picker. Power users with image-clipboard workflows notice.
Discovered by
Gap analysis (2026-10-02) of gallery upload affordances.
Related
Fixed in commit
85c5970449. Added a window-levelpasteevent listener to Gallery.tsx that turns clipboard image items into a File and feeds them through the existingimportFilespipeline (parseDesignFile + designFromFile + toast). Synthesized filenamepaste-<timestamp>.<ext>so the design shows up with a sensible name. Mirrors the Workspace's #186 paste pattern and parallels the Gallery's #197 drop target — paste is the keyboard-driven equivalent.editedAtbut the timestamp is updated on every save — user with 50 designs can't tell which ones they've actually opened in the editor vs just saved once #263