Repository navigation
Show table count next to opened database in Web UI - #108891
Merged
Merged
Conversation
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]>
Contributor
|
Workflow [PR], commit [e45c455] Summary: ✅
AI ReviewSummaryThis PR updates Final VerdictStatus: ✅ Approve |
Member
Author
|
Status (continue-pr re-check): this PR is merge-ready.
No code action needed — blocked solely on the stress re-run going green and on merge. |
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]>
This was referenced Jul 1, 2026
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


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):
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
26.7.1.303(included in26.7and later)