Logo Lanfrica

GenACT-Africa/ENKA

Domaine:

digital infrastructure

Type de record:

software
Créateur:
Gen
Hôte:
# ENKA MVP Foundation This repository contains the backend and frontend foundation for the ENKA MVP (Admin, Coach, Governance): - Supabase/Postgres schema - Row Level Security (RLS) - Dashboard KPI/completeness views - React role-based control tower UI - Product and UX docs mapped to your wireframes ## Current Scope Implemented in SQL (`supabase/migrations/20260208214000_enka_mvp.sql`): - Multi-cluster + season lifecycle - Users + cluster memberships (ADMIN/COACH/GOVERNANCE) - Templates, contacts, comms logs - Diagnostic, Design, Check/Choose, Execute, Fortify, Fade modules - Governance approvals, disputes, meetings, resolutions - Notes, attachments, activity timeline, notifications - RLS policies for role/cluster isolation - Admin and KPI views - Auth-to-app user provisioning trigger in `supabase/migrations/20260208223000_auth_user_provisioning.sql` - Signup role propagation from auth metadata in `supabase/migrations/20260209002000_signup_role_metadata.sql` Implemented in UI (`src/`): - Auth screen (email/password) - Role-based routes for Admin, Coach, Governance - Global top bar (cluster switcher, season switcher, search, notifications) - Right-side activity timeline - Core screens: Dashboard, Cluster/Season management, Users/Memberships, Templates, Contacts, Comms Hub, Approvals, Disputes, Governance Log ## Repo Structure - `supabase/migrations/20260208214000_enka_mvp.sql`: complete MVP schema + RLS - `supabase/migrations/20260208223000_auth_user_provisioning.sql`: auth.users -> app_users sync trigger - `supabase/migrations/20260209002000_signup_role_metadata.sql`: assigns selected signup role to `app_users.global_role` - `supabase/sql/seed_admin_and_memberships.sql`: bootstrap script for first admin and sample memberships - `supabase/sql/smoke_test_queries.sql`: hosted SQL smoke checks - `src/App.jsx`: role-based app routing and data scope wiring - `src/components/AppLayout.jsx`: shared shell (top bar + side nav + activity panel) - `docs/mvp-spec.md`: prod …