Merge pull request #203 from Hestia-Homes/main

total per projects
This commit is contained in:
Jun-te Kim 2026-03-13 11:07:11 +00:00 committed by GitHub
commit e3b4bd9604
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -93,20 +93,19 @@ export default function LiveTracker({
</div>
</Card>
{/* Total Properties */}
{/* Total Properties per Project */}
<StatCard
icon={Home}
title="Total Properties"
value={totalDeals}
title="Properties in Project"
value={currentProject?.allDeals.length ?? 0}
onClick={() =>
handleOpenTable(
"All Properties",
projects.flatMap((p) => p.allDeals),
["dealname", "landlordPropertyId", "projectCode"],
`${currentProjectCode} — All Properties`,
currentProject?.allDeals ?? [],
["dealname", "landlordPropertyId"],
{
dealname: "Address Ref.",
landlordPropertyId: "Property Ref.",
projectCode: "Project Code",
}
)
}
@ -118,7 +117,7 @@ export default function LiveTracker({
icon={AlertTriangle}
title="Awaab's Law Reporting"
value={`${majorIssues}`}
subtitle={`(${majorPercent}%)`}
subtitle={`(${majorPercent}% across all projects)`}
onClick={() =>
handleOpenTable(
"Awaab's Law Reporting",