Skip to content

fix(datagrid): show Table Info once a table tab's rows arrive - #3595

Merged
datlechin merged 2 commits into
mainfrom
fix/inspector-table-details-on-select
Oct 19, 2026
Merged

datlechin merged 2 commits into
mainfrom
fix/inspector-table-details-on-select

Conversation

@datlechin

@datlechin datlechin commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

Why

With the inspector open, clicking a table showed "No Row Selected" instead of its Table Info, until the pane was switched to the assistant and back. The load ran as the tab opened, returned because the rows had not arrived, and never ran again.

Change

  • Table Info loads once a table tab's rows arrive, and when the inspector comes on screen.
  • Edit Comment shows the new comment; the old numbers stay until the new ones land.
  • A late read no longer shows another schema's same-named table, and a rename keeps the numbers.
  • Filter bar suggestions follow the tab's database, not just the table name.

Verified

TrailingPaneRevealTests "Table Info shows once a table tab's rows arrive" fails on main and passes here. MainContentCoordinatorTableMetadataTests changed: it read the removed tableMetadata slot.

Screenshots

Light Dark
Before Before, light Before, dark
After After, light After, dark

Not in this PR

  • Table Info is read once per open table; after a page, sort or reload it is read on the next tab switch, as before.
  • Query tabs no longer show Table Info, as features/json-viewer.mdx describes.
  • The filter suggestion fix has no test: no seam outside SwiftUI wiring.

The inspector's Table Info load ran as a table tab opened, returned because
the rows had not arrived, and nothing ran it again when they did, so the
panel showed "No Row Selected" until the pane was switched away and back.

The load now runs from one task keyed on the tab, the table's identity,
whether its rows have arrived and whether the inspector is on screen. The
cache is the published source the inspector snapshot follows, matched on
the whole table identity. A late read is dropped only when its tab moved to
another table, never replaces a newer read, and a read across a comment
edit cannot mark the cache current. A comment edit keeps the old numbers
until the new ones land, a rename keeps them, query tabs show none, and the
filter bar's suggestions follow the tab's scope.
@datlechin datlechin added the backport release/0.82 Merged into main; pick onto release/0.82 label Oct 19, 2026
@datlechin
datlechin merged commit 2d16d11 into main Oct 19, 2026
18 checks passed
@datlechin
datlechin deleted the fix/inspector-table-details-on-select branch October 19, 2026 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport release/0.82 Merged into main; pick onto release/0.82

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant