Skip to content

Conversation

koszti
Copy link
Member

@koszti koszti commented Sep 29, 2025

Description

Fix an issue with query live plan in preview UI when complex queries are not visible by default.
Partially addressing #26724

Additional context and related issues

The query plan is rendered correctly but the default viewport often falls outside the visible area. This PR addresses the issue by making fitView the default ensuring the entire flow is zoomed and positioned to fit within the window.

In addition it introduces an Origin button that dynamically centers on the first node, serving both as a convenient reset and as a default zoom-in option if the full flow initially appears too small.

image

Release notes

( ) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
(x) Release notes are required, with the following suggested text:

## Section
* Fix query plan default viewport in preview UI. ({issue}`26749`)

@cla-bot cla-bot bot added the cla-signed label Sep 29, 2025
@github-actions github-actions bot added the ui Web UI label Sep 29, 2025
@koszti koszti changed the title Fix query plan default viewport in preview UI WiP: Fix query plan default viewport in preview UI Sep 29, 2025
@koszti koszti force-pushed the fix-live-plan-layout branch from 04d25a8 to 9c9e42d Compare October 1, 2025 08:06
@koszti koszti mentioned this pull request Oct 1, 2025
2 tasks
@koszti koszti changed the title WiP: Fix query plan default viewport in preview UI Fix query plan default viewport in preview UI Oct 1, 2025
@wendigo
Copy link
Contributor

wendigo commented Oct 1, 2025

@koszti just one nit - can ORIGIN center the first stage?

@koszti koszti force-pushed the fix-live-plan-layout branch from 9c9e42d to 2b4adba Compare October 1, 2025 13:48
@koszti
Copy link
Member Author

koszti commented Oct 1, 2025

@koszti just one nit - can ORIGIN center the first stage?

done that, updated the PR accordingly

@wendigo wendigo merged commit af6442c into trinodb:master Oct 2, 2025
96 of 97 checks passed
@github-actions github-actions bot added this to the 478 milestone Oct 2, 2025
@koszti koszti deleted the fix-live-plan-layout branch October 3, 2025 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants