From 7298a4ca4c107c6387483193fcc85f84eb323efd Mon Sep 17 00:00:00 2001 From: Carson Full Date: Wed, 16 Oct 2024 08:14:51 -0500 Subject: [PATCH] Display schedule status by summary numbers, not reason The varianceExplanation reason can override the status on that object. We probably don't want that here. --- .../Dashboard/ProgressReportsWidget/ProgressReportsGrid.tsx | 2 +- .../ProgressReportsWidget/progressReportsDataGridRow.graphql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scenes/Dashboard/ProgressReportsWidget/ProgressReportsGrid.tsx b/src/scenes/Dashboard/ProgressReportsWidget/ProgressReportsGrid.tsx index ac3e1e527..08db2da3b 100644 --- a/src/scenes/Dashboard/ProgressReportsWidget/ProgressReportsGrid.tsx +++ b/src/scenes/Dashboard/ProgressReportsWidget/ProgressReportsGrid.tsx @@ -97,7 +97,7 @@ export const ProgressReportsColumnMap = { ...enumColumn(ScheduleStatusList, ScheduleStatusLabels, { orderByIndex: true, }), - valueGetter: (_, row) => row.varianceExplanation.scheduleStatus, + valueGetter: (_, row) => row.cumulativeSummary?.scheduleStatus, }, cumulativeSummary: { headerName: 'Cumulative Progress', diff --git a/src/scenes/Dashboard/ProgressReportsWidget/progressReportsDataGridRow.graphql b/src/scenes/Dashboard/ProgressReportsWidget/progressReportsDataGridRow.graphql index 9125d5d18..59d08b885 100644 --- a/src/scenes/Dashboard/ProgressReportsWidget/progressReportsDataGridRow.graphql +++ b/src/scenes/Dashboard/ProgressReportsWidget/progressReportsDataGridRow.graphql @@ -34,7 +34,6 @@ fragment progressReportsDataGridRow on ProgressReport { value } varianceExplanation { - scheduleStatus reasons { value } @@ -43,6 +42,7 @@ fragment progressReportsDataGridRow on ProgressReport { planned actual variance + scheduleStatus } teamNews { items {