How carlmors/mapa-talento-front works
MAPA TALENTO - 360 is an ETB human-resources portal with session-aware routes for employees, administrators, and emergency managers. The main workflow identifies the user, selects the authorized profile experience, and uses feature APIs to retrieve or update records. Employee capabilities include dynamic profile forms, family and education records, profile photos, and consent management; other routes support administration and census operations. The excerpts show application routing, service construction, and shared HTTP behavior; several feature internals are unsampled, so their detailed call paths are omitted.
Main entry points: App.tsx Portal router · servicios.ts Service factory · cliente.ts HTTP client · FormularioCampos.tsx Dynamic forms
Components 24
Application and session
- Portal router
src/app/App.tsx - Access screen
src/features/sesion/ui/PantallaAcceso.tsx - Session domain
src/features/sesion/domain/sesion.ts
Employee experience
- Employee profile
src/features/colaborador/ui/ExperienciaColaborador.tsx - Dynamic forms
src/features/colaborador/ui/FormularioCampos.tsx - Field definitions
src/features/colaborador/fields/tipos.ts - Family records
src/features/colaborador/familia/GrupoFamiliar.tsx - Education review
src/features/colaborador/formacion/RevisionFormacion.tsx - Profile photo
src/features/colaborador/ui/useFotoPerfil.ts - Consent management
src/features/consentimientos/ui/MisAutorizaciones.tsx - Consent policy
src/features/consentimientos/domain/politica.ts
Operational roles
- Admin panel
src/features/administrador/ui/PanelAdministrador.tsx - Census inbox
src/features/emergencia/ui/BandejaCenso.tsx
Services and transport
- Service context
src/app/ServiciosContext.tsx - Service factory
src/app/servicios.ts - Employee API
src/features/colaborador/api/httpColaboradorApi.ts - Admin API
src/features/administrador/api/httpAdministradorApi.ts - Census API
src/features/censo/api/httpCensoApi.ts - Session API
src/features/sesion/api/httpSesionApi.ts - ETB integration
src/features/sesion/api/integracionEtbApi.ts - HTTP client
src/shared/api/cliente.ts - Memory token
src/shared/api/tokenEnMemoria.ts
Other components
- Portal user
- Portal backend
Connections 25
- Portal user → Portal router: opens portal
src/app/App.tsx - Portal router → Access screen: renders access
src/app/App.tsx - Portal router → Employee profile: routes employee
src/app/App.tsx - Portal router → Consent management: routes consent
src/app/App.tsx - Portal router → Admin panel: routes admin
src/app/App.tsx - Portal router → Census inbox: routes census
src/app/App.tsx - Employee profile → Dynamic forms: renders forms
src/features/colaborador/ui/FormularioCampos.tsx - Dynamic forms → Field definitions: uses definitions
src/features/colaborador/ui/FormularioCampos.tsx - Family records → Dynamic forms: renders forms
src/features/colaborador/familia/GrupoFamiliar.tsx - Education review → Dynamic forms: renders forms
src/features/colaborador/formacion/RevisionFormacion.tsx - Consent management → Consent policy: uses policy
src/features/consentimientos/ui/MisAutorizaciones.tsx - Portal router → Service context: reads services
src/app/App.tsx - Service context → Service factory: types services
src/app/ServiciosContext.tsx - Service factory → Employee API: creates adapter
src/app/servicios.ts - Service factory → Admin API: creates adapter
src/app/servicios.ts - Service factory → Census API: creates adapter
src/app/servicios.ts - Service factory → Session API: creates adapter
src/app/servicios.ts - Service factory → ETB integration: creates integration
src/app/servicios.ts - Service factory → HTTP client: creates client
src/app/servicios.ts - Employee API → HTTP client: sends requests
src/features/colaborador/api/httpColaboradorApi.ts - Admin API → HTTP client: sends requests
src/features/administrador/api/httpAdministradorApi.ts - Census API → HTTP client: sends requests
src/features/censo/api/httpCensoApi.ts - ETB integration → HTTP client: sends requests
src/features/sesion/api/integracionEtbApi.ts - HTTP client → Memory token: reads token
src/shared/api/cliente.ts - HTTP client → Portal backend: sends HTTP
src/shared/api/cliente.ts