How mounabsf/tunisupply works
This is a web application for managing allocation requests and commerce resources, with user roles, anomaly reports and alerts, and dashboard statistics. The main user flow runs through authenticated frontend routes to domain pages and the shared API client; the backend provides corresponding Django domain modules and data models. The graph preserves the major product areas visible in the tree and source index. Backend endpoint wiring is largely unsampled, so frontend-to-backend links are shown as unverified rather than asserted as confirmed calls.
Main entry points: api.js API client · App.jsx Routes and pages · api.py Dashboard API · models.py Reports and alerts
Components 29
Web interface
- Routes and pages
frontend/src/App.jsx - Auth provider
frontend/src/auth/AuthProvider.jsx - Auth guard
frontend/src/auth/RequireAuth.jsx - Auth context
frontend/src/auth/context.js - Navigation layout
frontend/src/components/Layout.jsx - Module registry
frontend/src/modules.js - API client
frontend/src/api.js - Request pages
frontend/src/pages/Demandes.jsx - Resource pages
frontend/src/pages/Ressources.jsx - Anomaly pages
frontend/src/pages/Anomalies.jsx - Alert pages
frontend/src/pages/Alertes.jsx - Statistics page
frontend/src/pages/Statistiques.jsx - Account pages
frontend/src/pages/Comptes.jsx - Charts
frontend/src/components/charts.jsx - Dashboard data view
frontend/src/pages/Home.jsx
Accounts and access
- Account API
comptes/api.py - Account services
comptes/services.py - Profiles and roles
comptes/models.py
Allocation and resources
- Request API
demandes/api.py - Requests and commerce
demandes/models.py - Resource API
ressources/api.py - Resource records
ressources/models.py
Anomalies and alerts
- Anomaly API
anomalies/api.py - Alert rules
anomalies/services.py - Reports and alerts
anomalies/models.py
Dashboard and statistics
- Dashboard API
dashboard/api.py - Statistics registry
dashboard/registry.py - Base sections
dashboard/sections_base.py
Other components
- User
Connections 37
- User → Routes and pages: uses
- Routes and pages → Navigation layout: renders
frontend/src/App.jsx - Routes and pages → Module registry: filters routes
frontend/src/App.jsx - Routes and pages → Auth guard: guards routes
frontend/src/App.jsx - Routes and pages → Request pages: routes to
frontend/src/App.jsx - Routes and pages → Resource pages: routes to
frontend/src/App.jsx - Routes and pages → Anomaly pages: routes to
frontend/src/App.jsx - Routes and pages → Alert pages: routes to
frontend/src/App.jsx - Routes and pages → Statistics page: routes to
frontend/src/App.jsx - Routes and pages → Account pages: routes to
frontend/src/App.jsx - Auth provider → API client: requests session
frontend/src/auth/AuthProvider.jsx - Auth provider → Auth context: provides state
frontend/src/auth/AuthProvider.jsx - Auth guard → Auth context: reads user
frontend/src/auth/RequireAuth.jsx - Navigation layout → Module registry: reads modules
frontend/src/components/Layout.jsx - Navigation layout → Auth context: reads user
frontend/src/components/Layout.jsx - Request pages → API client: uses
- Resource pages → API client: calls
frontend/src/pages/Ressources.jsx - Anomaly pages → API client: calls
frontend/src/pages/Anomalies.jsx - Alert pages → API client: calls
frontend/src/pages/Alertes.jsx - Statistics page → Charts: renders
frontend/src/pages/Statistiques.jsx - Statistics page → API client: uses
- API client → Account API: sends HTTP
- API client → Request API: sends HTTP
- API client → Resource API: sends HTTP
- API client → Anomaly API: sends HTTP
- API client → Dashboard API: sends HTTP
- Account services → Profiles and roles: updates profiles
comptes/services.py - Account services → Reports and alerts: creates inspector
comptes/services.py - Reports and alerts → Requests and commerce: references commerce and zone
anomalies/models.py - Alert rules → Reports and alerts: updates alerts
anomalies/services.py - Dashboard API → Statistics registry: uses registry
dashboard/api.py - Dashboard API → Profiles and roles: reads accounts
dashboard/api.py - Dashboard API → Requests and commerce: reads requests
dashboard/api.py - Dashboard API → Reports and alerts: reads anomalies
dashboard/api.py - Base sections → Statistics registry: registers sections
dashboard/sections_base.py - Base sections → Requests and commerce: reads requests
dashboard/sections_base.py - Dashboard data view → API client: uses