feat: show checklist progress on public board page

This commit is contained in:
Henry
2025-08-14 12:57:13 +01:00
parent 8c38c7c09a
commit cb80c664d9
4 changed files with 30 additions and 9 deletions

View File

@@ -303,6 +303,27 @@ export const getBySlug = async (
},
},
},
checklists: {
columns: {
publicId: true,
name: true,
index: true,
},
where: isNull(checklists.deletedAt),
orderBy: asc(checklists.index),
with: {
items: {
columns: {
publicId: true,
title: true,
completed: true,
index: true,
},
where: isNull(checklistItems.deletedAt),
orderBy: asc(checklistItems.index),
},
},
},
},
where: and(
cardIds.length > 0 ? inArray(cards.publicId, cardIds) : undefined,