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:
parent
a5f81fce70
commit
d684732ec8
2 changed files with 93 additions and 12 deletions
|
|
@ -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 (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue