From 8f091b7d7ed7e1e6d178f46167e530b3b22440ae Mon Sep 17 00:00:00 2001 From: guru_sainath Date: Fri, 14 Jun 2024 19:06:24 +0530 Subject: [PATCH] [WEB-522] chore: estimate point active cycles pending count and fixed burndown graph total issues (#4825) * chore: updated active cycles count and graph payload * chore: updated mobx observer --- web/core/components/cycles/active-cycle/productivity.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/web/core/components/cycles/active-cycle/productivity.tsx b/web/core/components/cycles/active-cycle/productivity.tsx index 2cdecca7f..04162446f 100644 --- a/web/core/components/cycles/active-cycle/productivity.tsx +++ b/web/core/components/cycles/active-cycle/productivity.tsx @@ -1,4 +1,5 @@ import { FC, Fragment, useState } from "react"; +import { observer } from "mobx-react"; import Link from "next/link"; import { observer } from "mobx-react"; import { ICycle, TCyclePlotType } from "@plane/types"; @@ -89,7 +90,7 @@ export const ActiveCycleProductivity: FC = observe {plotType === "points" ? ( - {`Pending issues - ${cycle.backlog_issues + cycle.unstarted_issues + cycle.started_issues}`} + {`Pending points - ${cycle.backlog_estimate_points + cycle.unstarted_estimate_points + cycle.started_estimate_points}`} ) : ( {`Pending issues - ${cycle.backlog_issues + cycle.unstarted_issues + cycle.started_issues}`} )} @@ -103,7 +104,7 @@ export const ActiveCycleProductivity: FC = observe distribution={completionChartDistributionData} startDate={cycle.start_date ?? ""} endDate={cycle.end_date ?? ""} - totalIssues={cycle.total_issues} + totalIssues={cycle.total_estimate_points || 0} plotTitle={"points"} /> ) : ( @@ -111,7 +112,7 @@ export const ActiveCycleProductivity: FC = observe distribution={completionChartDistributionData} startDate={cycle.start_date ?? ""} endDate={cycle.end_date ?? ""} - totalIssues={cycle.total_estimate_points || 0} + totalIssues={cycle.total_issues || 0} plotTitle={"issues"} /> )}