feat: show tasks with priority and status in unassigned stories sheet

Tasks are always visible under each story. Click a task to expand
its description.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Janpeter Visser 2026-04-26 17:49:19 +02:00
parent a5f81fce70
commit d684732ec8
2 changed files with 93 additions and 12 deletions

View file

@ -53,7 +53,10 @@ export default async function SoloProductPage({ params }: Props) {
select: {
id: true,
title: true,
_count: { select: { tasks: true } },
tasks: {
select: { id: true, title: true, description: true, priority: true, status: true },
orderBy: [{ priority: 'asc' }, { sort_order: 'asc' }],
},
},
orderBy: { sort_order: 'asc' },
}),
@ -74,7 +77,13 @@ export default async function SoloProductPage({ params }: Props) {
const unassignedStories: UnassignedStory[] = rawUnassigned.map(s => ({
id: s.id,
title: s.title,
task_count: s._count.tasks,
tasks: s.tasks.map(t => ({
id: t.id,
title: t.title,
description: t.description,
priority: t.priority,
status: t.status,
})),
}))
return (