From 5db3ef65053cdb176f216b94da7bb5f5a04a2bd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjell=20H=C3=A5land?= Date: Fri, 23 Feb 2024 10:54:20 +0100 Subject: [PATCH] Added missing fields to Pipetest Grid. (#871) --- libs/pipingapp/src/lib/config/tableConfig.tsx | 8 ++++---- libs/pipingshared/src/lib/types/pipetest.ts | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/libs/pipingapp/src/lib/config/tableConfig.tsx b/libs/pipingapp/src/lib/config/tableConfig.tsx index a536e3454..da0a357c1 100644 --- a/libs/pipingapp/src/lib/config/tableConfig.tsx +++ b/libs/pipingapp/src/lib/config/tableConfig.tsx @@ -127,13 +127,13 @@ const columnDefinitions: [ColDef, ...ColDef[]] = [ }, { headerName: domainNames.commIdentifier, - colId: 'commIdentifier', - valueGetter: (element) => '', // TODO: Add this once it is ready in the backend + colId: 'commissioningIdentifierCode', + valueGetter: (element) => element.data?.commissioningIdentifierCode, }, { headerName: 'MC Handover Status', colId: 'mechanicalCompletionHandoverStatus', - valueGetter: (element) => '', // TODO: Add this once it is ready in the backend + valueGetter: (element) => element.data?.mechanicalCompletionHandoverStatus, }, { headerName: domainNames.mcResponsible, @@ -143,7 +143,7 @@ const columnDefinitions: [ColDef, ...ColDef[]] = [ { headerName: domainNames.mcPhase, colId: 'mechanicalCompletionPhase', - valueGetter: (element) => '', // TODO: Add this once it is ready in the backend + valueGetter: (element) => element.data?.mechanicalCompletionPhase, }, { headerName: 'HT cables', diff --git a/libs/pipingshared/src/lib/types/pipetest.ts b/libs/pipingshared/src/lib/types/pipetest.ts index a854d1d9f..863a5b1fe 100644 --- a/libs/pipingshared/src/lib/types/pipetest.ts +++ b/libs/pipingshared/src/lib/types/pipetest.ts @@ -12,11 +12,14 @@ export type Pipetest = { mechanicalCompletionUrlId: string; mechanicalCompletionResponsible: string; mechanicalCompletionStatus: string; + mechanicalCompletionHandoverStatus: string; + mechanicalCompletionPhase: string; mechanicalCompletionId: string; commissioningPackageUrlId: string; commissioningResponsible: string; commissioningStatus: string; commissioningPackageNo: string; + commissioningIdentifierCode: string; dueDateTimePeriod: string; isOverdue: string; checklistStep: string;