From 1e72712eafdb000f0235f018dda568962ad9fb6a Mon Sep 17 00:00:00 2001 From: Matteo Giustini Date: Wed, 24 Jun 2026 17:18:51 +0200 Subject: [PATCH] Prima vers. dashboard --- .../src/pages/Dashboard/DashboardPage.tsx | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 frontend/src/pages/Dashboard/DashboardPage.tsx diff --git a/frontend/src/pages/Dashboard/DashboardPage.tsx b/frontend/src/pages/Dashboard/DashboardPage.tsx new file mode 100644 index 0000000..be63641 --- /dev/null +++ b/frontend/src/pages/Dashboard/DashboardPage.tsx @@ -0,0 +1,56 @@ +import { useAuthStore } from "@/store/authStore"; + +const roleLabels: Record = { + venditore: "Venditore", + valutatore: "Valutatore", + backoffice: "Backoffice", + operatore_perizie: "Operatore Perizie", + approvatore_perizie: "Approvatore Perizie", + admin: "Amministratore", +}; + +export function DashboardPage() { + const { user } = useAuthStore(); + + return ( +
+
+

Dashboard

+

+ Benvenuto, {user?.full_name} +

+
+ +
+
+
Ruolo
+
+ {roleLabels[user?.role || ""] || user?.role} +
+
+ +
+
Email
+
+ {user?.email} +
+
+ +
+
Stato
+
+
+ Attivo +
+
+
+ +
+

🚀 Sistema in sviluppo

+

+ GMG Smart Quote è in fase di sviluppo. Le funzionalità verranno abilitate progressivamente nelle milestone successive. +

+
+
+ ); +}