Skip to content

Commit

Permalink
add milestone column
Browse files Browse the repository at this point in the history
  • Loading branch information
rdonigian committed Dec 18, 2024
1 parent 08fcc6b commit 7292018
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/components/EngagementDataGrid/EngagementColumns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import { EngagementFilters } from '~/api/schema.graphql';
import {
EngagementStatusLabels,
EngagementStatusList,
LanguageMilestoneLabels,
LanguageMilestoneList,
ProgressReportStatusLabels,
ProgressReportStatusList,
ProjectStatusLabels,
Expand Down Expand Up @@ -91,6 +93,19 @@ export const EngagementColumns: Array<GridColDef<Engagement>> = [
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',
Expand Down

0 comments on commit 7292018

Please sign in to comment.