* @ 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 ff0bf0bb31ccfbbb6d4787d1d036794fd37acd5a. * @ 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) @
Apps
Runnable DBX applications live here.
Directories
desktop/- the Vue frontend used by the Tauri desktop app and the Docker/web build.
The Tauri native shell remains in src-tauri/ because that is the conventional Tauri project location used by the existing build and release tooling.