You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Show uncapped node output dimensions in previews - #316
Node tooltips show the calculated output dimensions alongside the dimensions of the editing preview.
Part of #107. This covers the size reported by the node card. Output-size controls are a separate part of the report.
An editing preview can be capped at 512 pixels even when a node is configured to produce a larger image. The tooltip now uses the node evaluator's output dimensions so users can check the full size without cooking a full-resolution image in the editor.
The regression checks a 2048 × 1024 output with a 512 × 256 editing preview, then confirms the output by cooking the graph at full resolution.
Verified on macOS. The new regression failed before the fix and passed after it. The UI integration suite passed 71 tests with 10 ignored. Formatting, layer checks and local review passed. The patch was unchanged after rebasing.
Accessibility
The node description exposed to assistive technology includes both sizes.
Summary by CodeRabbit
Bug Fixes
Node footers now show image metadata only when the node’s result contains an image, and the displayed bit depth matches the result’s base format.
When a preview limit is set, hover and accessibility descriptions now include both output and preview dimensions, along with parent dimensions and the limit. Without a preview limit, the footer continues to show the image dimensions and format.
No actionable comments were generated in the recent review.
Walkthrough
The node footer now shows image metadata when a result has an image as its first output. When a preview limit is set, its hover and accessibility descriptions include output and preview dimensions. The integration test checks a non-square output and preview.
Changes: Preview metadata
Layer / File(s)
Summary
Footer metadata and preview validation crates/ui-egui/src/graph/canvas.rs, crates/ui-egui/tests/it/preview_resolution.rs
The footer gets bit depth from the result’s base format and includes output and preview dimensions when a preview limit is set. The test checks a 2048 x 1024 output, a 512 x 256 preview, and the corresponding descriptions.
Issue 107 reports that a 2K parent size still produces 512x512 node outputs and that output-size settings do not take effect. This PR shows uncapped output dimensions in preview descriptions but does not change output-size controls.
Suggested reviewers:chasse20, dotcoocoo
Merge Risk: Minimal · up to 8443b
Node tooltips now show both the node's output size and the capped preview size. No concrete defect was found, so the change looks safe to merge.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title names the main change: node tooltips and previews now show uncapped output dimensions. The raw summary confirms the footer and hover text now include output dimensions alongside preview dime…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the main change: node tooltips and previews now show uncapped output dimensions. The raw summary confirms the footer and hover text now include output dimensions alongside preview dimensions, and the preview-resolution test expects the full-resolution cook size. The title is specific and matches the changeset and PR objectives.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Reviewing files that changed from the base of the PR and between 356c066 and 8443b62.
Files selected for processing: 2
crates/ui-egui/src/graph/canvas.rs
crates/ui-egui/tests/it/preview_resolution.rs
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.
This branch has not been deployed
No deployments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Node tooltips show the calculated output dimensions alongside the dimensions of the editing preview.
Part of #107. This covers the size reported by the node card. Output-size controls are a separate part of the report.
An editing preview can be capped at 512 pixels even when a node is configured to produce a larger image. The tooltip now uses the node evaluator's output dimensions so users can check the full size without cooking a full-resolution image in the editor.
The regression checks a 2048 × 1024 output with a 512 × 256 editing preview, then confirms the output by cooking the graph at full resolution.
Verified on macOS. The new regression failed before the fix and passed after it. The UI integration suite passed 71 tests with 10 ignored. Formatting, layer checks and local review passed. The patch was unchanged after rebasing.
Accessibility
The node description exposed to assistive technology includes both sizes.
Summary by CodeRabbit