How felipe-delf/operion works
Operion is a retail-network operations platform. Staff sign in, then use permission-gated screens to manage SQL scripts and audit rules, monitor stores, run single-store or broadcast executions, manage teams, and review execution logs. The FastAPI API handles these requests, with ODBC workers reaching the central database and store SQL Servers; local application records are persisted separately. The README documents these capabilities, while some implementation paths were not sampled, so unsourced connections are omitted.
Main entry points: database.py Local application database · App.jsx React application · routes.py Scripts and execution API · auth.py Authentication API
Components 27
Staff interface
- React application
frontend/src/App.jsx - Login screen
frontend/src/components/Login.jsx - Dashboard
frontend/src/components/Dashboard.jsx - Store monitor
frontend/src/components/StoreMonitor.jsx - SQL vault
frontend/src/components/AdminScripts.jsx - Audit rules
frontend/src/components/AuditRules.jsx - Mass execution
frontend/src/components/MassExecution.jsx - Team management
frontend/src/components/Team.jsx - Execution logs
frontend/src/components/ExecutionLogs.jsx
API and access
- Authentication API
app/api/auth.py - Users API
app/api/users.py - Scripts and execution API
app/api/routes.py - Audit API
app/api/audit.py - Agent and scan API
app/api/agent.py - JWT and passwords
app/core/security.py
Store operations
- ODBC execution worker
app/services/worker.py - WMI scanner
app/services/wmi_scanner.py
Application records
- Local application database
app/core/database.py - Script records
app/models/script.py - Users and groups
app/models/user.py - Group records
app/models/user_group.py - Audit records
app/models/audit.py - PC status snapshots
app/models/agent.py - Execution records
app/models/execution_log.py
Other components
- Operations staff
- Retail central SQL
- Store SQL Servers
Connections 44
- Operations staff → React application: uses
- React application → Login screen: routes to
frontend/src/App.jsx - React application → Dashboard: routes to
frontend/src/App.jsx - React application → Store monitor: routes to
frontend/src/App.jsx - React application → SQL vault: routes to
frontend/src/App.jsx - React application → Audit rules: routes to
frontend/src/App.jsx - React application → Mass execution: routes to
frontend/src/App.jsx - React application → Team management: routes to
frontend/src/App.jsx - React application → Execution logs: routes to
frontend/src/App.jsx - Login screen → Authentication API: authenticates via
- Dashboard → Scripts and execution API: loads store data
- Store monitor → Agent and scan API: requests status
- SQL vault → Scripts and execution API: manages scripts
- Audit rules → Audit API: manages rules
- Mass execution → Scripts and execution API: starts broadcast
- Team management → Users API: manages team
- Execution logs → Scripts and execution API: requests history
- Authentication API → JWT and passwords: creates tokens
app/api/auth.py - Authentication API → Users and groups: checks accounts
app/api/auth.py - Authentication API → Group records: resolves permissions
app/api/auth.py - Authentication API → Local application database: opens session
app/api/auth.py - Users API → Local application database: opens session
app/api/users.py - Users API → Users and groups: manages users
app/api/users.py - Users API → Group records: manages groups
app/api/users.py - Scripts and execution API → Local application database: opens session
app/api/routes.py - Scripts and execution API → Script records: reads scripts
app/api/routes.py - Scripts and execution API → ODBC execution worker: dispatches execution
app/api/routes.py - Scripts and execution API → Execution records: records runs
app/api/routes.py - Scripts and execution API → Retail central SQL: lists stores
app/api/routes.py - Audit API → Local application database: opens session
app/api/audit.py - Audit API → Audit records: manages rules
app/api/audit.py - Agent and scan API → Local application database: opens session
app/api/agent.py - Agent and scan API → WMI scanner: requests scan
app/api/agent.py - Agent and scan API → ODBC execution worker: uses worker
app/api/agent.py - Agent and scan API → PC status snapshots: uses snapshots
app/api/agent.py - ODBC execution worker → Retail central SQL: queries store data
app/services/worker.py - ODBC execution worker → Store SQL Servers: executes SQL
app/services/worker.py - ODBC execution worker → Execution records: updates run state
app/services/worker.py - Local application database → Script records: persists
- Local application database → Users and groups: persists
- Local application database → Group records: persists
- Local application database → Audit records: persists
app/models/audit.py - Local application database → PC status snapshots: persists
app/models/agent.py - Local application database → Execution records: persists