fix: group project files by round in admin project detail
All checks were successful
Build and Push Docker Image / build (push) Successful in 8m15s
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:
@@ -358,7 +358,11 @@ export const fileRouter = router({
|
||||
},
|
||||
},
|
||||
},
|
||||
orderBy: [{ fileType: 'asc' }, { createdAt: 'asc' }],
|
||||
orderBy: [
|
||||
{ requirement: { round: { sortOrder: 'asc' } } },
|
||||
{ fileType: 'asc' },
|
||||
{ createdAt: 'asc' },
|
||||
],
|
||||
})
|
||||
}),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user