feat(dashboard): show analytics+financial cards to owner; ground Top Sales leaderboard in real reps; fix en-US currency formatting

This commit is contained in:
Satyam Rastogi
2026-05-29 19:13:05 +05:30
parent 51f13caa64
commit a0bc7c4d34
3 changed files with 30 additions and 14 deletions
+3 -3
View File
@@ -201,8 +201,8 @@ const Dashboard = () => {
/>
</div>
{/* --- COMPANY-WIDE ANALYTICS (ADMIN) --- */}
{user?.role === 'ADMIN' && (
{/* --- COMPANY-WIDE ANALYTICS (ADMIN + OWNER) --- */}
{['ADMIN', 'OWNER'].includes(user?.role) && (
<div className="space-y-6">
{/* Section header */}
<div className="flex items-center space-x-3">
@@ -398,7 +398,7 @@ const Dashboard = () => {
</div>
<div>
<h4 className="text-zinc-900 dark:text-white font-semibold text-sm mb-0.5">{lead.propertyData.propertyAddress.split(',')[0]}</h4>
<p className="text-zinc-500 dark:text-zinc-400 text-xs">{lead.propertyData.propertyType} ${lead.propertyData.currentEstimatedMarketValue.toLocaleString()}</p>
<p className="text-zinc-500 dark:text-zinc-400 text-xs">{lead.propertyData.propertyType} Home value ${lead.propertyData.currentEstimatedMarketValue.toLocaleString('en-US')}</p>
</div>
</div>
<div className="text-right">