How ludwingh28/sistemarh works
Sistema RH · Canal DTS is a web application for managing DTS sales staff, contracts, attendance, turnover, documents, and user access. Users enter through the React app, authenticate, and use domain screens that call the FastAPI API; backend services apply business rules and access PostgreSQL, with optional BI data and shared contract folders. The README documents the major capabilities; some API routes and frontend screens were not sampled, so their detailed interactions are left unverified rather than inferred.
Main entry points: App.tsx App shell · main.py FastAPI application · vendedores.py Vendor API · api.ts HTTP client
Components 24
Web client
- App shell
frontend/src/App.tsx - Session state
frontend/src/auth.tsx - HTTP client
frontend/src/api.ts - Vendor management
frontend/src/pages/Vendedores.tsx - Attendance screen
frontend/src/pages/Asistencia.tsx - Turnover screen
frontend/src/pages/Rotacion.tsx - User administration
frontend/src/pages/Usuarios.tsx - Documentation screen
frontend/src/pages/Documentacion.tsx
API and access
- Authentication
backend/app/api/v1/auth.py - Vendor API
backend/app/api/v1/vendedores.py - Attendance API
backend/app/api/v1/asistencia.py - Turnover API
backend/app/api/v1/rotacion.py - Document APIs
backend/app/api/v1/documentos.py - Permissions API
backend/app/api/v1/permisos.py - Auth dependencies
backend/app/api/deps.py - FastAPI application
backend/app/main.py
People operations
- Vendor and contracts
backend/app/models.py - Vendor imports
backend/app/services/importacion.py - Contract folders
backend/app/services/carpetas.py
Workforce insights
- Attendance rules
backend/app/services/calculos.py
Persistence and integrations
- BI database
backend/app/integrations/bi.py - RH database
backend/app/core/database.py - Shared contract files
Other components
- RH user
Connections 34
- RH user → App shell: uses
README.md - App shell → Session state: checks session
frontend/src/App.tsx - Session state → HTTP client: requests identity
frontend/src/auth.tsx - App shell → Vendor management: routes to
frontend/src/App.tsx - App shell → Attendance screen: routes to
frontend/src/App.tsx - App shell → Turnover screen: routes to
frontend/src/App.tsx - App shell → User administration: routes to
frontend/src/App.tsx - App shell → Documentation screen: routes to
frontend/src/App.tsx - Vendor management → HTTP client: calls API
- Attendance screen → HTTP client: calls API
frontend/src/pages/Asistencia.tsx - Turnover screen → HTTP client: calls API
frontend/src/pages/Rotacion.tsx - User administration → HTTP client: calls API
frontend/src/pages/Usuarios.tsx - HTTP client → FastAPI application: sends HTTP
- FastAPI application → Authentication: registers routes
backend/app/main.py - FastAPI application → Vendor API: registers routes
backend/app/main.py - FastAPI application → Attendance API: registers routes
backend/app/main.py - FastAPI application → Turnover API: registers routes
backend/app/main.py - FastAPI application → Document APIs: registers routes
backend/app/main.py - FastAPI application → Permissions API: registers routes
backend/app/main.py - Authentication → Auth dependencies: uses session checks
backend/app/api/v1/auth.py - Auth dependencies → RH database: queries
backend/app/api/deps.py - Vendor API → Vendor and contracts: reads and writes
backend/app/api/v1/vendedores.py - Vendor API → Vendor imports: delegates imports
backend/app/api/v1/vendedores.py - Vendor API → Contract folders: uses folder service
backend/app/api/v1/vendedores.py - Vendor API → Attendance rules: uses calculations
backend/app/api/v1/vendedores.py - Attendance API → Attendance rules: uses calculations
backend/app/api/v1/asistencia.py - Attendance API → BI database: reads BI data
backend/app/api/v1/asistencia.py - Attendance API → Vendor and contracts: queries records
backend/app/api/v1/asistencia.py - Vendor API → BI database: uses BI integration
backend/app/api/v1/vendedores.py - RH database → Vendor and contracts: maps models
backend/app/models.py - Contract folders → Shared contract files: manages files
- Document APIs → Contract folders: serves documents
- Turnover API → Vendor and contracts: analyzes workforce
- User administration → Permissions API: manages access