Repository navigation
feat(workflows): fit selected nodes in the editor - #10225
Conversation
Frame the clicked node or the selected group from the graph context menu. Reuse the editor fit padding and reduced-motion setting.
joshistoast
left a comment
There was a problem hiding this comment.
Assuming tests and checks pass, this looks good.
|
Hi @joshistoast, thanks for reviewing and merging Fit Selection for the workflow editor. I’d like to keep contributing to InvokeAI, especially to Canvas and Workflows. I’ve also opened PRs for the workflow view shortcut (#10226), the Canvas preflight fix (#10258), and MiniMax H3-Image support (#10240). A bit about me: I have a master’s degree, previously worked at Alibaba, and now work at an AI company. My background is in frontend development, with hands-on experience building canvas and workflow editors and integrating image and video generation models. Is there a part of Canvas or Workflows where you’d welcome ongoing help with bug triage, fixes, or reviews? I’d be happy to coordinate here on GitHub. |
Summary
Add Fit selection to the workflow graph context menu. Right-click an unselected node to frame that node. Right-click a selected node or the selection outline to frame the selected group.
QA Instructions
pnpm check:releasepassed formatting, lint, and types. The unit stage hit the same two macOS shortcut assertions on this branch and the clean base. The remaining release stages did not run.Review
Offscreen nodes that have not been measured use the editor's existing size estimate. The action respects reduced motion and preserves the selection.
Checklist
What's Newcopy (if doing a release after this PR)Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.