feat(ST-vi5iff4s): SoloTask-interface + Prisma-queries uitbreiden met PBI-velden
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 <noreply@anthropic.com>
This commit is contained in:
parent
d819d29b04
commit
0cbb0c5a42
6 changed files with 20 additions and 0 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
|
|
@ -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 = {
|
||||
|
|
|
|||
|
|
@ -17,6 +17,9 @@ const baseTask = (id: string, overrides: Partial<SoloTask> = {}): SoloTask => ({
|
|||
story_code: 'ST-100',
|
||||
story_title: 'Original Story',
|
||||
task_code: 'ST-100.1',
|
||||
pbi_code: null,
|
||||
pbi_title: null,
|
||||
pbi_description: null,
|
||||
...overrides,
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -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 => ({
|
||||
|
|
|
|||
|
|
@ -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 => ({
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue