Repository navigation
Make the left panel in play.html scroll independently of the page - #102498
Conversation
The databases/tables list in the left menu now has its own vertical scrollbar instead of extending the whole page height. The menu is also sticky so it stays visible when the page is scrolled vertically due to large query results. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
|
Workflow [PR], commit [3f3ac40] Summary: ✅ AI ReviewSummaryThis PR updates ClickHouse Rules
Final Verdict
|
The table info balloons (showing size, rows, engine) had two issues after making the left panel scroll independently: - Vertical position was incorrect because the balloon lacked a proper positioning context. - Balloon was clipped at the right edge of the panel because the scroll container clips overflowing content. Switch the balloon to position: fixed with JavaScript-based positioning on mouseenter, so it escapes the overflow clipping of the scroll container. Give #main an explicit stacking context (z-index: 0) so the balloon from #menu (z-index: 1) renders above result table headers and selected cells. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
When clicking a table name or one of the balloon items (size, rows, engine) sets the query, scroll the page to the top so that the query textarea is visible. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
The balloons use position:fixed and detach from their anchors when the databases panel is scrolled. Hide them via visibility:hidden on scroll and restore on the next mouseenter.
I hope you don't mind that I pushed 0ce3f2c to address it. That's the simplest way I found, but feel free to modify it as needed |
… empty columns The `chassert(!res.empty())` assertion can fire in debug builds when `getStructureOfRemoteTableInShard` returns empty columns for a local shard. This can happen due to a race with concurrent DDL operations (e.g. REPLACE TABLE or lazy storage initialization). Restore the original defensive behavior that falls through to remote shards when the local shard returns empty columns. BuzzHouse (amd_debug) failure: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=102498&sha=0ce3f2c0db68a6f6eae31a5cf54636285b1a640c&name_0=PR&name_1=BuzzHouse%20%28amd_debug%29 PR: #102498 Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
…nt-left-panel-scroll
…nt-left-panel-scroll
Address review on #102498: the previous listener was attached to `#databases`, but `scroll` events do not bubble, so scrolls happening elsewhere (page, `#main`, or any other scroll container) left the `position: fixed` balloon detached from its anchor. Use a capture-phase listener on `document` so any scroll triggers the hide. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…nt-left-panel-scroll
…nt-left-panel-scroll
Track the most recently shown table-info balloon and hide only that one
on scroll, instead of running `querySelectorAll('.table-addendum')` and
updating every balloon on each scroll event. Only one balloon is open
at a time (the one the cursor most recently entered), so this avoids
O(N) work per scroll event when there are many tables.
…nt-left-panel-scroll
|
@alexey-milovidov investigated the hung test on this CI run. TL;DR: single transient timeout on What hungOnly one stateless test exceeded its budget: Why this is transient, not chronicCIDB over 90 days for this test:
Why amd_msan, WasmEdge specificallyIt is the slowest CI lane by an order of magnitude. For
Compare to What I recommendRetrigger the lane. The test's pass rate is 99.995% and master is clean — there is nothing deterministic to fix. If you'd still like a stabilization PR (you asked for one), the minimum-disruptive options are:
Both weaken the test's coverage slightly (option 1) or expand its CI footprint (option 2). Given the 1-in-195K rate, my preference is to do nothing; option 1 is my second choice if you want a fix. Let me know which you'd like and I'll send the PR. |
…nt-left-panel-scroll
…nt-left-panel-scroll
#main is the explicit scroll container (overflow: auto in CSS), so calling document.body.scrollTo(0, 0) is a no-op when content overflows #main. Switch to scrolling #main so clicking a table or balloon item reliably brings the query textarea back into view, as the PR description promises. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
@groeneai do a stabilization PR, option 2 with tagging the test as "long". |
|
@alexey-milovidov — opened the stabilization PR: #103718 Tags |
…nt-left-panel-scroll
…nt-left-panel-scroll
…nt-left-panel-scroll
…nt-left-panel-scroll
…nt-left-panel-scroll
…nt-left-panel-scroll
…nt-left-panel-scroll
After scrolling, a different table button can move under a stationary cursor and trigger the CSS `:hover` rule for its `.table-addendum`. Because `mouseenter` only fires on actual mouse movement, the JS that positions the balloon never runs in that case, and the balloon would appear at its un-positioned default coordinates. Address review on #102498: on scroll, set `suppress-balloons` on `body` (in addition to hiding the currently visible balloon) and clear it on the next `mousemove`. While the class is set, a higher-specificity CSS rule overrides the hover- show rule, so no balloon can appear from a hover state that the user did not establish by moving the cursor. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
@pamarcos The original report (balloon staying at the same screen position after scrolling without moving the mouse) was first addressed in The latest commit Could you re-test and let me know if the behaviour now matches what you'd expect? |
pamarcos
left a comment
There was a problem hiding this comment.
Now it works perfect according to my tests. Ship it 🚀
Adds the `long` tag to opt this test into the long-test budget, bypassing the 600s timeout that occasionally hits on the slowest CI lane (`amd_msan, WasmEdge`, ~8x slower than `amd_tsan`). Per @alexey-milovidov directive on PR ClickHouse#102498: ClickHouse#102498 (comment) Triage data: 195,745 runs over 90 days, 10 timeouts (99.995% pass rate), p99 = 404s, max passing = 563s. Pure transient timeout on the slow lane — `long` tag is the right fix per existing precedents (`01049_join_low_card_bug_long`, `01516_drop_table_stress_long`, `01443_merge_truncate_long`). No test logic changed.


The databases/tables list in the left menu now has its own vertical scrollbar instead of extending the whole page height. The menu is
position: stickyso it stays visible when the page is scrolled vertically due to large query results.The table info balloons (showing size, rows, engine) use
position: fixedwith JavaScript-based positioning so they are not clipped by the scroll container. The#menustacking context is above#mainso balloons render on top of result table headers and selected cells.Clicking a table name or a balloon item (size, rows, engine) now scrolls the page to the top so that the query textarea is visible.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
The left panel in the web UI (
play.html) now scrolls independently, stays visible when the page is scrolled, and clicking a table scrolls to the query area.Documentation entry for user-facing changes
Version info
26.5.1.286