mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 12:41:04 +00:00
The footer offered a fixed <select> of 5/10/25/50, so a table could not be paged in anything larger without a code change. Replace it with a Mantine Autocomplete: the presets go up to 500, and any other size can be typed. A typed value is clamped to [1, MAX_PAGE_SIZE] on commit, with MAX_PAGE_SIZE set to 500 to match @Max on the freight API's PaginationQueryDto and MAX_PAGE_SIZE in its pagination.util. Raising it here alone would turn the top preset into a 400. Changing the size also resets to the first page -- page 12 of 50-row pages does not exist once the page holds 500, and a manual-pagination consumer would happily request it. Done as one setPagination call so consumers see a single fetch rather than two.