Fix smart assignment suggestions to display juror/project names
The suggestions table was showing truncated IDs instead of actual names. Updated getSuggestions to include jurorName and projectTitle in response. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -473,7 +473,9 @@ export const assignmentRouter = router({
|
||||
// Simple scoring algorithm
|
||||
const suggestions: Array<{
|
||||
userId: string
|
||||
jurorName: string
|
||||
projectId: string
|
||||
projectTitle: string
|
||||
score: number
|
||||
reasoning: string[]
|
||||
}> = []
|
||||
@@ -521,7 +523,9 @@ export const assignmentRouter = router({
|
||||
|
||||
return {
|
||||
userId: juror.id,
|
||||
jurorName: juror.name || juror.email || 'Unknown',
|
||||
projectId: project.id,
|
||||
projectTitle: project.title || 'Unknown',
|
||||
score,
|
||||
reasoning,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user