How mansi-upadhyay-12/operations-under-pressure-system works
Operations Under Pressure is a team-based operational work-item platform. Operators authenticate, view dashboards and filtered queues, create or open items, then claim, edit, comment, assign, or advance them through approval and resolution; the React client sends these actions to FastAPI, whose authorization and work-item services enforce team roles, state transitions, concurrency, idempotency, and audit history. Database-backed outbox jobs are processed asynchronously for notifications. The README documents pagination, filtering, and retry behavior; source excerpts do not expose every route or persistence detail, so those links are cited to the README where appropriate.
Main entry points: App.jsx App navigation · WorkItemDetailPage.jsx Item detail · work_item_service.py Workflow and concurrency · api.js REST client
Components 30
Operator interface
- App navigation
frontend/src/App.jsx - Session context
frontend/src/context/AuthContext.jsx - REST client
frontend/src/services/api.js - Dashboard
frontend/src/pages/DashboardPage.jsx - Work-item queue
frontend/src/pages/WorkItemListPage.jsx - Item detail
frontend/src/pages/WorkItemDetailPage.jsx - Creation form
frontend/src/components/WorkItemFormModal.jsx - Activity timeline
frontend/src/components/ActivityTimeline.jsx - Comments
frontend/src/components/CommentsList.jsx - Workflow display
frontend/src/components/WorkflowStepper.jsx - Conflict recovery
frontend/src/components/ConflictModal.jsx
API and access
- FastAPI application
backend/app/main.py - Authentication routes
backend/app/routers/auth.py - Team routes
backend/app/routers/teams.py - JWT security
backend/app/auth/security.py - Authentication and RBAC
backend/app/auth/dependencies.py
Work-item operations
- Work-item routes
backend/app/routers/work_items.py - Workflow and concurrency
backend/app/services/work_item_service.py - Demo data seeding
backend/app/services/seed_service.py
Persistence and history
- Database sessions
backend/app/database.py - Work items
backend/app/models/work_item.py - Users and teams
backend/app/models/team.py - Activity and comments
backend/app/models/activity.py - Comment records
backend/app/models/comment.py - Idempotency keys
backend/app/models/idempotency.py
Background notifications
- Outbox processing
backend/app/services/outbox_service.py - Outbox jobs
backend/app/models/outbox.py - Background worker
backend/app/utils/worker.py - Notification sink
Other components
- Operator
Connections 41
- Operator → App navigation: uses
- App navigation → Session context: provides session
frontend/src/App.jsx - App navigation → Dashboard: renders
frontend/src/App.jsx - App navigation → Work-item queue: renders
frontend/src/App.jsx - App navigation → Item detail: renders
frontend/src/App.jsx - App navigation → Creation form: renders
frontend/src/App.jsx - Session context → REST client: calls
frontend/src/context/AuthContext.jsx - Dashboard → REST client: calls
frontend/src/pages/DashboardPage.jsx - Work-item queue → REST client: calls
frontend/src/pages/WorkItemListPage.jsx - Item detail → REST client: calls
frontend/src/pages/WorkItemDetailPage.jsx - Item detail → Workflow display: renders
frontend/src/pages/WorkItemDetailPage.jsx - Item detail → Activity timeline: renders
frontend/src/pages/WorkItemDetailPage.jsx - Item detail → Comments: renders
frontend/src/pages/WorkItemDetailPage.jsx - Item detail → Conflict recovery: uses
frontend/src/pages/WorkItemDetailPage.jsx - Creation form → REST client: submits through
frontend/src/components/WorkItemFormModal.jsx - REST client → FastAPI application: REST requests
frontend/src/services/api.js - FastAPI application → Authentication routes: registers routes
backend/app/main.py - FastAPI application → Team routes: registers routes
backend/app/main.py - FastAPI application → Work-item routes: registers routes
backend/app/main.py - Authentication routes → JWT security: uses
backend/app/routers/auth.py - Authentication routes → Authentication and RBAC: authenticates with
backend/app/routers/auth.py - Work-item routes → Authentication and RBAC: checks access
backend/app/routers/work_items.py - Work-item routes → Workflow and concurrency: delegates operations
backend/app/routers/work_items.py - Workflow and concurrency → Work items: updates and queries
backend/app/services/work_item_service.py - Workflow and concurrency → Activity and comments: records audit events
backend/app/services/work_item_service.py - Workflow and concurrency → Comment records: uses comments
backend/app/services/work_item_service.py - Workflow and concurrency → Idempotency keys: deduplicates submissions
backend/app/services/work_item_service.py - Workflow and concurrency → Outbox processing: enqueues notifications
backend/app/services/work_item_service.py - FastAPI application → Database sessions: initializes
backend/app/main.py - Database sessions → Work items: maps tables
backend/app/database.py - Authentication and RBAC → Database sessions: gets sessions
backend/app/auth/dependencies.py - Authentication and RBAC → Users and teams: loads memberships
backend/app/auth/dependencies.py - Authentication routes → Users and teams: reads users
backend/app/routers/auth.py - Team routes → Users and teams: serves team data
- Demo data seeding → Users and teams: creates demo teams
backend/app/services/seed_service.py - Demo data seeding → Work items: creates demo items
backend/app/services/seed_service.py - Demo data seeding → Activity and comments: seeds history
backend/app/services/seed_service.py - Demo data seeding → Comment records: seeds comments
backend/app/services/seed_service.py - Outbox processing → Outbox jobs: stores and polls jobs
backend/app/services/outbox_service.py - Background worker → Outbox processing: processes jobs
backend/app/utils/worker.py - Outbox processing → Notification sink: logs notifications
backend/app/services/outbox_service.py