Skip to content

feat(workflows): fit selected nodes in the editor - #10225

Merged
joshistoast merged 1 commit into
invoke-ai:mainfrom
renningg:feat/workflow-fit-selection
Nov 10, 2026
Merged

joshistoast merged 1 commit into
invoke-ai:mainfrom
renningg:feat/workflow-fit-selection

Conversation

@renningg

@renningg renningg commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Open a workflow with several nodes. Select two, right-click one or the outline, and choose Fit selection. Repeat on an unselected node. Use the toolbar's Fit view to frame the full graph.
  • Verified in Chromium with a 100-node mock workflow. All 46 tests across the editor, context menu, toolbar, and selection request suites passed.
  • pnpm check:release passed 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

  • The PR has a short but descriptive title, suitable for a changelog
  • Meaningful regression coverage added / updated where needed; obsolete tests/code removed
  • Persisted-state and API changes include required migrations / compatibility validation
  • Relevant performance/efficiency opportunities considered; material claims have evidence
  • Material review findings resolved and relevant checks rerun
  • Documentation added / updated (if applicable)
  • Updated What's New copy (if doing a release after this PR)
workflow-fit-selection-menu workflow-fit-selection-result

Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Frame the clicked node or the selected group from the graph context menu. Reuse the editor fit padding and reduced-motion setting.
@github-actions github-actions Bot added frontend PRs that change frontend files docs PRs that change docs labels Nov 10, 2026
@joshistoast
joshistoast self-requested a review November 10, 2026 06:55

@joshistoast joshistoast left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assuming tests and checks pass, this looks good.

@joshistoast
joshistoast added this pull request to the merge queue Nov 10, 2026
Merged via the queue into invoke-ai:main with commit 02e3ee0 Nov 10, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs PRs that change docs frontend PRs that change frontend files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants