diff --git a/app/components/dashboard/AdminDashboard.vue b/app/components/dashboard/AdminDashboard.vue index fa6889a..f7bd20c 100644 --- a/app/components/dashboard/AdminDashboard.vue +++ b/app/components/dashboard/AdminDashboard.vue @@ -3,242 +3,121 @@ const { getOverviewStats } = useAdmin() const { data: statsRes, pending } = useAsyncData('admin-stats', () => getOverviewStats()) -const totalReports = computed(() => - statsRes.value?.reports_by_status?.reduce((sum, item) => sum + Number(item.total), 0) || 0 -) - -const reportCountByStatus = (status: string) => - statsRes.value?.reports_by_status?.find(item => item.status === status)?.total ?? 0 - -const quickLinks = [ +const adminActions = [ { to: '/admin/reports', icon: 'it-files', - title: 'Overview segnalazioni', - text: 'Vista completa, sola lettura, con stato e distribuzione.', + label: 'Report', tone: 'primary' }, { to: '/admin/catalog', icon: 'it-list', - title: 'Categorie e team', - text: 'Gestione riferimento operativo e gruppi esterni.', + label: 'Categorie e Team', tone: 'primary' }, { to: '/admin/areas', icon: 'it-map-marker', - title: 'Aree', - text: 'Confini e copertura territoriale.', + label: 'Aree', tone: 'primary' }, { to: '/admin/users', icon: 'it-user', - title: 'Utenti', - text: 'Ruoli, stato account, ban.', + label: 'Gestione Utenti', tone: 'primary' }, { to: '/admin/moderation', icon: 'it-warning', - title: 'Moderazione abusi', - text: 'Gestione flag e contenuti segnalati.', + label: 'Moderazione Abusi', tone: 'danger' } ]