feat: compact table counts and add count query actions - #926
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
rebase, fix CI |
|
Hi, I won’t be able to work on this today or tomorrow as I’m away from home. As soon as I’m back, I’ll continue and finish the remaining fixes. |
|
friendly ping: The red check is ours: Three fixes for the same push:
Putting the mobile title on the parent slot rather than the |
|
Hi @DevvoLazza I hope everything is ok |
|
I've been dealing with some family issues lately, but as soon as I get back on my feet, I'll be back online. |
Hi @DevvoLazza, no worries about the PR. We're a team here, so I'll take it over and move it forward. Take care, and don't worry about this one. We'll handle it from here. |
Build the count census from each provider's own getCapabilities() so the fixtures cannot claim a terminator or quote the provider does not declare. The old rows expected a trailing semicolon on Trino and OpenSearch, which both declare statementTerminator "none". Move the gate to offersCountQuery in lib/db/types.ts beside the other row-menu gates, and refuse PromQL, which arrived after this branch: its count() counts series, not rows. Keep the exact figure in the row's accessible name with an aria-label on the count span, since title is not read once the element has text. Record the withheld action in the Redis, LibreDB, Prometheus and ADDING_A_PROVIDER docs.
ce876cf to
6c68f8a
Compare
Description
Million-row catalog counts currently occupy too much space on desktop and use thousands-only formatting on mobile. Both explorers now use compact counts and offer an editable count query from the table menu.
Type of Change
Related Issue
Closes #702
Changes Made
COUNT_BIGon SQL Server, or MongoDB's count/filter document. Unsupported key grammars and derived prefix groupings receive no action.Testing
src/instrumentation.ts:32-36is covered by a POSIX permission test skipped on Windows. Linux CI must verify the required 100% gate.Environment: Windows, Node.js 24.16.0, Bun 1.4.2, LibreDB Studio 0.16.0. Browser catalog/provider data were fixtures; no live PostgreSQL/MySQL or MySQL catalog-drift verification was possible locally.
Checklist