From be8cd4d02c67e8406162b5185c5618fc4d51f80a Mon Sep 17 00:00:00 2001 From: Janpeter Visser <30029041+madhura68@users.noreply.github.com> Date: Wed, 6 May 2026 03:30:11 +0200 Subject: [PATCH] feat(ST-vi5iff4s): SoloTask-interface + Prisma-queries uitbreiden met PBI-velden (#116) pbi_code, pbi_title, pbi_description (nullable) toegevoegd aan SoloTask-interface. Desktop en mobile solo-page: story.pbi select + mapping via ?. en ?? null. Test-fixtures bijgewerkt (3 bestanden). 72 testfiles groen, tsc + build slagen. Co-authored-by: Claude Sonnet 4.6 --- __tests__/components/solo/solo-board-batch-enqueue.test.tsx | 3 +++ __tests__/components/solo/task-detail-dialog.test.tsx | 3 +++ __tests__/stores/solo-store-realtime.test.ts | 3 +++ app/(app)/products/[id]/solo/page.tsx | 4 ++++ app/(mobile)/m/products/[id]/solo/page.tsx | 4 ++++ components/solo/solo-board.tsx | 3 +++ 6 files changed, 20 insertions(+) diff --git a/__tests__/components/solo/solo-board-batch-enqueue.test.tsx b/__tests__/components/solo/solo-board-batch-enqueue.test.tsx index 392bf6e..d47242d 100644 --- a/__tests__/components/solo/solo-board-batch-enqueue.test.tsx +++ b/__tests__/components/solo/solo-board-batch-enqueue.test.tsx @@ -94,6 +94,9 @@ const TODO_TASK = { story_code: 'ST-1', story_title: 'Story 1', task_code: 'ST-1.1', + pbi_code: null, + pbi_title: null, + pbi_description: null, } const DEFAULT_PROPS = { diff --git a/__tests__/components/solo/task-detail-dialog.test.tsx b/__tests__/components/solo/task-detail-dialog.test.tsx index 3b767fc..6c56a22 100644 --- a/__tests__/components/solo/task-detail-dialog.test.tsx +++ b/__tests__/components/solo/task-detail-dialog.test.tsx @@ -65,6 +65,9 @@ const baseTask: SoloTask = { story_code: 'ST-100', story_title: 'Test Story', task_code: 'ST-100.1', + pbi_code: null, + pbi_title: null, + pbi_description: null, } const DEFAULT_PROPS = { diff --git a/__tests__/stores/solo-store-realtime.test.ts b/__tests__/stores/solo-store-realtime.test.ts index f61a7f8..2047a77 100644 --- a/__tests__/stores/solo-store-realtime.test.ts +++ b/__tests__/stores/solo-store-realtime.test.ts @@ -17,6 +17,9 @@ const baseTask = (id: string, overrides: Partial = {}): SoloTask => ({ story_code: 'ST-100', story_title: 'Original Story', task_code: 'ST-100.1', + pbi_code: null, + pbi_title: null, + pbi_description: null, ...overrides, }) diff --git a/app/(app)/products/[id]/solo/page.tsx b/app/(app)/products/[id]/solo/page.tsx index 868e579..6c03d5b 100644 --- a/app/(app)/products/[id]/solo/page.tsx +++ b/app/(app)/products/[id]/solo/page.tsx @@ -46,6 +46,7 @@ export default async function SoloProductPage({ params }: Props) { code: true, title: true, tasks: { select: { id: true }, orderBy: { sort_order: 'asc' } }, + pbi: { select: { code: true, title: true, description: true } }, }, }, }, @@ -86,6 +87,9 @@ export default async function SoloProductPage({ params }: Props) { story_code: t.story.code, story_title: t.story.title, task_code: t.code, + pbi_code: t.story.pbi?.code ?? null, + pbi_title: t.story.pbi?.title ?? null, + pbi_description: t.story.pbi?.description ?? null, })) const unassignedStories: UnassignedStory[] = rawUnassigned.map(s => ({ diff --git a/app/(mobile)/m/products/[id]/solo/page.tsx b/app/(mobile)/m/products/[id]/solo/page.tsx index ce8aa19..132e980 100644 --- a/app/(mobile)/m/products/[id]/solo/page.tsx +++ b/app/(mobile)/m/products/[id]/solo/page.tsx @@ -51,6 +51,7 @@ export default async function MobileSoloProductPage({ params }: Props) { code: true, title: true, tasks: { select: { id: true }, orderBy: { sort_order: 'asc' } }, + pbi: { select: { code: true, title: true, description: true } }, }, }, }, @@ -91,6 +92,9 @@ export default async function MobileSoloProductPage({ params }: Props) { story_code: t.story.code, story_title: t.story.title, task_code: t.code, + pbi_code: t.story.pbi?.code ?? null, + pbi_title: t.story.pbi?.title ?? null, + pbi_description: t.story.pbi?.description ?? null, })) const unassignedStories: UnassignedStory[] = rawUnassigned.map(s => ({ diff --git a/components/solo/solo-board.tsx b/components/solo/solo-board.tsx index 0dd6fa2..24b5cdf 100644 --- a/components/solo/solo-board.tsx +++ b/components/solo/solo-board.tsx @@ -32,6 +32,9 @@ export interface SoloTask { story_code: string | null story_title: string task_code: string | null + pbi_code: string | null + pbi_title: string | null + pbi_description: string | null } export interface SoloBoardProps {