feat: implement dashboard page displaying KPIs, site statistics, top items, and monthly evolution using a new PostgreSQL client.

This commit is contained in:
Michael committed 2026-03-21 00:22:14 +01:00
1 parent 7cb96966aa
commit 966b13cdf0
2 files changed
+12 -7

No files matched your search

+3 -1
View File
@@ -300,10 +300,12 @@ export default async function DashboardPage() {
try {
data = await pgGetDashboardData();
} catch (e) {
const msg = e instanceof Error ? e.message : String(e);
console.error("[Dashboard] pgGetDashboardData failed:", e);
return (
<div className="p-8 text-center">
<p className="text-sm" style={{ color: "var(--text-muted)" }}>
Impossible de charger le tableau de bord : {(e as Error).message?.slice(0, 200)}
Impossible de charger le tableau de bord : {msg.slice(0, 500)}
</p>
</div>
);