Merge pull request #202 from Hestia-Homes/feature/total_propoerties

live tracker added
This commit is contained in:
Jun-te Kim 2026-03-13 11:04:25 +00:00 committed by GitHub
commit d24c2a191a
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",