From 7292018b2f66e8fdbd86843fca89eb907f63dcfb Mon Sep 17 00:00:00 2001 From: Rob Donigian Date: Wed, 18 Dec 2024 16:32:08 -0500 Subject: [PATCH] add milestone column --- .../EngagementDataGrid/EngagementColumns.tsx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/components/EngagementDataGrid/EngagementColumns.tsx b/src/components/EngagementDataGrid/EngagementColumns.tsx index 34d7f8e82d..f7dd495ba9 100644 --- a/src/components/EngagementDataGrid/EngagementColumns.tsx +++ b/src/components/EngagementDataGrid/EngagementColumns.tsx @@ -10,6 +10,8 @@ import { EngagementFilters } from '~/api/schema.graphql'; import { EngagementStatusLabels, EngagementStatusList, + LanguageMilestoneLabels, + LanguageMilestoneList, ProgressReportStatusLabels, ProgressReportStatusList, ProjectStatusLabels, @@ -91,6 +93,19 @@ export const EngagementColumns: Array> = [ hideable: false, serverFilter: (value): EngagementFilters => ({ engagedName: value }), }, + { + headerName: 'Milestone', + field: 'milestoneReached', + ...enumColumn(LanguageMilestoneList, LanguageMilestoneLabels), + width: 130, + valueGetter: (_, row) => { + if (row.__typename !== 'LanguageEngagement') { + return null; + } + + return row.milestoneReached.value; + }, + }, { headerName: 'Type', field: 'project.type',