diff --git a/GEMINI.md b/GEMINI.md index e5ae2f0..974bc1b 100644 --- a/GEMINI.md +++ b/GEMINI.md @@ -7,21 +7,37 @@ Fasto is a commercial team management system built with React (Vite) on the fron We have transitioned from a mock-based prototype to a **secure, multi-tenant production architecture**: - **Multi-Tenancy & Data Isolation:** All backend routes (Users, Teams, Attendances) now strictly enforce `tenant_id` checks. It is technically impossible for one organization to query data from another. +- **God Mode (Tenant Impersonation):** Super Admins can securely impersonate Tenant Admins via a specialized, temporary JWT (`/api/impersonate/:tenantId`). This allows seamless cross-domain support without storing passwords, while strictly maintaining state isolation through forced React reloads and locking mechanisms. +- **Dynamic Funnel Customization:** + - Funnel stages are no longer hardcoded ENUMs. Each tenant can create multiple dynamic funnels via the `funnels` and `funnel_stages` tables. + - Managers can assign specific Teams to specific Funnels. + - The Dashboard, User Detail, and Attendance Detail pages now dynamically map and color-code stages based on the active team's assigned funnel. +- **Real-Time Notification System:** + - Built a persistent notification tray (`/api/notifications`) with real-time polling (10s intervals) and a hidden HTML5 `