Skip to content

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

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

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
@openai0229

Copy link
Copy Markdown
Contributor

Thanks for working on this. The workspace behavior has now been implemented and merged in #1975 with the finalized rule: Files/Data Browser mode changes only through an explicit user action, while console/tab changes only locate the active item inside the current mode.

This branch now conflicts with main and is superseded by #1975, so I am closing it to avoid maintaining two competing implementations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants