How smartbuddy1/frontend_expense works
ASEMS is a role-based frontend for managing expenses and progress on installation projects. The primary workflow runs from a supervisor’s expense entry, through Operations approval and Accounts verification/payment, with Admin oversight; supervisors can also request advances, upload bills, and submit a public expense form. The root shell authenticates users and routes them to role-specific apps. The README describes backend services as a separate repository; backend internals are not shown here, and several dashboard implementations were not sampled, so those links reflect documented capabilities rather than inspected calls.
Main entry points: src/App.jsx Login and Routing · AccountsDashboard.jsx Accounts Dashboard · WalletContext.jsx Wallet and Expense API · SiteSupervisor/App.jsx Supervisor App
Components 19
Portal Entry
- Login and Routing
src/App.jsx
Field Supervision
- Supervisor App
src/modules/SiteSupervisor/App.jsx - Field Expense Workflows
src/modules/SiteSupervisor/pages - Wallet and Expense API
src/modules/SiteSupervisor/context/WalletContext.jsx - Public Expense Form
src/modules/SiteSupervisor/pages/PublicExpenseForm.jsx
Operations Control
- Operations App
src/modules/Operations/App.jsx - Projects and Progress
src/modules/Operations/components/operations - Expense and Advance Approval
src/modules/Operations/components/operations - Operations Dashboard
src/modules/Operations/pages/OperationsDashboard.jsx - Organization and Team Oversight
src/modules/Admin/components/operations - Admin Dashboard
src/modules/Admin/pages/OperationsDashboard.jsx
Accounts and Oversight
- Admin App
src/modules/Admin/App.jsx - Accounts App
src/modules/Accountant/App.jsx - Verification and Payments
src/modules/Accountant/components/accounts - Ledger and Reports
src/modules/Accountant/components/accounts - Accounts Dashboard
src/modules/Accountant/pages/AccountsDashboard.jsx - Accounts API Client
src/modules/Accountant/api/accountantApi.js
Other components
- User
- ASEMS Backend
Connections 24
- User → Login and Routing: signs in
- Login and Routing → ASEMS Backend: authenticates
- Login and Routing → Admin App: routes by role
- Login and Routing → Operations App: routes by role
- Login and Routing → Accounts App: routes by role
- Login and Routing → Supervisor App: routes by role
- Admin App → Admin Dashboard: renders
- Operations App → Operations Dashboard: renders
- Accounts App → Accounts Dashboard: renders
- Supervisor App → Field Expense Workflows: routes to
- Supervisor App → Wallet and Expense API: provides
- Field Expense Workflows → Wallet and Expense API: uses
- Public Expense Form → Wallet and Expense API: records expense
- Wallet and Expense API → ASEMS Backend: reads and writes
- Operations Dashboard → Projects and Progress: presents
- Operations Dashboard → Expense and Advance Approval: presents
- Admin Dashboard → Organization and Team Oversight: presents
- Accounts Dashboard → Verification and Payments: presents
- Accounts Dashboard → Ledger and Reports: presents
- Accounts Dashboard → Accounts API Client: uses
- Accounts API Client → ASEMS Backend: requests data
- Expense and Advance Approval → ASEMS Backend: submits decisions
- Organization and Team Oversight → ASEMS Backend: manages records
- Verification and Payments → ASEMS Backend: verifies and pays