Skip to content

feat(yasgui): hide the query editor and redesign the share popup - #259

Merged
MathiasVDA merged 3 commits into
mainfrom
claude/project-thread-ck6h1p
Nov 7, 2026
Merged

MathiasVDA merged 3 commits into
mainfrom
claude/project-thread-ck6h1p

Conversation

@MathiasVDA

@MathiasVDA MathiasVDA commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #258.

Hide the query

  • New Hide query button (chevron) at the right end of the editor toolbar, also available as a Ctrl+K command. When the query is hidden, the editor folds to one line ("The query is hidden") and the results fill the card. Share, Save and Run stay available, while the editing tools (Prefixes, Insert, AI, format, fullscreen, layout) are hidden. Click the chevron or the line itself to bring the editor back.
  • Each tab remembers the state (queryHidden in the persisted tab JSON).
  • Works in the stacked and side-by-side layouts. In side-by-side, the folded editor sits above the results.
  • Share links: hideQuery=true opens the link with the query hidden. The share popup offers this as "Show only the results", ticked by default when the tab's query is hidden. An update or invalid query from a link is not run, so the editor is always shown in that case.
  • Config: hideQuery: true opens new tabs with the query hidden (default false).

Share popup redesign

  • The popup moves to packages/yasqe/src/sharePopup.ts and uses the MatData look. It has a "Link" section (read-only URL field with a Copy button, the hide-query option and Shorten link) and a "Command line" section (cURL, PowerShell and wget rows).
  • After a copy, the button shows "Copied" inline instead of a toast. A note says when the commands include credentials, and errors show inline.
  • The popup closes on Escape, on an outside click or on a second click on Share. On narrow screens it spans the viewport. The old yasgui overrides in themes.scss and tab.scss are removed.
  • Yasqe API: createShareableLink(yasqe, options?) now receives { hideQuery }, and a new shareHideQueryOption config shows the option. One-argument createShareableLink functions keep working.

Docs

  • User guide: new "Hide the Query" section and updated "Share Queries". The developer guide covers hideQuery and shareHideQueryOption.
  • What's new 6.14.0 entry and a changeset (minor for yasgui and yasqe).

Tests

  • Two new browser tests in share-link-browser.ts: a hideQuery link (state, popup option and link, Show query), and a hidden update query that gets shown.
  • Puppeteer suite: 101 passing. Unit tests: 1785 passing. Lint and util:validateTs clean on the changed files.

Hide query folds the editor to one line so the results take the card
(#258). The state is kept per tab, can be toggled from Ctrl+K, and share
links open that way with hideQuery=true ("Show only the results" in the
share popup). An update or invalid query from a link is always shown.
New tabs can start hidden with the hideQuery config option.

The share popup moves to its own module in the MatData look: the link
with a Copy button, the option, the shortener and the cURL, PowerShell
and wget commands, with inline Copied feedback and a credentials note
instead of toasts. It closes on Escape and spans a narrow viewport.
@MathiasVDA MathiasVDA self-assigned this Nov 6, 2026
@MathiasVDA
MathiasVDA merged commit f73ed37 into main Nov 7, 2026
1 check passed
@MathiasVDA MathiasVDA mentioned this pull request Nov 7, 2026
@MathiasVDA
MathiasVDA deleted the claude/project-thread-ck6h1p branch November 8, 2026 16:51
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.

Show/hide SPARQL query

1 participant