Patente Master Admin Dashboard is a complete, production-ready admin panel built to manage and monitor the Patente Master mobile learning app. It was developed as a companion web application using React (Vite) on the frontend and a Supabase-backed Express/serverless API layer on the backend, sharing the same live PostgreSQL database used by the Flutter mobile app.
Key features implemented:
- Secure Admin Authentication — Supabase Auth login restricted to accounts flagged as admin (profiles.is_admin = true), with backend middleware verifying every protected request using a service-role Supabase client (kept fully server-side, never exposed to the browser).
- Executive Dashboard — A real-time overview showing 9+ live KPI cards (Daily/Monthly Active Users, New Registrations, Returning Users, Average Quiz Score, Completion Rate, Study Hours, Videos Watched, Total Transactions), a User Growth line chart, a Revenue Overview bar chart, a Top Categories completion-rate breakdown, a live event-activity feed, and a Free-vs-Premium user donut chart — all pulling live, aggregated data directly from Supabase.
- Content & Learning Management — Full CRUD interfaces for managing quiz categories, chapters (including video URLs), and quiz questions (with multiple-choice options, correct answers, and explanations), fully synced with what the mobile app displays to real users.
- User Management — A searchable, filterable user table showing verification status and subscription plan with colored status badges, supporting create/edit/delete actions.
- Revenue & Subscription Tracking — A dedicated page tracking active subscriptions, payment history, and a grace-period pipeline for failed payments.
- Event Analytics Layer — A custom-built events table and live feed tracking key user actions (quiz started/completed, video watched, upgrade clicked, payment failed) to support product analytics.
- Multi-Language Support — Full i18n coverage across all 5 languages already supported by the mobile app (Italian, English, German, French, Spanish), with instant, reactive language switching available both pre- and post-login.
- Polished, Themed UI — A fully responsive, mobile-friendly interface built on a customized commercial admin-dashboard theme, including a collapsible sidebar with submenus, light/dark mode, a global search bar, and a "Quick Access" navigation popup.
- Production Deployment — Deployed live on Vercel, with the Express backend converted into serverless functions and all Supabase credentials managed securely via environment variables.
Throughout development, significant debugging and QA work was carried out to resolve real production issues, including Supabase Auth configuration errors (Google OAuth callback failures, email-confirmation logic), session-handling race conditions, database trigger bugs, and responsive-layout fixes — resulting in a stable, fully functional, live admin system actively connected to real user data.