Skip to content

Show table count next to opened database in Web UI - #108891

Merged
alexey-milovidov merged 1 commit into
masterfrom
web-ui-database-table-count
Jun 30, 2026
Merged

alexey-milovidov merged 1 commit into
masterfrom
web-ui-database-table-count

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Jun 30, 2026 •

Copy link
Copy Markdown
Member

When a database is expanded in the database panel of the Web UI (play.html), the number of tables is now shown in parentheses next to the database name, e.g. default (123).

The count is rendered in non-bold, muted text so it does not compete with the database name (which is bold for the current database), and it is removed when the database is collapsed.

Changelog category (leave one):

  • Improvement

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

Show the number of tables in parentheses next to a database name when it is expanded in the database panel of the Web UI.

Version info

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

When a database is expanded in the database panel of the Web UI
(`play.html`), display the number of tables in parentheses next to the
database name, e.g. `default (123)`. The count is rendered in non-bold,
muted text so it does not compete with the database name (which is bold
for the current database). The count is removed when the database is
collapsed.

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

clickhouse-gh Bot commented Jun 30, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [e45c455]

Summary: ✅


AI Review

Summary

This PR updates programs/server/play.html to append a muted table-count span to an expanded database row and remove it when the row is collapsed. I did not find correctness, safety, or metadata issues that warrant inline comments.

Final Verdict

Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added the pr-improvement Pull request with some product improvements label Jun 30, 2026

@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

Status (continue-pr re-check): this PR is merge-ready.

  • Reviews: AI Review verdict is ✅ Approve and @pamarcos has APPROVED (with before/after screenshots). 0 unresolved review threads.
  • Sole CI red: Stress test (amd_asan_ubsan) → Logical error: Can't extract iceberg table state from storage snapshot for table location A (STID: 2606-4a47). This is the known OPEN issue Logical error: Can't extract iceberg table state from storage snapshot for table location A (STID: 2606-4a47) #102037 (the CI summary itself links it). Its CIDB query (pull_request_number = 0 OR base_ref IN ('master')) shows it fires on master directly and across many unrelated PRs — an AST-fuzzer StorageMerge→Iceberg-snapshot bug, entirely unrelated to this JS/HTML/CSS-only play.html change. The failed stress job has been re-run (it is currently still in progress).
  • No re-merge: branch is behind master by 157 commits, but merge-base is from today (07:03Z, < 1 day) with no conflicts (MERGEABLE), and the red is master-wide/not master-fixable.

No code action needed — blocked solely on the stress re-run going green and on merge.

@alexey-milovidov
alexey-milovidov added this pull request to the merge queue Jun 30, 2026
Merged via the queue into master with commit 895a9e7 Jun 30, 2026
343 of 344 checks passed
@alexey-milovidov
alexey-milovidov deleted the web-ui-database-table-count branch June 30, 2026 21:00
@robot-ch-test-poll robot-ch-test-poll added the pr-synced-to-cloud The PR is synced to the cloud repo label Jun 30, 2026
alexey-milovidov added a commit that referenced this pull request Jul 1, 2026
…-arrow-nav

Resolve the conflict in `programs/server/play.html` between this branch's
keyboard-navigation work and master's Web UI changes that landed in the same
area (`#108891` table count, `#108941` horizontal-scroll fix).

Both branches independently extracted the result-table cell-selection logic
into a `_selectCell` method, so the merge left two definitions. Keep master's
`_selectCell` (it additionally focuses the cell with `td.focus({ preventScroll:
true })` and manages a roving `tabindex`, which fixes the horizontal-scroll
reset from `#108941`) and drop this branch's duplicate, which was a strict
subset. The result-table keydown handler is attached to the host element and
reads `_current_selected_cell`, so master's per-cell focus composes correctly
with the arrow-key navigation added here. At the arrow-move call site, keep
master's `cell.removeAttribute('tabindex')` before `_selectCell(new_cell)` to
maintain the roving tabindex.

All of master's additions (`.database-table-count`, `td:focus { outline: none }`,
the table-count feature in `loadTables`/`loadDatabases`) and all of this
branch's features (database-panel arrow navigation, focused-row balloon,
toolbar/theme keyboard access, download-menu tab sequence) are preserved.

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
…table-count

Show table count next to opened database in Web UI
zeekay pushed a commit to hanzoai/datastore that referenced this pull request Sep 11, 2026
…-arrow-nav

Resolve the conflict in `programs/server/play.html` between this branch's
keyboard-navigation work and master's Web UI changes that landed in the same
area (`ClickHouse#108891` table count, `ClickHouse#108941` horizontal-scroll fix).

Both branches independently extracted the result-table cell-selection logic
into a `_selectCell` method, so the merge left two definitions. Keep master's
`_selectCell` (it additionally focuses the cell with `td.focus({ preventScroll:
true })` and manages a roving `tabindex`, which fixes the horizontal-scroll
reset from `ClickHouse#108941`) and drop this branch's duplicate, which was a strict
subset. The result-table keydown handler is attached to the host element and
reads `_current_selected_cell`, so master's per-cell focus composes correctly
with the arrow-key navigation added here. At the arrow-move call site, keep
master's `cell.removeAttribute('tabindex')` before `_selectCell(new_cell)` to
maintain the roving tabindex.

All of master's additions (`.database-table-count`, `td:focus { outline: none }`,
the table-count feature in `loadTables`/`loadDatabases`) and all of this
branch's features (database-panel arrow navigation, focused-row balloon,
toolbar/theme keyboard access, download-menu tab sequence) are preserved.

Co-Authored-By: Claude Opus 4.8 (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 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