Show edition year instead of program name platform-wide

Change program selectors and display labels from full program name
to "2026 Edition" format across admin, jury, mentor, observer, and
public pages. Selector labels changed from "Program" to "Edition".

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-02 19:52:52 +01:00
parent 86d38ba743
commit e34cafebbf
19 changed files with 30 additions and 29 deletions

View File

@@ -106,7 +106,7 @@ export const projectRouter = router({
include: {
files: true,
round: {
select: { id: true, name: true, program: { select: { name: true } } },
select: { id: true, name: true, program: { select: { name: true, year: true } } },
},
_count: { select: { assignments: true } },
},
@@ -130,7 +130,7 @@ export const projectRouter = router({
.query(async ({ ctx }) => {
const [rounds, countries, categories, issues] = await Promise.all([
ctx.prisma.round.findMany({
select: { id: true, name: true, program: { select: { name: true } } },
select: { id: true, name: true, program: { select: { name: true, year: true } } },
orderBy: { createdAt: 'desc' },
}),
ctx.prisma.project.findMany({