Cosplayers page: sorting, pagination, and infinite scroll #86
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?
Objective
Convert the Cosplayers listing page from loading all records at once to infinite scroll with server-side pagination, and add search/sort controls.
Dependencies
Current Problem
PersonController.GetAllloads ALL people into memory viaPersonRepository.GetAllVisible()which calls.ToList()then filters client-side. No pagination, no search, no sorting.Sort Options
namep.Namecreatedp.CreatedAtalbumsp.Albums.CountDefault:
nameASC (alphabetical).Search
UI
SortFilterBar.razorfrom the Albums PR)Backend Changes
IPersonRepository/PersonRepository— addSearchQuerymethod with sort/search/pagination, push access-level filtering to SQL where possiblePersonController.GetAll— acceptPersonSearchParametersDto, return paginated resultsPersonService.GetAllAsync— acceptpage,pageSize,search,sortBy,sortAscCloses