From c4c8b193ea6d22d1b097068f9beaa1c6ffb75209 Mon Sep 17 00:00:00 2001 From: Aditya Krishnamurthi Date: Fri, 28 Aug 2026 15:41:57 -0700 Subject: [PATCH] Fixed existing issues present in Total Org Summary --- .../HoursCompleted/HoursCompletedBarChart.jsx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/components/TotalOrgSummary/HoursCompleted/HoursCompletedBarChart.jsx b/src/components/TotalOrgSummary/HoursCompleted/HoursCompletedBarChart.jsx index 90b4238a6b3..5862a57af4a 100644 --- a/src/components/TotalOrgSummary/HoursCompleted/HoursCompletedBarChart.jsx +++ b/src/components/TotalOrgSummary/HoursCompleted/HoursCompletedBarChart.jsx @@ -56,8 +56,8 @@ export default function HoursCompletedBarChart({ isLoading, data, darkMode, comp return raw > 1 ? raw : raw * 100; }; - const taskPercentage = normalizePercentage(taskHours.submittedToCommittedHoursPercentage); - const projectPercentage = normalizePercentage(projectHours.submittedToCommittedHoursPercentage); + const taskPercentage = normalizePercentage(taskHours.percentageOfTotal); + const projectPercentage = normalizePercentage(projectHours.percentageOfTotal); const taskChangePercentage = normalizePercentage(taskHours.comparisonPercentage); const projectChangePercentage = normalizePercentage(projectHours.comparisonPercentage); const stats = [ @@ -190,6 +190,14 @@ export default function HoursCompletedBarChart({ isLoading, data, darkMode, comp const formatted = `${normalized.toFixed(1)}%`; return `${formatted} of Committed Hours Submitted (Tasks)`; })()} + + {(() => { + const raw = data.projectHours.percentageOfTotal ?? 0; + const normalized = raw > 1 ? raw : raw * 100; + const formatted = `${normalized.toFixed(1)}%`; + return ` | ${formatted} of Committed Hours (Projects)`; + })()} + {(() => { const raw = data.hoursSubmittedToTasksComparisonPercentage; if (raw === undefined || raw === null) {