feat: Add "Copy URI" to saved query context menu and query browser - #154
Conversation
|
@copilot the functionality seems to be working. But the UI needs some improvement now. We have 4 different action links related to a saved query: Copy URI, Rename, Delete and Move. Instead of putting them to the right of the query name, where it will decrease the space available for the name, but them all four in a context window that opens when the user right clicks on it. |
Done in commit 6545607. All four query actions (Copy URI, Rename, Move, Delete) are now hidden from the row and only appear in a right-click context menu, so the full query name is always visible. Folder inline actions (Rename, Delete) are unchanged. Here's how it looks when right-clicking a saved query: The context menu (Copy URI → Rename → Move → Delete) appears at the cursor position, closes on click-outside or Escape, and is clamped to the viewport. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|

Adds a "Copy URI" action for managed (saved) queries — in the Query Browser sidebar (via right-click context menu) and in the tab right-click context menu.
Changes
WorkspaceBackendinterfacegetQueryUri?(queryId: string): string | undefinedGitWorkspaceBackendgetQueryUri— constructs the file's web URL fromremoteUrl,branch,rootPath, andqueryIdproviderconfig or host-based auto-detection:.../blob/{branch}/{path}.../-/blob/{branch}/{path}.../src/{branch}/{path}.../src/branch/{branch}/{path}SparqlWorkspaceBackendgetQueryUri— returns the query ID directly (it already is the managed-query IRI)QueryBrowserTabContextMenuGitQueryRef/SparqlQueryRefinstead ofas anycastsTests
getQueryUriacross all supported providers and both backend types