21 Commits
Author SHA1 Message Date
Jeff 240039f48d fix(grid): keep unpaginated query results on a single page 2026-10-14 14:05:31 +08:00
lxk955 d58a79d6c8 feat(grid): allow load all to exceed the per-request row cap
Closes #10752
2026-10-05 23:58:49 +08:00
zipg 237064f9e3 fix(grid): budget large-value previews by segment and show executed SQL 2026-09-30 00:59:18 +08:00
zipg 35d624764f feat(grid): load all remaining rows with confirmation guard 2026-09-24 12:53:00 +08:00
t8y2 8897e12714 test: drop source-text assertion tests and merge locale checks 2026-09-23 22:10:06 +08:00
jearhe a751b5690b fix(grid): lift row cap on table data pagination 2026-09-01 12:16:26 +08:00
Lan-zk 73a7b3f2c7 feat(es): paginate past 10k documents via pit and search_after 2026-08-30 03:57:03 +08:00
zipg 45fb7fb7e6 fix(grid): move total row count refresh into the total label
Refs: #7520
2026-08-30 03:05:10 +08:00
Diego Fabricio c0abc26fe8 fix(grid): allow rerunning exact total row count from status 2026-08-28 11:12:41 +08:00
t8y2 69e5e81071 fix(grid): preserve exact totals beyond the result row limit
Closes #6786
2026-08-20 14:26:52 +00:00
t8y2 be3336c1ec fix(sqlserver): keep data results interactive with messages
Closes #5967
2026-08-13 12:00:40 +00:00
Melody Ruch a0354726b1 fix(grid): detect exact LIMIT row bounds safely 2026-08-13 16:04:23 +08:00
zipg 658e3d16ad fix(frontend): guard startup and loading shortcuts 2026-08-03 16:57:26 +08:00
Freedom 8f3fd0ebfb fix(mongo): stabilize estimated-total pagination 2026-07-31 14:51:25 +08:00
zipg 234f26ada8 fix(grid): stop infinite scroll at exact total 2026-07-29 00:59:37 +08:00
Guoyu Su 3da4dd5ff9 fix(mongodb): avoid exact count for unfiltered queries 2026-07-25 19:40:09 +08:00
zipg 81e23ab870 fix(export): preserve local query result constraints 2026-07-21 21:31:17 +08:00
Abeautifulsnow 0901f176b0 fix(grid): preserve current page on data refresh instead of resetting to page 1
* @
fix(grid): preserve current page on data refresh instead of resetting to page 1

When refreshing table data (toolbar button, Ctrl+R, or auto-refresh), the
offset was hardcoded to 0, causing pagination to always jump back to the
first page. This was frustrating for users viewing later pages.

Use the current page offset (currentPage - 1) * pageSize so the user
stays on the same page after refresh. In infinite-scroll mode, the
offset still evaluates to 0 because resetInfiniteScrollState() sets
currentPage = 1, so behavior is unchanged.
@

* @
fix(grid): auto-redirect to last page when refreshed page no longer exists

Extends the refresh pagination fix with a safety net: when data is deleted
while viewing a later page (e.g. page 5 with only 2 pages remaining), the
grid auto-navigates to the last available page instead of showing an empty
page.

Uses a transient isRefreshingData flag to distinguish refresh/rollback
from normal pagination navigation, avoiding false triggers.
@

* Revert "@"

This reverts commit ff0bf0bb31.

* @
fix(grid): auto-redirect to last page when refreshed page no longer exists

When data is deleted while viewing a later page, the grid now auto-navigates
to the last available page instead of showing an empty page.

Uses a transient isRefreshingData flag to distinguish refresh/rollback
from normal pagination, and a loading-transition watcher (true->false)
placed after displayedTotalRowCount declaration to avoid TDZ errors.
@

* @
test(grid): add pagination offset-preservation and auto-redirect tests

Cover the two new behaviors added to DataGrid.vue:

1. dataGridPagination.test.ts — auto-redirect page calculation:
   - page beyond last page after data deletion → triggers redirect
   - page still valid → no redirect
   - fewer rows than one page → redirects to page 1
   - total=0 / total=undefined → guard prevents redirect

2. useDataGridActions.test.ts — offset preserved on reload:
   - onReloadData(offset=400) passes offset=400 to build-table-select-sql
   - resultPageOffset stored as 400 (not reset to 0)
@
2026-07-08 13:28:36 +08:00
t8y2 7e7c4944e9 refactor(desktop): organize lib modules by domain 2026-07-04 13:53:52 +08:00
t8y2 fabf2172e4 chore: migrate test runner from node:test/tsx to vitest
155 files, 1091 tests, 4.3s (2x faster than previous 9.1s).
2026-06-08 01:17:27 +08:00
t8y2 fecefb1589 fix(grid): refine total row counting 2026-06-06 11:13:47 +08:00