We could make the Object Explorer appear on all the workspaces.
To what end? Part of the reason for not doing that is that tools like the query tool or psql are not connected to, related to, or contextually linked to the treeview at all once they've been instantiated - therefore, why show them together?
For drag-drop, refer to the objects or open a new query tool directly from the tree like now.
Or, we can change object explorer content relevant to the workspace selected.
If space is a concern then let's make the object explorer collapsible. Even VS-Code allows it.
That way, dragging the objects will not be a problem.
I’m currently developing a proof of concept (POC) for integrating a side workspace (7708) into pgAdmin 4 similar to the workspaces found in VSCode and PyCharm. This workspace will be for Query Tool, PSQL, and Schema Diff Tool. I’ve completed the initial phase of this POC and would appreciate your feedback on the following points:
Does this approach seem promising?
We plan to make the interface configurable, allowing users to choose between "Classic UI" and "Workspace UI." We’ll also work on selecting appropriate labels for these options.
How it works/behaves:
The first workspace is the general workspace, which includes the Object Explorer and other basic tabs (retaining the current look and feel).
The second workspace is dedicated solely to the Query Tool, where we’ll introduce a welcome page (the design is still in progress). Every Query Tool and View/Edit Data tab will open within this workspace.
The third workspace is reserved for PSQL, where all PSQL tabs will be opened.
The fourth workspace is specifically for Schema Diff, where all Schema Diff tabs will be opened.
Challenges:
Drag and Drop objects from the General workspace to the Query Tool workspace.
Changing the UI from "Classic" to "Workpsace" and vice versa based on preference setting.