Skip to content

Web UI: fix the last two stale new-tab gesture comments in play.html - #110705

Merged
alexey-milovidov merged 11 commits into
masterfrom
web-ui-terminal-icon-comment-followup
Jul 19, 2026
Merged

alexey-milovidov merged 11 commits into
masterfrom
web-ui-terminal-icon-comment-followup

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Jul 16, 2026 •

Copy link
Copy Markdown
Member

Related: #110439

#110439 reworded the openQueryInNewTab comment, the #terminal-icon tooltip, and the getTerminalURL comment in programs/server/play.html to stop overstating macOS Ctrl+Click as a new-tab gesture (on macOS it is the secondary/context-menu click). It merged before a last review comment landed pointing out two more stale sites with the same Ctrl/Cmd/Shift+click wording: the databases-icon logo-anchor comment and the wantsNewTab comment for the terminal icon. This follow-up rewords both to the same platform-specific phrasing used everywhere else in the file: middle-click, Shift-click, or the platform's new-tab modifier click (Cmd+click on macOS, Ctrl+click elsewhere).

Addresses: #110439 (comment)

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

...

Version info

  • Merged into: 26.7.1.1180 (included in 26.7 and later)

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: #110439 (comment)
@clickhouse-gh

clickhouse-gh Bot commented Jul 16, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [0452628]

Summary: ✅


AI Review

Summary

This PR is a follow-up wording cleanup in programs/server/play.html that makes the Web UI's modifier-click comments and tooltip text match the actual browser behavior, especially the macOS Ctrl+click context-menu case. I checked the current diff plus the previously discussed nearby sites in the same file, and I did not find a remaining correctness, UX, or metadata issue that warrants a new review comment.

Final Verdict

Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label Jul 16, 2026
@alexey-milovidov

Copy link
Copy Markdown
Member Author

The only red check, Integration tests (amd_tsan, 3/6), is the known flaky test test_replicated_database/test.py::test_replicated_table_structure_alter — unrelated to this docs-only comment change in play.html.

Related: #110036
A fix is already in progress: #110145

Comment thread programs/server/play.html Resolved
Address review feedback on the terminal-icon `wantsNewTab` comment: the
logo and terminal-icon anchors rely on the browser's native handling of
`Shift+click`, which opens a new *window* rather than a new tab in
Chrome/Firefox (and browser settings can reroute new-window opens back
into tabs), so promising "a new tab" overstates it.

Reword the four native-anchor descriptions - the `terminal-icon` CSS
comment, its user-facing `title` tooltip, the `databases-icon` logo
comment, and the `wantsNewTab` comment - to "a new tab or window".

The JS-driven Web UI tab paths (`openQueryInNewTab`/`activateTab`, used
by databases-panel table rows) are left unchanged: there the code opens
an in-app tab explicitly, so "a new tab" is accurate for every gesture.

No functional change - comment/tooltip wording only.

Addresses: #110705 (comment)

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@alexey-milovidov

Copy link
Copy Markdown
Member Author

The only red check, Stress test (arm_debug), is the AST-fuzzer Logical error: Unexpected null _row_number in the Iceberg mutation path (src/Storages/ObjectStorage/DataLakes/Iceberg/Mutations.cpp:238, reached via ALTER … DELETE/UPDATE on a non-Parquet Iceberg table). It is unrelated to this docs-only play.html comment/tooltip change and reproduces independently on master and on other PRs (e.g. master runs today at 07:55 and 09:58, and PR #110721).

This is the previously-tracked bug from #87898 (closed) — the same class as the open #102508, whose fix is the open PR #105893 ("Reject Iceberg ALTER DELETE/UPDATE on non-Parquet tables"), not yet merged to master.

@groeneai, please confirm whether #105893 covers this fuzzer reproduction and advance it (or reopen #87898 if it has regressed). No action is needed on this PR — merging master will not clear the red until that fix lands.

@groeneai

Copy link
Copy Markdown
Collaborator

@alexey-milovidov Confirmed: #105893 covers this reproduction. DB::Iceberg::mutate now calls validateMutationWriteFormat(write_format) at its top (Mutations.cpp:656), throwing NOT_IMPLEMENTED for any non-Parquet write_format before the _row_number guard at Mutations.cpp:238 is reached. The ORC ALTER ... DELETE/UPDATE fuzzer path is rejected outright, so the LOGICAL_ERROR is unreachable. A per-data-file snapshot walk (validateSnapshotDataFileFormatsForMutation) inside the mutate retry loop also covers mixed-format tables (TOCTOU-safe). Regression test 04293_iceberg_mutate_non_parquet_reject added.

The bug has not regressed beyond #105893's scope, so no need to reopen #87898. The PR was 17.5k commits stale (last CI 2026-06-01); I merged master and pushed (44d6991) to re-run CI and advance it. Already approved by @ alesapin; awaiting @ PedroTadim.

Follow-up to the review nit on
#110705 (comment)
(comment #110705 (comment)).

Commit afe4fc2 reworded the user-facing native-anchor descriptions
to "a new tab or window" (the `terminal-icon` CSS comment and `title`
tooltip, the `databases-icon` logo comment, and the `wantsNewTab`
comment), because on Chrome/Firefox `Shift+click` on a real `<a>` opens
a new *window* rather than a new tab. Two internal code comments on the
same native-anchor modifier-click paths were missed:

- the `databases-icon` toggle handler comment ("Let the browser handle
  modifier clicks as a link (open in new tab)"), and
- the `terminal-icon` click handler comment ("fall through to the
  anchor's native \"open in new tab\"").

Both branches include `Shift+click`, so they carry the same new-window
caveat. Reword both to "a new tab or window" for consistency. The
JS-driven in-app Web UI tab paths (`openQueryInNewTab`/`activateTab`)
are deliberately left as "a new tab", since there the app opens an
in-app tab explicitly for every gesture.

No functional change; comment wording only.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@alexey-milovidov

Copy link
Copy Markdown
Member Author

The only red check, Stress test (amd_debug), is an unrelated flaky logical error in the Replicated database engine: Logical error: 'Digest does not match' raised by DatabaseReplicated::assertDigestWithProbability (src/Databases/DatabaseReplicated.cpp:1303) while committing a CREATE TABLE in the DDL worker (commitCreateTable → DatabaseOnDisk::createTable). This is the random stress workload, not anything touched by this docs-only play.html comment/tooltip change, which cannot affect Keeper/Replicated digest computation.

This is the known flaky class tracked by (all closed) #77233, #97479, and #85467.

I merged master to refresh the branch and re-run CI on a clean base, which should clear this flake. No action is needed on this PR.

Comment thread programs/server/play.html Resolved
alexey-milovidov and others added 3 commits July 18, 2026 07:16
…ick as a new-tab open

The `databases_toggle` click guard (`play.html:4821`) and the terminal
`wantsNewTab` predicate / `terminalIcon` click guard both return on any
`e.ctrlKey || e.metaKey || e.shiftKey`, so on macOS they also fire for
`Ctrl+click` - which is the secondary/context-menu click, not a new-tab
gesture. The comments described every guarded modifier click as
"open in a new tab or window", overstating the native-anchor modifiers this
PR set out to correct. Reword the three comments to be neutral and accurate:
they defer any modified click to the browser's native link handling - a new
tab or window for the new-tab gestures, and the context menu for macOS
`Ctrl+click`. Comment-only change, no behavior change.

Addresses: #110705 (comment)

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@alexey-milovidov

Copy link
Copy Markdown
Member Author

The two red checks on b886cba9 are both unrelated to this docs-only play.html comment/tooltip change (which touches no server, parser, or storage code) and both are master-wide flakes:

  1. Upgrade check (amd_release) — the generic Error message in clickhouse-server.log (see upgrade_error_messages.txt) test. This is a chronic upgrade-check flake that fires daily across many unrelated PRs — e.g. on 2026-07-18 alone it failed on Validate engine features before rewriting metadata on ATTACH AS REPLICATED #110863, Add unified SYSTEM STOP/PAUSE/CANCEL/REFRESH for streaming engines and materialized views #107476, Web UI: make query tabs persistent across switches #109425, Add server setting additional_memory_tracking_per_thread #104965 in addition to this PR. It is a server-log-allowlist flake in the upgrade harness, not a code change here.

  2. AST fuzzer (amd_debug) — Logical error: 'clock' (STID: 2508-3665). This reproduces independently on other master-based PRs (Lower the log level of the PK binary-search messages to Test #110324 "Lower the log level of the PK binary-search messages to Test" and Explain analyze #106586 "Explain analyze"), so it is a fuzzer flake in the random query workload, not anything reachable from this HTML comment change. There is no tracking issue for this STID yet.

@groeneai, please investigate the AST fuzzer failure Logical error: 'clock' (STID: 2508-3665) and, if it is a real bug, open a tracking issue and provide a fix in a separate PR; if a fix is already in progress, link it here.

I have merged the latest master into this branch (clean, no conflicts — the three-dot diff vs master remains exactly the play.html comment/tooltip rewords, no functional change) and pushed, so CI is re-running on a fresh base, which should clear both flakes.

Comment thread programs/server/play.html Resolved
@groeneai

Copy link
Copy Markdown
Collaborator

@alexey-milovidov Confirmed real bug, and a fix is already in progress: #110935 (open, in CI).

STID 2508-3665 is the chassert(clock) at ExecutionThreadContext.cpp:112, the same assertion reintroduced by #110668 (merged 2026-07-16). Root cause: rejectStreamingForExplainAnalyze in InterpreterExplainQuery.cpp scans only join-tree table expressions (extractTableExpressions), so a streaming read (FROM ... STREAM) nested in a WHERE/PREWHERE IN-subquery, INTERSECT, or CTE slips past the guard, reaches execution, and hits the assert (server abort in debug/sanitizer builds). The fuzzed query here is exactly that shape: a streaming read inside query_id IN (... INTERSECT ALL SELECT ... FROM system.query_log STREAM ...). Unrelated to the play.html change.

#110935 replaces the shallow scan with a full query-tree walk that rejects streaming reads anywhere in the tree; verified both directions locally (pre-fix reaches execution, post-fix returns NOT_IMPLEMENTED) with a regression test added. No separate tracking issue needed since the fix PR already exists.

…click

The `duplicateTab` helper comment in `programs/server/play.html` said the tab
duplication is triggered by a middle-click or `Ctrl/Shift/Cmd+click` on the
title. But the actual title-click handler bails out on macOS `Ctrl+click`
(the secondary/context-menu click, left to the browser) and only duplicates on
`Shift+click` or the platform's new-tab modifier click (Cmd+click on macOS,
Ctrl+click elsewhere). Reword the comment to the same platform-accurate phrasing
used elsewhere in the file, so it no longer lumps macOS `Ctrl+click` into the
new-tab/duplicate bucket. Comment-only change, no behavior change.

Addresses: #110705 (comment)

@alexey-milovidov alexey-milovidov left a comment

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.

Comment-only, trivial.

@alexey-milovidov alexey-milovidov self-assigned this Jul 19, 2026
@alexey-milovidov
alexey-milovidov added this pull request to the merge queue Jul 19, 2026
Merged via the queue into master with commit 49183f1 Jul 19, 2026
179 checks passed
@alexey-milovidov
alexey-milovidov deleted the web-ui-terminal-icon-comment-followup branch July 19, 2026 05:24
@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added the pr-synced-to-cloud The PR is synced to the cloud repo label Jul 19, 2026
zeekay pushed a commit to hanzoai/datastore that referenced this pull request Sep 11, 2026
Address review feedback on the terminal-icon `wantsNewTab` comment: the
logo and terminal-icon anchors rely on the browser's native handling of
`Shift+click`, which opens a new *window* rather than a new tab in
Chrome/Firefox (and browser settings can reroute new-window opens back
into tabs), so promising "a new tab" overstates it.

Reword the four native-anchor descriptions - the `terminal-icon` CSS
comment, its user-facing `title` tooltip, the `databases-icon` logo
comment, and the `wantsNewTab` comment - to "a new tab or window".

The JS-driven Web UI tab paths (`openQueryInNewTab`/`activateTab`, used
by databases-panel table rows) are left unchanged: there the code opens
an in-app tab explicitly, so "a new tab" is accurate for every gesture.

No functional change - comment/tooltip wording only.

Addresses: ClickHouse#110705 (comment)

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
zeekay pushed a commit to hanzoai/datastore that referenced this pull request Sep 11, 2026
Follow-up to the review nit on
ClickHouse#110705 (comment)
(comment ClickHouse#110705 (comment)).

Commit afe4fc2 reworded the user-facing native-anchor descriptions
to "a new tab or window" (the `terminal-icon` CSS comment and `title`
tooltip, the `databases-icon` logo comment, and the `wantsNewTab`
comment), because on Chrome/Firefox `Shift+click` on a real `<a>` opens
a new *window* rather than a new tab. Two internal code comments on the
same native-anchor modifier-click paths were missed:

- the `databases-icon` toggle handler comment ("Let the browser handle
  modifier clicks as a link (open in new tab)"), and
- the `terminal-icon` click handler comment ("fall through to the
  anchor's native \"open in new tab\"").

Both branches include `Shift+click`, so they carry the same new-window
caveat. Reword both to "a new tab or window" for consistency. The
JS-driven in-app Web UI tab paths (`openQueryInNewTab`/`activateTab`)
are deliberately left as "a new tab", since there the app opens an
in-app tab explicitly for every gesture.

No functional change; comment wording only.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
zeekay pushed a commit to hanzoai/datastore that referenced this pull request Sep 11, 2026
…ick as a new-tab open

The `databases_toggle` click guard (`play.html:4821`) and the terminal
`wantsNewTab` predicate / `terminalIcon` click guard both return on any
`e.ctrlKey || e.metaKey || e.shiftKey`, so on macOS they also fire for
`Ctrl+click` - which is the secondary/context-menu click, not a new-tab
gesture. The comments described every guarded modifier click as
"open in a new tab or window", overstating the native-anchor modifiers this
PR set out to correct. Reword the three comments to be neutral and accurate:
they defer any modified click to the browser's native link handling - a new
tab or window for the new-tab gestures, and the context menu for macOS
`Ctrl+click`. Comment-only change, no behavior change.

Addresses: ClickHouse#110705 (comment)

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
zeekay pushed a commit to hanzoai/datastore that referenced this pull request Sep 11, 2026
…click

The `duplicateTab` helper comment in `programs/server/play.html` said the tab
duplication is triggered by a middle-click or `Ctrl/Shift/Cmd+click` on the
title. But the actual title-click handler bails out on macOS `Ctrl+click`
(the secondary/context-menu click, left to the browser) and only duplicates on
`Shift+click` or the platform's new-tab modifier click (Cmd+click on macOS,
Ctrl+click elsewhere). Reword the comment to the same platform-accurate phrasing
used elsewhere in the file, so it no longer lumps macOS `Ctrl+click` into the
new-tab/duplicate bucket. Comment-only change, no behavior change.

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

Web UI: fix the last two stale new-tab gesture comments in play.html
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