Raise project list limit to 5000 for admin dialogs
Build and Push Docker Image / build (push) Has been cancelled Details

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Matt 2026-02-02 23:11:43 +01:00
parent fd5e5222da
commit a3f12ed5de
4 changed files with 4 additions and 4 deletions

View File

@ -68,7 +68,7 @@ export function AdvanceProjectsDialog({
// Fetch projects in current round
const { data: projectsData, isLoading } = trpc.project.list.useQuery(
{ roundId, page: 1, perPage: 200 },
{ roundId, page: 1, perPage: 5000 },
{ enabled: open }
)

View File

@ -67,7 +67,7 @@ export function AssignProjectsDialog({
notInRoundId: roundId,
search: debouncedSearch || undefined,
page: 1,
perPage: 100,
perPage: 5000,
},
{ enabled: open }
)

View File

@ -61,7 +61,7 @@ export function RemoveProjectsDialog({
}, [open])
const { data, isLoading } = trpc.project.list.useQuery(
{ roundId, page: 1, perPage: 200 },
{ roundId, page: 1, perPage: 5000 },
{ enabled: open }
)

View File

@ -50,7 +50,7 @@ export const projectRouter = router({
hasFiles: z.boolean().optional(),
hasAssignments: z.boolean().optional(),
page: z.number().int().min(1).default(1),
perPage: z.number().int().min(1).max(100).default(20),
perPage: z.number().int().min(1).max(5000).default(20),
})
)
.query(async ({ ctx, input }) => {