Raise project list limit to 5000 for admin dialogs
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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 }
|
||||
)
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@ export function AssignProjectsDialog({
|
||||
notInRoundId: roundId,
|
||||
search: debouncedSearch || undefined,
|
||||
page: 1,
|
||||
perPage: 100,
|
||||
perPage: 5000,
|
||||
},
|
||||
{ enabled: open }
|
||||
)
|
||||
|
||||
@@ -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 }
|
||||
)
|
||||
|
||||
|
||||
@@ -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 }) => {
|
||||
|
||||
Reference in New Issue
Block a user