Skip to content

Commit

Permalink
Add a Delivery Date field to Cohorts table (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
qu8n authored Mar 21, 2024
1 parent 21a265b commit 2e8ca2a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 0 additions & 1 deletion frontend/src/pages/cohorts/CohortsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ export default function CohortsPage() {
{
hasCohortCompleteCohortCompletesOptions2: {
sort: [{ date: SortDirection.Desc }],
limit: 1,
},
} as CohortCompleteOptions
}
Expand Down
8 changes: 7 additions & 1 deletion frontend/src/shared/helpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,13 @@ export const CohortsListColumns: ColDef[] = [
sortable: false,
},
{
headerName: "Cohort Complete Date",
headerName: "Delivery Date",
valueGetter: ({ data }) =>
data["hasCohortCompleteCohortCompletes"]?.slice(-1)[0]?.date,
sortable: false,
},
{
headerName: "Complete Date",
valueGetter: ({ data }) =>
data["hasCohortCompleteCohortCompletes"][0]?.date,
sortable: false,
Expand Down

0 comments on commit 2e8ca2a

Please sign in to comment.