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:
@@ -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' } } } } },
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user