diff --git a/connect_frontend/manager-app/src/pages/DashboardPage.jsx b/connect_frontend/manager-app/src/pages/DashboardPage.jsx index 5e31b12..c13b973 100644 --- a/connect_frontend/manager-app/src/pages/DashboardPage.jsx +++ b/connect_frontend/manager-app/src/pages/DashboardPage.jsx @@ -64,10 +64,20 @@ export default function DashboardPage() { {lastUpdated && (

- Updated {lastUpdated.toLocaleTimeString()} + Refreshed {lastUpdated.toLocaleTimeString()}

)} + {stats.snapshot_taken_at && (() => { + const diffMin = Math.round((Date.now() - new Date(stats.snapshot_taken_at).getTime()) / 60_000) + const label = diffMin < 1 ? 'just now' : `${diffMin} min ago` + return ( +

+ Site data: {label} +

+ ) + })()} + {/* Pending orders */}