feat: enhance project search to include all criteria, add AI tag generation button

- ProjectStatesTable local search now covers country, institution, competitionCategory, geographicZone
- project-pool.ts DB search extended to institution, country, geographicZone, team member names
- AwardShortlist eligibility table gains a search input filtering by title, team, country, institution, category
- IndividualAssignmentsTable project filter extended to include country and institution
- Add "Generate AI Tags" dropdown item per row in ProjectStatesTable using tag.tagProject mutation

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-01 14:42:37 +01:00
parent dd004baf79
commit 9b3a9f6cbf
4 changed files with 68 additions and 8 deletions

View File

@@ -123,12 +123,16 @@ export const projectPoolRouter = router({
where.competitionCategory = competitionCategory
}
// Search in title, teamName, description
// Search in title, teamName, description, institution, country, geographicZone, team member names
if (search) {
where.OR = [
{ title: { contains: search, mode: 'insensitive' } },
{ teamName: { contains: search, mode: 'insensitive' } },
{ description: { contains: search, mode: 'insensitive' } },
{ institution: { contains: search, mode: 'insensitive' } },
{ country: { contains: search, mode: 'insensitive' } },
{ geographicZone: { contains: search, mode: 'insensitive' } },
{ teamMembers: { some: { user: { name: { contains: search, mode: 'insensitive' } } } } },
]
}