How emergys-solutions-pvt-ltd/cargill-invoiceprocessing-custom-app-frontend works
This is a React invoice-processing application with sign-in, invoice handling across General Payments, SJO, and ROSPBU, team assignment, and administrative configuration. The principal workflow is to enter a protected invoice app, search or create invoices, and open invoice details for review; administrators also manage users, master data, integrations, and email configuration. The graph reflects routes and calls visible in the excerpts and source index. Several feature pages are unsampled, so their internal behavior and unshown connections are not inferred.
Main entry points: App.jsx Routes and providers · network.service.js API client · AuthContext.jsx Auth state · auth.service.js Session service
Components 20
Application shell
- Routes and providers
src/App.jsx - App layout
src/components/AppLayout.jsx
Identity and session
- Access guard
src/components/AuthRoute.jsx - Sign-in page
src/pages/Login.jsx - Auth state
src/context/AuthContext.jsx - Session service
src/services/auth.service.js - API client
src/services/network.service.js - Browser storage
src/services/storage.service.js - Microsoft sign-in
src/services/msal.service.js
Invoice operations
- Invoice list
src/pages/app/InvoiceList.jsx - Invoice details
src/pages/app/InvoiceDetails.jsx - ROSPBU creation
src/pages/app/RospbuInvoiceCreate.jsx - Team assignment
src/pages/app/TeamAssignment.jsx
Administration
- User management
src/pages/settings/Users.jsx - Master data
src/pages/settings/Configuration.jsx - Integration settings
src/pages/settings/integrations - Email settings
src/pages/settings/email
Other components
- User
- Microsoft identity
- Application API
Connections 32
- User → Routes and providers: uses
src/App.jsx - Routes and providers → Access guard: routes through
src/App.jsx - Routes and providers → Sign-in page: routes to
src/App.jsx - Routes and providers → App layout: routes to
src/App.jsx - Routes and providers → Invoice list: routes to
src/App.jsx - Routes and providers → Invoice details: routes to
src/App.jsx - Routes and providers → ROSPBU creation: routes to
src/App.jsx - Routes and providers → Team assignment: routes to
src/App.jsx - Routes and providers → User management: routes to
src/App.jsx - Routes and providers → Master data: routes to
src/App.jsx - Routes and providers → Integration settings: routes to
src/App.jsx - Routes and providers → Email settings: routes to
src/App.jsx - Access guard → Auth state: checks access
src/App.jsx - App layout → Auth state: reads session
src/components/AppLayout.jsx - Sign-in page → Auth state: signs in
src/pages/Login.jsx - Auth state → Session service: manages session
src/context/AuthContext.jsx - Auth state → API client: checks session
src/context/AuthContext.jsx - Auth state → Browser storage: reads session
src/context/AuthContext.jsx - Auth state → Microsoft sign-in: handles redirect
src/context/AuthContext.jsx - Session service → API client: calls auth endpoints
src/services/auth.service.js - Session service → Browser storage: stores session
src/services/auth.service.js - Session service → Microsoft sign-in: clears tokens
src/services/auth.service.js - Microsoft sign-in → Microsoft identity: authenticates with
src/services/msal.service.js - API client → Browser storage: reads bearer token
src/services/network.service.js - API client → Application API: sends requests
src/services/network.service.js - Invoice list → API client: loads and creates
src/pages/app/InvoiceList.jsx - Invoice details → API client: loads and updates
src/pages/app/InvoiceDetails.jsx - Team assignment → API client: manages assignments
src/pages/app/TeamAssignment.jsx - User management → API client: manages users
src/pages/settings/Users.jsx - Master data → API client: manages data
src/pages/settings/Configuration.jsx - Email settings → API client: uses API
src/pages/settings/email/EmailRegistrationTab.jsx - Integration settings → API client: uses API