Fix smart assignment suggestions to display juror/project names
Build and Push Docker Image / build (push) Successful in 8m57s
Details
Build and Push Docker Image / build (push) Successful in 8m57s
Details
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:
parent
8cdf6c9e5e
commit
1b12aa8ccd
|
|
@ -337,10 +337,10 @@ function AssignmentManagementContent({ roundId }: { roundId: string }) {
|
||||||
/>
|
/>
|
||||||
</TableCell>
|
</TableCell>
|
||||||
<TableCell className="font-medium">
|
<TableCell className="font-medium">
|
||||||
{suggestion.userId.slice(0, 8)}...
|
{suggestion.jurorName}
|
||||||
</TableCell>
|
</TableCell>
|
||||||
<TableCell>
|
<TableCell>
|
||||||
{suggestion.projectId.slice(0, 8)}...
|
{suggestion.projectTitle}
|
||||||
</TableCell>
|
</TableCell>
|
||||||
<TableCell>
|
<TableCell>
|
||||||
<Badge
|
<Badge
|
||||||
|
|
|
||||||
|
|
@ -473,7 +473,9 @@ export const assignmentRouter = router({
|
||||||
// Simple scoring algorithm
|
// Simple scoring algorithm
|
||||||
const suggestions: Array<{
|
const suggestions: Array<{
|
||||||
userId: string
|
userId: string
|
||||||
|
jurorName: string
|
||||||
projectId: string
|
projectId: string
|
||||||
|
projectTitle: string
|
||||||
score: number
|
score: number
|
||||||
reasoning: string[]
|
reasoning: string[]
|
||||||
}> = []
|
}> = []
|
||||||
|
|
@ -521,7 +523,9 @@ export const assignmentRouter = router({
|
||||||
|
|
||||||
return {
|
return {
|
||||||
userId: juror.id,
|
userId: juror.id,
|
||||||
|
jurorName: juror.name || juror.email || 'Unknown',
|
||||||
projectId: project.id,
|
projectId: project.id,
|
||||||
|
projectTitle: project.title || 'Unknown',
|
||||||
score,
|
score,
|
||||||
reasoning,
|
reasoning,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue