Skip to content

Add engine-specific icons and improve table list in Play UI - #101134

Merged
alexey-milovidov merged 29 commits into
masterfrom
fix-play-table-icons
Apr 10, 2026
Merged

alexey-milovidov merged 29 commits into
masterfrom
fix-play-table-icons

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Mar 29, 2026 •

Copy link
Copy Markdown
Member

Add inline SVG icons next to table names in the Play UI sidebar, reflecting the table engine:

  • MergeTree family: table grid icon
  • SummingMergeTree/AggregatingMergeTree: capital sigma (Σ)
  • Memory: microchip
  • View: eye
  • MaterializedView: eye over table lines
  • Merge: three overlaid tables
  • Distributed: fanout (box with arrows to three boxes)
  • Proxy: arrow between two boxes

Additional improvements:

  • Balloon only appears when hovering over the table name, not the entire row
  • Balloon has a 0.1s delay before showing to avoid flicker
  • Balloon background is changed
  • Database panel limited to 25em max width; long table names truncate with ellipsis
  • Tables starting with .inner are sorted last
  • Icons are 50% opaque

Changelog category (leave one):

  • Improvement

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

Add engine-specific icons and improve table list UX in the Play UI sidebar.

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

Version info

  • Merged into: 26.4.1.791

alexey-milovidov and others added 15 commits March 29, 2026 23:12
…y UI

Previously the balloon appeared when hovering anywhere on the row, including
the empty space after the table name. Now it only appears when the pointer
is over the table name button itself, using the CSS adjacent sibling combinator.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Each table in the sidebar now shows an SVG icon to the left of its name,
reflecting the table engine:
- MergeTree family: table grid icon
- `SummingMergeTree`/`AggregatingMergeTree`: capital sigma (Σ)
- `Memory`: microchip
- `View`: eye
- `MaterializedView`: eye over table lines
- `Merge`: three overlaid tables
- `Distributed`: fanout (box with arrows to three boxes)
- `Proxy`: arrow between two boxes

Replicated and Shared prefixes are stripped before matching.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
- Sigma: fix direction to match Σ (left-to-right-to-left zigzag)
- Microchip: make body square (12x12 instead of 12x16)
- Fanout: center source box vertically to make arrows symmetric
- Merge: shadow tables offset to bottom-right instead of top-right

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
The front table with the header line is drawn last (on top) at the
top-left, and the two shadow copies peek out behind it toward the
bottom-right.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Each of the three layers is now a closed rectangle with a header line.
The tables use background-color fill so the front table properly
occludes the ones behind it, creating a clean stacked appearance.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
The block display made the button take full row width, pushing the
absolutely-positioned balloon to the far right. With inline-block
the button is only as wide as its text, so the balloon appears
right after the table name.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Uses a CSS animation with a delay so the balloon does not flash
when quickly moving the pointer across the table list.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@clickhouse-gh

clickhouse-gh Bot commented Mar 29, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [7a77531]

Summary: ✅


AI Review

Summary

This PR updates programs/server/play.html to add engine-specific table icons and table-list UX tweaks in Play UI. I found one user-facing regression: tooltip addendums can be clipped by container overflow. An equivalent inline comment is already posted by clickhouse-gh[bot], so I did not post a duplicate comment.

Findings
  • ❌ Blockers
    • [programs/server/play.html:187, 281-315] #databases { overflow: hidden; } clips absolutely-positioned .table-addendum tooltips, making long addendum text unreadable near panel boundaries.
    • Suggested fix: remove clipping from #databases (or move clipping to a narrower wrapper that does not contain tooltips), while keeping truncation on .table button.
ClickHouse Rules
Item Status Notes
Deletion logging ➖
Serialization versioning ➖
Core-area scrutiny ➖
No test removal ✅
Experimental gate ➖
No magic constants ✅
Backward compatibility ✅
SettingsChangesHistory.cpp ➖
PR metadata quality ✅
Safe rollout ⚠️ Tooltip clipping affects Play UI usability in common cases
Compilation time ✅
No large/binary files ✅
User-Lens
  • Tooltip balloon content (engine/size/rows) may be truncated when near sidebar edges, so users cannot reliably read metadata.
Final Verdict
  • Status: ⚠️ Request changes
  • Minimum required action: fix tooltip clipping caused by overflow: hidden on #databases.

@clickhouse-gh clickhouse-gh Bot added the pr-improvement Pull request with some product improvements label Mar 29, 2026
Replace display toggling and keyframe animation with opacity and
pointer-events transitions. Both showing and hiding now have a
0.1s delay, preventing flicker when moving the pointer.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
virtual StoragePtr getNested() const = 0;

String getName() const override { return "StorageProxy"; }
String getName() const override { return "Proxy"; }

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.

StorageProxy::getName is used as the system.tables.engine value for table-function-backed tables, and changing it from StorageProxy to Proxy breaks existing behavior and tests.

Concrete evidence in this PR branch:

  • tests/queries/0_stateless/02888_system_tables_with_inaccessible_table_function.reference expects StorageProxy.
  • tests/queries/0_stateless/00076_system_columns_bytes.sql filters on engine = 'StorageProxy'.

This change will regress compatibility for users/scripts that rely on the current engine name. Please keep StorageProxy here, and if you need Play UI icon mapping, handle it purely in UI mapping logic.

@clickhouse-gh

clickhouse-gh Bot commented Mar 30, 2026

Copy link
Copy Markdown
Contributor

LLVM Coverage Report

Metric Baseline Current Δ
Lines 84.10% 84.20% +0.10%
Functions 90.90% 90.90% +0.00%
Branches 76.70% 76.70% +0.00%

Changed lines: 66.67% (2/3) · Uncovered code

Full report · Diff report

Comment thread programs/server/play.html Outdated
}

/// StorageProxy - arrow between two boxes
if (e === 'StorageProxy')

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.

Just "Proxy", as we renamed it.

Comment thread programs/server/play.html Resolved

@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.

Perfect.

@pamarcos pamarcos self-assigned this Mar 31, 2026
Comment thread programs/server/play.html Resolved

@pamarcos pamarcos left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Before

Image

After

Image

@alexey-milovidov

Copy link
Copy Markdown
Member Author

Thank you! Just in case, the engine will be named Proxy, not StorageProxy.
The StorageProxy is an old mistake that I fixed in another PR.
This PR anticipates that.

@alexey-milovidov

Copy link
Copy Markdown
Member Author

The Stress test (arm_msan) failure is fixed by #101239, which should be merged first. After it is merged, please update the branch to include the fix.

Comment thread programs/server/play.html Resolved
@alexey-milovidov
alexey-milovidov merged commit 4006a2c into master Apr 10, 2026
163 of 164 checks passed
@alexey-milovidov
alexey-milovidov deleted the fix-play-table-icons branch April 10, 2026 10:13
@robot-ch-test-poll2 robot-ch-test-poll2 added the pr-synced-to-cloud The PR is synced to the cloud repo label Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-improvement Pull request with some product improvements 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