How prasad066/candidateworkspace works
Invoice Flow supports invoice intake through correction, three-way matching, exception handling, approval, and simulated payment readiness, with dashboard and read-only reference data. The React workspace calls the Express API; backend services implement workflow operations over MongoDB-backed domain models, while invoice source files are persisted separately. The repository also includes a standalone synthetic-data generator and evaluator. Some service implementations were not sampled, so those workflow links rely on the README; other edges use shown imports or SOURCE INDEX references.
Main entry points: routes API routing · App.jsx Workspace and routing · api.js API client · invoiceIntakeController.js Intake handlers
Components 28
Workflow UI
- Workspace and routing
frontend/src/App.jsx - Intake review
frontend/src/pages/IntakesPage.jsx - Exception review
frontend/src/pages/ExceptionsPage.jsx - Approval decisions
frontend/src/pages/ApprovalsPage.jsx - Payment readiness
frontend/src/pages/PaymentsPage.jsx - Dashboard
frontend/src/pages/DashboardPage.jsx - Reference views
frontend/src/pages/ReferenceDataPage.jsx - API client
frontend/src/services/api.js
Invoice Operations
- API routing
backend/routes - Intake handlers
backend/controllers/invoiceIntakeController.js - Structured extraction
backend/services/extractionAdapter.js - Intake revisions
backend/services/invoiceIntakeService.js - Source file storage
backend/services/invoiceSourceStorage.js - Three-way matching
backend/services/matchingEngine.js - Exception workflow
backend/services/exceptionService.js - Approval workflow
backend/services/approvalService.js - Payment readiness
backend/services/paymentService.js - Dashboard metrics
backend/services/dashboardService.js - Reference data
backend/services/referenceDataService.js
Identity and Data
- Authentication
backend/services/authService.js - Request authentication
backend/middleware/authentication.js - Workflow records
backend/models
Synthetic Data
- Synthetic data generation
data-generator/generators/synthetic_data.py - Generator configuration
data-generator/config.py - Dataset validation
data-generator/validators/dataset_validator.py - Prediction evaluation
data-generator/evaluate.py
Other components
- Finance user
- MongoDB
Connections 37
- Finance user → Workspace and routing: uses
README.md - Workspace and routing → Intake review: routes to
frontend/src/App.jsx - Workspace and routing → Exception review: routes to
frontend/src/App.jsx - Workspace and routing → Approval decisions: routes to
frontend/src/App.jsx - Workspace and routing → Payment readiness: routes to
frontend/src/App.jsx - Workspace and routing → Dashboard: routes to
frontend/src/App.jsx - Workspace and routing → Reference views: routes to
frontend/src/App.jsx - Intake review → API client: requests data
frontend/src/pages/IntakesPage.jsx - Intake review → API client: submits corrections
frontend/src/pages/IntakesPage.jsx - Exception review → API client: requests data
frontend/src/App.jsx - Approval decisions → API client: requests data
frontend/src/App.jsx - Payment readiness → API client: requests data
frontend/src/App.jsx - Dashboard → API client: requests data
frontend/src/App.jsx - Reference views → API client: requests data
frontend/src/App.jsx - API client → API routing: calls API
README.md - API routing → Intake handlers: dispatches intake
backend/routes/invoiceIntakeRoutes.js - Intake handlers → Structured extraction: parses files
backend/controllers/invoiceIntakeController.js - Intake handlers → Source file storage: persists source
backend/controllers/invoiceIntakeController.js - Intake handlers → Intake revisions: creates revisions
backend/controllers/invoiceIntakeController.js - API routing → Three-way matching: dispatches matching
- Three-way matching → Exception workflow: routes exceptions
- API routing → Exception workflow: dispatches actions
backend/routes/exceptionRoutes.js - API routing → Approval workflow: dispatches decisions
backend/routes/approvalRoutes.js - API routing → Payment readiness: dispatches requests
backend/routes/paymentRoutes.js - API routing → Dashboard metrics: dispatches metrics
- API routing → Reference data: dispatches reads
- API routing → Authentication: dispatches authentication
- API routing → Request authentication: authenticates requests
backend/routes/invoiceIntakeRoutes.js - Request authentication → Workflow records: loads user
backend/middleware/authentication.js - Authentication → Workflow records: reads and writes users
backend/services/authService.js - Authentication → Request authentication: issues tokens
backend/services/authService.js - Workflow records → MongoDB: stores records
README.md - Synthetic data generation → Generator configuration: uses settings
data-generator/generators/synthetic_data.py - Dataset validation → Generator configuration: uses settings
data-generator/validators/dataset_validator.py - Dataset validation → Synthetic data generation: validates output
data-generator/validators/dataset_validator.py - Prediction evaluation → Synthetic data generation: compares predictions
README.md - Synthetic data generation → Workflow records: imports synthetic data