mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-08 05:39:49 -05:00
[PR #2574] [CLOSED] feat: add pageSize persistence to ControlledDataTable #9818
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fosrl/pangolin/pull/2574
Author: @LaurenceJJones
Created: 3/1/2026
Status: ❌ Closed
Base:
main← Head:fix/pagination-pagesize-reset📝 Commits (2)
11b6f50feat: add pageSize persistence to ControlledDataTable73ae493fix: add usememo as missed tsc📊 Changes
4 files changed (+60 additions, -96 deletions)
View changed files
📝
src/components/ui/controlled-data-table.tsx(+34 -2)📝
src/components/ui/data-table.tsx(+8 -83)📝
src/hooks/useStoredColumnVisibility.ts(+6 -6)📝
src/hooks/useStoredPageSize.ts(+12 -5)📄 Description
Community Contribution License Agreement
By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.
Description
How to test?
Page sizes or column visibility across data-table and controlled-data-table are now using the same hooks for persistence to local storage, this ensures storage naming schemes across the tables stay consistent, instead of each component owning the process. When altering the page size or column visibility on any data table this should be stored within local storage to ensure navigating away or coming back stays consistent.
The only issue we will have that previous data-table local storage items will be stale and not used since the newer scheme was
datatable-${tableid}prefix, let me know if we should handle an automatic migration?🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.