added custom grouping on project pages
Deploy / deploy (push) Successful in 2m26s

This commit is contained in:
twotalesanimation
2026-05-20 22:43:29 +02:00
parent de59bbc0aa
commit d39b968dcb
7 changed files with 139 additions and 5 deletions
+6
View File
@@ -28,6 +28,7 @@ async function getProject(id: string) {
orderBy: { createdAt: "asc" },
include: {
artist: { select: { id: true, name: true, image: true, email: true } },
shotGroup: { select: { id: true, name: true } },
versions: {
take: 1,
orderBy: { versionNumber: "desc" },
@@ -70,6 +71,10 @@ async function getProject(id: string) {
},
},
},
shotGroups: {
orderBy: [{ sortOrder: "asc" }, { name: "asc" }],
select: { id: true, name: true },
},
},
});
}
@@ -202,6 +207,7 @@ export default async function ProjectPage({ params }: { params: Promise<{ id: st
assets={project.assets as any}
tasks={project.tasks as any}
artists={artists}
shotGroups={project.shotGroups}
canManage={!!canManage}
/>
</div>