How ensophann-sudo/wetelegram-v1 works
TPM Training Management System combines a React control center with a FastAPI/PostgreSQL backend. The main user workflow is employee setup and controlled spreadsheet import, followed by training planning, sessions, participant assignment, attendance, assessment and follow-up, OJT approval, and reporting/audit. The excerpts show only some API stages; reports, reconciliation, exports, and several workflow details are documented capabilities rather than inspected implementations. Edges below reflect visible calls and README claims, not a complete route inventory.
Main entry points: api.py API workflows · worker.py Notification worker · main.jsx Role-based UI · api.js API client
Components 20
Control center
- Role-based UI
main.jsx - API client
api.js
API and access
- FastAPI application
main.py - API workflows
api.py - Authentication and roles
security.py
Training operations
- Employee records
api.py - Import preview and approval
imports.py - Annual plan
- Training sessions
api.py - Participants
api.py - Attendance
api.py - Assessments and follow-up
- OJT workflow
api.py
Data and oversight
- Reports and reconciliation
- Audit history
audit.py - Domain records
models.py - PostgreSQL
Notifications
- Notification worker
worker.py - Telegram
Other components
- Training staff
Connections 20
- Training staff → Role-based UI: uses
README.md - Role-based UI → API client: calls
main.jsx - API client → FastAPI application: requests
api.js - FastAPI application → API workflows: registers
main.py - API workflows → Authentication and roles: checks access
api.py - API workflows → Employee records: handles
api.py - API workflows → Import preview and approval: previews
api.py - API workflows → Training sessions: creates
api.py - API workflows → Participants: assigns
api.py - API workflows → Attendance: records
api.py - API workflows → OJT workflow: submits and decides
api.py - API workflows → Audit history: logs actions
api.py - API workflows → PostgreSQL: reads and writes
api.py - Import preview and approval → PostgreSQL: stores previews
- Domain records → PostgreSQL: maps records
- Notification worker → PostgreSQL: loads queue
worker.py - Notification worker → Telegram: sends messages
worker.py - API workflows → Annual plan: supports workflow
README.md - API workflows → Assessments and follow-up: supports workflow
README.md - API workflows → Reports and reconciliation: supports reporting
README.md