Skip to content

Show uncapped node output dimensions in previews - #316

Open
ViktorBystrov72 wants to merge 1 commit into
storytold:mainfrom
ViktorBystrov72:fix/show-node-output-size
Open

ViktorBystrov72 wants to merge 1 commit into
storytold:mainfrom
ViktorBystrov72:fix/show-node-output-size

Conversation

@ViktorBystrov72

@ViktorBystrov72 ViktorBystrov72 commented Nov 24, 2026 •

Copy link
Copy Markdown

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.

@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Explain Change →

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.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Possibly related issues

  • 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: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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.

Share

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.
Recent review info

Run configuration

Commits

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant