updates on the kpi card design
This commit is contained in:
@@ -393,40 +393,35 @@ export default function ProfitabilityReport() {
|
|||||||
label: 'Riders Active',
|
label: 'Riders Active',
|
||||||
color: BRAND,
|
color: BRAND,
|
||||||
icon: MdPerson,
|
icon: MdPerson,
|
||||||
value: stats?.activeRiders ?? 0,
|
value: stats?.activeRiders ?? 0
|
||||||
detail: `${stats?.profitableRiders ?? 0} in profit · ${stats?.lossRiders ?? 0} at loss`
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'planned-kms',
|
key: 'planned-kms',
|
||||||
label: 'Planned KMs',
|
label: 'Planned KMs',
|
||||||
color: '#0ea5e9',
|
color: '#0ea5e9',
|
||||||
icon: MdRoute,
|
icon: MdRoute,
|
||||||
value: `${(stats?.totalPlannedKms ?? 0).toFixed(1)} km`,
|
value: `${(stats?.totalPlannedKms ?? 0).toFixed(1)} km`
|
||||||
detail: 'Solver-planned distance'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
key: 'rider-kms',
|
|
||||||
label: 'Rider KMs',
|
|
||||||
color: BRAND,
|
|
||||||
icon: MdStraighten,
|
|
||||||
value: `${(stats?.totalKms ?? 0).toFixed(1)} km`,
|
|
||||||
detail: 'Billed to riders'
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'actual-kms',
|
key: 'actual-kms',
|
||||||
label: 'Actual KMs',
|
label: 'Actual KMs',
|
||||||
color: '#f59e0b',
|
color: '#f59e0b',
|
||||||
icon: MdMyLocation,
|
icon: MdMyLocation,
|
||||||
value: `${(stats?.totalActualKms ?? 0).toFixed(1)} km`,
|
value: `${(stats?.totalActualKms ?? 0).toFixed(1)} km`
|
||||||
detail: 'GPS-tracked distance'
|
},
|
||||||
|
{
|
||||||
|
key: 'rider-kms',
|
||||||
|
label: 'Rider KMs',
|
||||||
|
color: BRAND,
|
||||||
|
icon: MdStraighten,
|
||||||
|
value: `${(stats?.totalKms ?? 0).toFixed(1)} km`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'total-distance',
|
key: 'total-distance',
|
||||||
label: 'Total Distance',
|
label: 'Trip KMs',
|
||||||
color: '#10b981',
|
color: '#10b981',
|
||||||
icon: MdStraighten,
|
icon: MdStraighten,
|
||||||
value: `${(stats?.totalKms ?? 0).toFixed(1)} km`,
|
value: `${(stats?.totalKms ?? 0).toFixed(1)} km`
|
||||||
detail: 'Cumulative travel distance'
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -467,9 +462,6 @@ export default function ProfitabilityReport() {
|
|||||||
color={item.color}
|
color={item.color}
|
||||||
loading={isLoadingDeliveries}
|
loading={isLoadingDeliveries}
|
||||||
/>
|
/>
|
||||||
<Typography variant="caption" sx={{ color: DT.textSecondary, display: 'block', mt: 0.5, px: 2, fontWeight: 500 }}>
|
|
||||||
{item.detail}
|
|
||||||
</Typography>
|
|
||||||
</Grid>
|
</Grid>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
|
|||||||
Reference in New Issue
Block a user