Skip to content

Add engine-specific icons for tables in Play UI sidebar - #101126

Closed
alexey-milovidov wants to merge 3 commits into
masterfrom
play-table-engine-icons
Closed

alexey-milovidov wants to merge 3 commits into
masterfrom
play-table-engine-icons

Conversation

@alexey-milovidov

Copy link
Copy Markdown
Member

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. Icons are inline SVGs using currentColor so they adapt to both light and dark themes.

Changelog category (leave one):

  • Improvement

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

Show engine-specific icons next to table names in the Play UI sidebar.

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

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]>
@clickhouse-gh

clickhouse-gh Bot commented Mar 29, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [3403121]

Summary: ❌

job_name test_name status info comment
Stress test (amd_debug) failure
Logical error: Shard number is greater than shard count: shard_num=A shard_count=B cluster=C (STID: 5066-457d) FAIL cidb
Stress test (arm_tsan) failure
Logical error: No available columns (STID: 3938-33a6) FAIL cidb
Stress test (arm_msan) failure
MemorySanitizer: use-of-uninitialized-value (STID: 1003-358c) FAIL cidb
Stress test (arm_ubsan) failure
Cannot start clickhouse-server FAIL cidb
Parse failure error failure cidb
Check failed failure cidb

AI Review

Summary

This PR adds engine-specific SVG icons in play.html for table entries in the Play sidebar and keeps the fallback behavior for other engines. I did not find correctness, safety, performance, or compatibility issues in the patch itself.

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 ✅
Compilation time ✅
Final Verdict
  • Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added the pr-improvement Pull request with some product improvements label Mar 29, 2026
alexey-milovidov and others added 2 commits March 30, 2026 01:50
…e_function`

The test expected `StorageProxy` as the engine name, but the PR renamed it to `Proxy`.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
The engine `StorageProxy` reports itself as `StorageProxy` (not `Proxy`).
Fix the icon matching in play.html and revert the test reference to the
correct engine name.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant