fix: group project files by round in admin project detail
All checks were successful
Build and Push Docker Image / build (push) Successful in 8m15s

- Sort files by round sortOrder first (via requirement.round.sortOrder)
- Admin project detail now uses grouped file view with round headers
- Files without a round requirement appear under "General" group

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-05 17:36:13 +01:00
parent 22731e7978
commit 6852278f92
2 changed files with 42 additions and 23 deletions

View File

@@ -358,7 +358,11 @@ export const fileRouter = router({
},
},
},
orderBy: [{ fileType: 'asc' }, { createdAt: 'asc' }],
orderBy: [
{ requirement: { round: { sortOrder: 'asc' } } },
{ fileType: 'asc' },
{ createdAt: 'asc' },
],
})
}),