Skip to content

dbeaver/pro#8553 sql execution plan diagram#4218

Open
SychevAndrey wants to merge 56 commits intodevelfrom
8553-sql-execution-plan-diagram
Open

dbeaver/pro#8553 sql execution plan diagram#4218
SychevAndrey wants to merge 56 commits intodevelfrom
8553-sql-execution-plan-diagram

Conversation

@SychevAndrey
Copy link
Contributor

Screenshot 2026-03-16 at 11 02 24

component + small APP for Java integration

separate state, add l10n, make toolbar composable
}

/** Invisible child component that captures toolbar actions from DiagramContext. */
function ActionsCapture({ onActions }: { onActions: (actions: IDiagramActions | null) => void }) {
Copy link
Member

Choose a reason for hiding this comment

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

All logic related to the execution plan diagrams should be inside EE repos

Copy link
Member

Choose a reason for hiding this comment

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

i think this is not critical, because it can't be used as-is, and without diagram data itself it's not so usefull

Comment on lines 47 to 48
function ActionsCapture({ actionsRef }: { actionsRef: { current: IDiagramActions | null } }) {
const actions = useContext(DiagramContext);
Copy link
Member

Choose a reason for hiding this comment

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

you don't need this component at all, please remove it

Comment on lines +124 to +134
data={state.data}
options={state.options}
selectedNodeId={state.selectedNodeId}
onNodeSelect={(nodeId, node) => {
state.selectedNodeId = nodeId;
state.callbacks.onNodeSelect?.(nodeId, node);

window.onPlanNodeSelected?.(nodeId);

render();
}}
Copy link
Member

Choose a reason for hiding this comment

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

pass a callback to the ref property to get actions

Copy link
Member

Choose a reason for hiding this comment

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

let diagramActions: IDiagramActions | null  = null;
...
<ExecutionPlanDiagram
  ref={actions => {
    diagramActions = actions;
  }}
...

    zoomOut(): void {
      diagramActions?.zoomOut();
    },

@SychevAndrey SychevAndrey requested a review from Wroud March 19, 2026 15:24
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.

5 participants