Skip to content

fix(workspace): keep Data Browser active after creating a query#1930

Open
yashoncode wants to merge 1 commit into
OtterMind:mainfrom
yashoncode:fix/1915-new-query-keeps-data-browser
Open

fix(workspace): keep Data Browser active after creating a query#1930
yashoncode wants to merge 1 commit into
OtterMind:mainfrom
yashoncode:fix/1915-new-query-keeps-data-browser

Conversation

@yashoncode

Copy link
Copy Markdown

No description provided.

…the tree

The left sidebar panel selection (activePanel) defaults to 'explorer' (Files)
and only becomes 'database' (Data Browser) as a side effect of locateDatabaseTree.
That setActivePanel('database') was gated behind showExplorerPanel. On desktop the
Java bridge (window.javaQuery) is injected shortly after load, so showExplorerPanel
is briefly false while currentPanel is forced to 'database' -- the user browses the
Data Browser tree even though activePanel is still 'explorer'. Creating a query then
runs the auto-follow locate, which skipped setActivePanel('database') due to the gate,
so once the bridge initialized the sidebar reverted to the stale 'explorer' default
and snapped to Files.

Always record 'database' as the active panel when locating a database-tree target;
only the frame-wait still depends on the explorer panel being mounted.

Fixes OtterMind#1915
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