feat: show vote status on jury dashboard and add logos to award-master
All checks were successful
Build and Push Docker Image / build (push) Successful in 7m47s

- Jury dashboard now shows "Submitted" badge (green) with "Edit
  Rankings" button when juror has already voted, instead of always
  showing "Vote Now" — prevents confusion about whether vote saved
- Award-master page now shows project logos next to project names
- Backend getMyAwardDetailEnhanced now returns logo URLs

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Matt
2026-04-14 13:09:34 -04:00
parent 3a6a9a2b45
commit f1955b68f9
3 changed files with 46 additions and 14 deletions

View File

@@ -818,6 +818,7 @@ export const specialAwardRouter = router({
select: {
id: true, title: true, teamName: true, description: true,
competitionCategory: true, country: true, tags: true,
logoKey: true, logoProvider: true,
},
},
},
@@ -886,12 +887,15 @@ export const specialAwardRouter = router({
}))
}
const projectsWithScores = eligibleProjects.map((e) => ({
...e.project,
evaluationScore: projectScores[e.project.id] ?? null,
}))
const projectsWithLogos = await attachProjectLogoUrls(projectsWithScores)
return {
award,
projects: eligibleProjects.map((e) => ({
...e.project,
evaluationScore: projectScores[e.project.id] ?? null,
})),
projects: projectsWithLogos,
myVotes,
isChair,
otherVotes,