feat: external lunch attendees card + dialog
Adds program.listFinalistProjects helper. Externals dialog supports both standalone and project-attached entries; manifest's external row edit-pencil opens this dialog via forwardRef. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -391,4 +391,21 @@ export const programRouter = router({
|
||||
|
||||
return { ok: true }
|
||||
}),
|
||||
|
||||
/**
|
||||
* List CONFIRMED finalist projects for a program — used by the lunch
|
||||
* externals dialog to attach an external attendee to a team.
|
||||
*/
|
||||
listFinalistProjects: adminProcedure
|
||||
.input(z.object({ programId: z.string() }))
|
||||
.query(({ ctx, input }) =>
|
||||
ctx.prisma.project.findMany({
|
||||
where: {
|
||||
programId: input.programId,
|
||||
finalistConfirmation: { status: 'CONFIRMED' },
|
||||
},
|
||||
select: { id: true, title: true },
|
||||
orderBy: { title: 'asc' },
|
||||
}),
|
||||
),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user