From 2ae0e9fdac1208dae21aaead9e7fc7772b578619 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cau=C3=AA=20Faleiros?= Date: Mon, 16 Mar 2026 14:04:05 -0300 Subject: [PATCH] docs: add n8n api integration to roadmap priority --- GEMINI.md | 39 +++++++++++++++++++++++++++------------ 1 file changed, 27 insertions(+), 12 deletions(-) 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 `