Repository navigation
Web UI: make the openQueryInNewTab comment platform-accurate - #110439
Conversation
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.
|
Workflow [PR], commit [c8fac71] Summary: ✅
AI ReviewSummaryThis PR is a documentation-only follow-up to align Findings💡 Nits
Final VerdictStatus: |
| /// 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, |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
…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.
|
Good catch — updated the |
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)
…esture-comment Web UI: make the `openQueryInNewTab` comment platform-accurate
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)
Documentation-only follow-up to #109246. The final implementation there deliberately does not treat macOS
Ctrl+Clickas a new-tab gesture (on macOS it is the secondary/context-menu click, which is left entirely to the browser), but theopenQueryInNewTabhelper comment still said "Shift/Ctrl/Cmd click", over-promisingCtrl+Clickto macOS users. This makes the comment platform-specific — middle click, Shift+click, or the platform's new-tab modifier click (Cmd+clickon macOS,Ctrl+clickelsewhere) — and points to the committed manual test matrix aboveonTableActivate. 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):