Browse Source
The canvas needs to respect what users can see: media nodes should reflect the actual image ratio, and the connection menu should dismiss when the user clicks away instead of forcing a node choice. The fix stays inside the affected node/menu components and their regression tests. Constraint: Windows pointer/canvas interactions can prevent bubble-phase outside-click handlers from seeing the click Rejected: Add a modal/backdrop around the connection menu | heavier behavior change and unnecessary for a transient menu Rejected: Add user-facing aspect-ratio controls | the media already exposes dimensions and should not need extra configuration Confidence: high Scope-risk: narrow Directive: Keep connection-menu dismissal as capture-phase pointer handling unless Windows canvas behavior is revalidated Tested: npm test -- --run src/components/__tests__/ConnectionDropMenu.test.tsx src/components/__tests__/ImageInputNode.test.tsx src/components/__tests__/GenerateImageNode.test.tsx Tested: npm run build Not-tested: Manual Windows PC browser runfeature/canvas-chatbot-copilot
6 changed files with 201 additions and 18 deletions
Loading…
Reference in new issue