[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
This commit is contained in:
guru_sainath 2024-06-14 19:06:24 +05:30 committed by GitHub
parent 84236f506b
commit 8f091b7d7e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,5 @@
import { FC, Fragment, useState } from "react"; import { FC, Fragment, useState } from "react";
import { observer } from "mobx-react";
import Link from "next/link"; import Link from "next/link";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
import { ICycle, TCyclePlotType } from "@plane/types"; import { ICycle, TCyclePlotType } from "@plane/types";
@ -89,7 +90,7 @@ export const ActiveCycleProductivity: FC<ActiveCycleProductivityProps> = observe
</div> </div>
</div> </div>
{plotType === "points" ? ( {plotType === "points" ? (
<span>{`Pending issues - ${cycle.backlog_issues + cycle.unstarted_issues + cycle.started_issues}`}</span> <span>{`Pending points - ${cycle.backlog_estimate_points + cycle.unstarted_estimate_points + cycle.started_estimate_points}`}</span>
) : ( ) : (
<span>{`Pending issues - ${cycle.backlog_issues + cycle.unstarted_issues + cycle.started_issues}`}</span> <span>{`Pending issues - ${cycle.backlog_issues + cycle.unstarted_issues + cycle.started_issues}`}</span>
)} )}
@ -103,7 +104,7 @@ export const ActiveCycleProductivity: FC<ActiveCycleProductivityProps> = observe
distribution={completionChartDistributionData} distribution={completionChartDistributionData}
startDate={cycle.start_date ?? ""} startDate={cycle.start_date ?? ""}
endDate={cycle.end_date ?? ""} endDate={cycle.end_date ?? ""}
totalIssues={cycle.total_issues} totalIssues={cycle.total_estimate_points || 0}
plotTitle={"points"} plotTitle={"points"}
/> />
) : ( ) : (
@ -111,7 +112,7 @@ export const ActiveCycleProductivity: FC<ActiveCycleProductivityProps> = observe
distribution={completionChartDistributionData} distribution={completionChartDistributionData}
startDate={cycle.start_date ?? ""} startDate={cycle.start_date ?? ""}
endDate={cycle.end_date ?? ""} endDate={cycle.end_date ?? ""}
totalIssues={cycle.total_estimate_points || 0} totalIssues={cycle.total_issues || 0}
plotTitle={"issues"} plotTitle={"issues"}
/> />
)} )}