-
Notifications
You must be signed in to change notification settings - Fork 388
allow copy and paste when using minimap or canvas menu (bottom right) #6055
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
🎨 Storybook Build Status✅ Build completed successfully! ⏰ Completed at: 10/18/2025, 07:29:03 PM UTC 🔗 Links🎉 Your Storybook is ready for review! |
🎭 Playwright Test Results❌ Some tests failed ⏰ Completed at: 10/18/2025, 07:43:41 PM UTC 📈 Summary
📊 Test Reports by Browser
🎉 Click on the links above to view detailed test results for each browser configuration. |
…s review feedback Co-authored-by: Myestery <[email protected]>
a059806
to
12bdf89
Compare
I've been exploring similar options over in #6087. Thoughts on broadening the target restrictions to Edit to clarify: The changes here are an improvement and LGTM, even if further changes will be made down the line. |
@codex review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, any ideas on a more robust solution that won't need id upkeep to prevent drifting?
Nothing comes to mind. Is ID drifting common? Would be pretty bad to change IDs and not audit all usage first. Thankfully since I added tests, we will be able to spot that case immediately when the test fails. |
Bundle Size ReportApp Entry PointsMain application bundles
Category Total: 11.7 MB Core ViewsMajor application views and screens
Category Total: 722 kB UI PanelsSettings and configuration panels
Category Total: 74.8 kB ServicesBusiness logic and services
Category Total: 10 kB UtilitiesHelper functions and utilities
Category Total: 1.07 kB OtherUncategorized bundles
Category Total: 1.12 kB Overall Total Size: 12.5 MB |
Summary
Fixed intermittent copy/paste failures when clicking minimap or canvas control buttons by expanding target whitelist in document-level clipboard handlers.
Changes
isTargetInGraph
check inuseCopy.ts
andusePaste.ts
to include minimap and canvas controlscomfy-minimap
on minimap container (src/renderer/extensions/minimap/MiniMap.vue
)graph-canvas-controls
on canvas controls ButtonGroup (src/components/graph/GraphCanvasMenu.vue
)Minimap
test fixture following existing pattern (Topbar, SidebarTab)Technical Details
Document-level clipboard handlers (added Feb 2025) replace LiteGraph's canvas-only handlers but require event target to be within graph workspace. Previous implementation only checked:
Clicking UI elements (minimap buttons, zoom controls) caused focus loss, making target check fail silently.
┆Issue is synchronized with this Notion page by Unito