How arji-hub/assetmanagement works
CICT-AMS is a role-aware web system for registering and tracking institutional assets, their locations and custodians, and their condition over time. Users enter through the routed React application, authenticate, and work through asset, room, custodian, transfer, audit, and report workflows; QR lookup and generated documents support those workflows. The frontend services connect to Firebase, while Cloud Functions handle administrative and event-driven work. The map follows README capabilities and sampled call sites; links within unsampled feature areas are omitted where their wiring cannot be verified.
Main entry points: App.jsx Application routes · authService.js Authentication service · asset.js Asset service · firebase-config.js Firebase services
Components 22
Access and navigation
- Application routes
src/App.jsx - Login workflow
src/hooks/login/useLogin.js - Authentication service
src/services/authService.js
Asset inventory
- Asset registration
src/hooks/asset/useItemForm.js - Asset pages
src/pages/Asset/Asset.jsx - Asset service
src/services/asset.js - Custodian management
src/hooks/custodian/useCustodian.js - Custodian pages
src/pages/Custodian/Custodian.jsx - Room management
src/services/room.js
Accountability workflows
- Asset transfers
src/hooks/transfer/useTransferAction.js - Room audits
src/hooks/audit/room/useAuditRoomSession.js - Audit service
src/services/audit.js - Condition reports
src/hooks/report/useReportRegistration.js - Report service
src/services/report.js
Lookup and reporting
- QR lookup
src/hooks/qr/useQR.js - QR camera scan
src/hooks/camera/useCamera.js - Operational dashboards
src/hooks/dashboard/useReportSummary.js - PDF documents
src/pdf/templates/AuditRoomPDF.jsx
Data and serverless
- Firebase services
src/services/firebase-config.js - Cloud Functions
functions/src/index.js - Email delivery
Other components
- Staff user
Connections 19
- Staff user → Application routes: opens
- Application routes → Login workflow: routes to
- Login workflow → Authentication service: signs in
- Authentication service → Firebase services: checks identity
- Application routes → Asset pages: routes to
- Application routes → Custodian pages: routes to
- Asset pages → Asset registration: supports entry
- Asset registration → Asset service: checks serials
- Custodian pages → Custodian management: manages records
- Custodian management → Firebase services: reads and writes
- Room audits → Room management: subscribes assets
- Room audits → Audit service: creates audit
- Condition reports → Asset service: looks up asset
- Condition reports → Report service: submits report
- Operational dashboards → Report service: subscribes reports
- QR lookup → Asset service: loads QR assets
- QR camera scan → QR lookup: decodes QR
- Authentication service → Firebase services: reads user record
- Cloud Functions → Email delivery: sends messages