feat(tasks): add code field to BacklogTask type and all task selects

Adds `code: string | null` to BacklogTask interface and includes it in
all Prisma task.findMany selects (backlog API, stories tasks API, page
hydration routes). Updates coerceTaskPayload and test fixtures to match.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Scrum4Me Agent 2026-05-14 15:55:00 +02:00
parent 9d3235bcd8
commit 5085fac31d
9 changed files with 10 additions and 3 deletions

View file

@ -75,6 +75,7 @@ export default async function ProductBacklogPage({ params, searchParams }: Props
where: { story: { pbi: { product_id: id } } },
select: {
id: true,
code: true,
title: true,
description: true,
priority: true,

View file

@ -61,6 +61,7 @@ export default async function MobileProductBacklogPage({ params, searchParams }:
where: { story: { pbi: { product_id: id } } },
select: {
id: true,
code: true,
title: true,
description: true,
priority: true,

View file

@ -66,6 +66,7 @@ export async function GET(
orderBy: [{ sort_order: 'asc' }, { created_at: 'asc' }],
select: {
id: true,
code: true,
title: true,
description: true,
priority: true,

View file

@ -33,6 +33,7 @@ export async function GET(
orderBy: [{ sort_order: 'asc' }, { created_at: 'asc' }],
select: {
id: true,
code: true,
title: true,
description: true,
priority: true,