Skip to content

Web UI: make the openQueryInNewTab comment platform-accurate - #110439

Merged
alexey-milovidov merged 3 commits into
masterfrom
web-ui-new-tab-gesture-comment
Jul 16, 2026
Merged

alexey-milovidov merged 3 commits into
masterfrom
web-ui-new-tab-gesture-comment

Conversation

@alexey-milovidov

Copy link
Copy Markdown
Member

Documentation-only follow-up to #109246. The final implementation there deliberately does not treat macOS Ctrl+Click as a new-tab gesture (on macOS it is the secondary/context-menu click, which is left entirely to the browser), but the openQueryInNewTab helper comment still said "Shift/Ctrl/Cmd click", over-promising Ctrl+Click to macOS users. This makes the comment platform-specific — middle click, Shift+click, or the platform's new-tab modifier click (Cmd+click on macOS, Ctrl+click elsewhere) — and points to the committed manual test matrix above onTableActivate. The PR body and changelog entry of the original PR were updated to match.

Addresses the remaining review comment: #109246 (comment)

Related: #109246

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

Follow-up to #109246: the final
implementation deliberately does not treat macOS `Ctrl+Click` as a new-tab
gesture (it is the secondary/context-menu click there and is left to the
browser), but the `openQueryInNewTab` helper comment still said
"Shift/Ctrl/Cmd click". Spell out the actual contract: middle click,
Shift+click, or the platform's new-tab modifier click - Cmd+click on macOS,
Ctrl+click elsewhere - and point to the manual matrix above `onTableActivate`.

Addresses the remaining review comment on #109246.
@clickhouse-gh

clickhouse-gh Bot commented Jul 14, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [c8fac71]

Summary: ✅


AI Review

Summary

This PR is a documentation-only follow-up to align play.html's new-tab gesture wording with the actual macOS behavior. The updated tooltip and nearby helper comments are better, but the file still contains other comments that describe macOS Ctrl+Click as a new-tab gesture, so the consistency pass is still incomplete.

Findings

💡 Nits

  • [programs/server/play.html:8915, 4371] The PR's contract is that play.html no longer documents macOS Ctrl+Click as a new-tab gesture, but the wantsNewTab comment still says Ctrl/Cmd/Shift+click opens the terminal in a new tab. The same stale wording also remains for the logo anchor, so the file still documents two different modifier rules. Suggested fix: update those comments to the same platform-specific wording used near openQueryInNewTab / getTerminalURL, or phrase them in terms of "fall through to the anchor's native behavior" instead of calling every modifier a new-tab gesture.
Final Verdict

Status: ⚠️ Request changes

@clickhouse-gh clickhouse-gh Bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label Jul 14, 2026
Comment thread programs/server/play.html
/// click or Shift/Ctrl/Cmd click). `guard_paste` is set for a genuine middle click, so
/// the activation swallows the X11 PRIMARY paste that follows focusing the editor.
/// Used by the databases panel when a table is opened with a new-tab gesture: middle
/// click, Shift+click, or the platform's new-tab modifier click - Cmd+click on macOS,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes openQueryInNewTab accurate, but the same platform-specific instruction is still wrong in the user-visible #terminal-icon tooltip: programs/server/play.html:1521 still says middle-click or Ctrl/Shift+click, which tells macOS users to use Ctrl+Click instead of Cmd+Click. Since this PR is already tightening the gesture contract, could we update the remaining tooltip/comment sites in this file in the same sweep so the page stops documenting two different modifier rules?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This still is not consistent everywhere in play.html: programs/server/play.html:8915 says Ctrl/Cmd/Shift+click opens the terminal in a new tab, and programs/server/play.html:4371 says the same for the logo anchor. Both comments still document macOS Ctrl+Click as a new-tab gesture after the tooltip / getTerminalURL cleanup.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed both remaining sites (the databases-icon logo comment and the wantsNewTab comment) in a follow-up: #110705. This PR merged just as your comment landed, so the fix couldn't go in here.

@pamarcos pamarcos self-assigned this Jul 15, 2026
…curate too

The AI review on this PR noted that while `openQueryInNewTab`'s comment was
fixed to say `Cmd+click` on macOS, the `#terminal-icon` `<a>` tooltip and its
surrounding comments still said `Ctrl/Shift+click`, continuing to tell macOS
users to press `Ctrl+Click` where the platform's native new-tab gesture is
`Cmd+Click`. Update the tooltip `title` and the two comments near
`#terminal-icon` and `getTerminalURL` to use the same platform-specific
wording as `openQueryInNewTab`, so `play.html` no longer documents two
different modifier rules for the same gesture.
@alexey-milovidov

Copy link
Copy Markdown
Member Author

Good catch — updated the #terminal-icon tooltip and the two comments near it (getTerminalURL) in the same sweep, so Cmd+click on macOS is now used consistently everywhere in play.html instead of just in openQueryInNewTab. See c8fac71.

@alexey-milovidov
alexey-milovidov added this pull request to the merge queue Jul 16, 2026
Merged via the queue into master with commit 2d0e8d6 Jul 16, 2026
180 checks passed
@alexey-milovidov
alexey-milovidov deleted the web-ui-new-tab-gesture-comment branch July 16, 2026 14:37
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-synced-to-cloud The PR is synced to the cloud repo label Jul 16, 2026
pull Bot pushed a commit to AnotherGenZ/ClickHouse that referenced this pull request Jul 19, 2026
The logo-anchor comment and the wantsNewTab comment for the terminal
icon still said Ctrl/Cmd/Shift+click opens a new tab, which overstates
Ctrl+Click on macOS the same way the openQueryInNewTab comment used to.
Reword both to the platform-specific phrasing already used near
openQueryInNewTab, the #terminal-icon tooltip, and getTerminalURL:
middle-click, Shift+click, or the platform's new-tab modifier click
(Cmd+click on macOS, Ctrl+click elsewhere).

Addresses: ClickHouse#110439 (comment)
zeekay pushed a commit to hanzoai/datastore that referenced this pull request Sep 11, 2026
…esture-comment

Web UI: make the `openQueryInNewTab` comment platform-accurate
zeekay pushed a commit to hanzoai/datastore that referenced this pull request Sep 11, 2026
The logo-anchor comment and the wantsNewTab comment for the terminal
icon still said Ctrl/Cmd/Shift+click opens a new tab, which overstates
Ctrl+Click on macOS the same way the openQueryInNewTab comment used to.
Reword both to the platform-specific phrasing already used near
openQueryInNewTab, the #terminal-icon tooltip, and getTerminalURL:
middle-click, Shift+click, or the platform's new-tab modifier click
(Cmd+click on macOS, Ctrl+click elsewhere).

Addresses: ClickHouse#110439 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-not-for-changelog This PR should not be mentioned in the changelog pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants