How muskan-773/opsflow works
OpsFlow is a team-scoped operations-work platform. Users sign in, view team dashboards and work items, then create, assign or claim, update, comment on, and move items through approval and resolution; the backend enforces roles and concurrency rules. Mutations also record activity and enqueue transactional outbox jobs for background processing. The graph reflects README-documented capabilities where source excerpts are incomplete; dashed links mark documented but unsampled relationships.
Main entry points: App.jsx React application · client.js API client · work_items.py Work item workflows · DashboardPage.jsx Dashboard view
Components 25
Web client
- React application
frontend/src/App.jsx - Session context
frontend/src/context/AuthContext.jsx - API client
frontend/src/api/client.js - Login page
frontend/src/pages/LoginPage.jsx - Dashboard view
frontend/src/pages/DashboardPage.jsx - Work item list
frontend/src/pages/WorkItemsPage.jsx - Item creation
frontend/src/pages/CreateItemPage.jsx - Item detail
frontend/src/pages/WorkItemDetailPage.jsx - Status displays
frontend/src/components/States.jsx - Item badges
frontend/src/components/Badges.jsx
API and domain
- FastAPI application
backend/app/main.py - Authentication routes
backend/app/routes/auth.py - JWT and password auth
backend/app/auth.py - Work item routes
backend/app/routes/work_items.py - Work item workflows
backend/app/services/work_items.py - Role permissions
backend/app/permissions.py - Dashboard routes
backend/app/routes/dashboard.py - Dashboard queries
backend/app/services/dashboard.py - Activity logging
backend/app/activity.py
Persistence
- Session and transactions
backend/app/database.py - Domain and job models
backend/app/models.py - PostgreSQL
Async processing
- Outbox enqueue and processing
backend/app/services/outbox.py - Outbox worker
backend/worker.py
Other components
- Operations user
Connections 40
- Operations user → React application: uses
README.md - React application → Session context: provides session
frontend/src/App.jsx - React application → Login page: routes to
frontend/src/App.jsx - React application → Dashboard view: routes to
frontend/src/App.jsx - React application → Work item list: routes to
frontend/src/App.jsx - React application → Item creation: routes to
frontend/src/App.jsx - React application → Item detail: routes to
frontend/src/App.jsx - Session context → API client: calls
frontend/src/context/AuthContext.jsx - Login page → Session context: uses
frontend/src/pages/LoginPage.jsx - Dashboard view → API client: fetches dashboard
frontend/src/pages/DashboardPage.jsx - Work item list → API client: fetches items
frontend/src/pages/WorkItemsPage.jsx - Item creation → API client: creates items
frontend/src/pages/CreateItemPage.jsx - Item detail → API client: updates items
frontend/src/pages/WorkItemDetailPage.jsx - Dashboard view → Status displays: renders
frontend/src/pages/DashboardPage.jsx - Dashboard view → Item badges: renders
frontend/src/pages/DashboardPage.jsx - Work item list → Status displays: renders
frontend/src/pages/WorkItemsPage.jsx - Work item list → Item badges: renders
frontend/src/pages/WorkItemsPage.jsx - Item detail → Status displays: renders
frontend/src/pages/WorkItemDetailPage.jsx - Item detail → Item badges: renders
frontend/src/pages/WorkItemDetailPage.jsx - API client → FastAPI application: sends API requests
README.md - FastAPI application → Authentication routes: registers
backend/app/main.py - FastAPI application → Work item routes: registers
backend/app/main.py - FastAPI application → Dashboard routes: registers
backend/app/main.py - Authentication routes → JWT and password auth: authenticates
backend/app/routes/auth.py - Authentication routes → Session and transactions: uses sessions
backend/app/routes/auth.py - Work item routes → Work item workflows: dispatches workflows
backend/app/routes/work_items.py - Work item routes → JWT and password auth: authenticates requests
backend/app/routes/work_items.py - Work item workflows → Role permissions: checks access
backend/app/services/work_items.py - Work item workflows → Activity logging: records events
backend/app/services/work_items.py - Work item workflows → Outbox enqueue and processing: enqueues jobs
backend/app/services/work_items.py - Work item workflows → Domain and job models: queries and mutates
backend/app/services/work_items.py - Dashboard routes → Dashboard queries: dispatches queries
backend/app/routes/dashboard.py - Dashboard queries → Role permissions: scopes access
backend/app/services/dashboard.py - Dashboard queries → Domain and job models: queries
backend/app/services/dashboard.py - Session and transactions → PostgreSQL: opens sessions
README.md - Domain and job models → Session and transactions: uses declarative base
backend/app/models.py - Outbox enqueue and processing → Domain and job models: reads and writes jobs
backend/app/services/outbox.py - Outbox worker → Outbox enqueue and processing: processes jobs
backend/worker.py - Outbox worker → Session and transactions: opens sessions
backend/worker.py - Outbox enqueue and processing → PostgreSQL: persists outbox
README.md