Skip to content

feat(server-dashboard): size saved query tiles, show the rows that fit, and keep a refresh asked for during one - #4800

Merged
datlechin merged 2 commits into
mainfrom
feat/dashboard-saved-query-resize
Dec 1, 2026
Merged

datlechin merged 2 commits into
mainfrom
feat/dashboard-saved-query-resize

Conversation

@datlechin

@datlechin datlechin commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Saved Query tiles get a Size submenu (Tile Options and the context menu): Small 1x1, Medium 2x1, Large 2x2, Extra Large 4x2 grid cells, the sizes of a Mac desktop widget. Kept per tile with the layout; a layout from an older build loads every tile Small, and the previous stable ignores the key.
  • DashboardTileGridLayout replaces the LazyVGrid, which cannot span. Tiles go in their stored order without back-filling, so reading order, VoiceOver order and Move stay the tile order. A tile wider than the panel takes every column and keeps its height.
  • A table tile shows the rows that fit it instead of a fixed 5, with the row count under them. The tile keeps up to 40 rows, so a resize needs no new fetch. No vertical scroll inside a tile, since the tiles already scroll vertically (HIG, Scroll views). A legacy horizontal scroller's height is held back, and the horizontal scroller now shows.
  • A table tile no longer draws past its frame when it has a row count and a footer.
  • A cell holding CR, CRLF, U+2028 or U+0085 shows its whole first line joined with the rest, not just the first line.
  • Tiles drag as a private type (com.tablepro.dashboard-tile), so text dragged in from another app no longer lights a tile's drop outline, and a tile dropped in another app is no longer its UUID as text.
  • In one column the move commands read Move Up / Move Down. The context menu hides a move that cannot run; the Tile Options menu dims it.
  • Refresh Now (the toolbar button and the Refresh command) and the refresh after Terminate or Cancel Query were dropped while a pass ran. They now run once it ends, in their own task. A cycle restarted by an interval change, Off or the window showing again waits for the pass still finishing instead of skipping its first one. A request made while the window hid runs when it shows again. The Refresh Now button stays enabled during a pass.
  • Tests updated on purpose: DashboardTileDisplayTests.tableCells (rows kept go from 5 to 40, hiddenRowCount gone). DashboardTileSessionTurnTests moved its fixture to Helpers/ServerDashboardFixture.swift.
Before After
Before, light After, light
Before, dark After, dark

Docs: TableProApp/docs#336

Test plan

  • DashboardTileLayoutTests (new): column count, span placement, no back-fill, clamping, rows that fit with and without the row count and a legacy scroller.
  • DashboardTileDisplayTests: size decode from old and newer layouts, every line break, the drag type declared in Info.plist.
  • DashboardTileBoardTests, ServerDashboardTileStorageTests: size persists, runs nothing, keeps the result.
  • ServerDashboardViewModelTests: Refresh Now during a pass, after turning Off, an interval change during a pass, a request left while hidden (paused or not), leaving right after showing, and a cycle restarted under a running Refresh Now.
  • All dashboard suites pass locally; shots rendered from the real DashboardTilesView.

Fixes #4632

@datlechin
datlechin merged commit f691d54 into main Dec 1, 2026
19 of 21 checks passed
@datlechin
datlechin deleted the feat/dashboard-saved-query-resize branch December 1, 2026 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Capability to resize the table in Saved Queries in Server Dashboard

1 participant