How chito2k3/armmc-coop-loan-system works
ARMMC Coop Loan System is a role-based cooperative loan-management app. Members and staff authenticate, submit and review loan applications, release funds, and track collections through full payment; admins also manage loan settings and monitor dashboards and risk. The README documents the lifecycle and risk capabilities, while sampled source confirms the dashboard’s loan queries, loan-detail routing, Firebase auth/profile setup, and settings operations. Several domain components are listed but unsampled, so their internal wiring is not asserted.
Main entry points: dashboard-client.tsx Loan dashboard · loan-form-sheet.tsx Loan application · provider.tsx Firebase auth · page.tsx App entry
Components 20
Access and navigation
- App entry
src/app/page.tsx - Sign-in and guards
src/components/auth-guard.tsx - Role management
src/components/admin-dashboard.tsx - Loan dashboard
src/components/dashboard-client.tsx
Loan lifecycle
- Loan application
src/components/loan-form-sheet.tsx - Loan computation
src/components/loan-computation-dialog.tsx - Approval review
src/components/approval-panel.tsx - Loan details
src/components/loan-detail-view-new.tsx - Fund release
src/components/release-panel.tsx - Payment schedule
src/components/collection-schedule.tsx - Penalty service
src/firebase/penalty-service.ts
Monitoring and risk
- Borrower risk checks
src/components/existing-loans-check.tsx - Past-due monitoring
src/components/past-due-panel.tsx - Analytics reports
src/components/analytics-dashboard.tsx - Loan settings
src/firebase/settings-service.ts
Firebase services
- Firebase setup
src/firebase/index.ts - Firebase auth
src/firebase/provider.tsx - User profiles
src/firebase/user-service.ts - Firestore
Other components
- Coop users
Connections 21
- Coop users → App entry: uses
README.md - App entry → Loan dashboard: opens
src/app/page.tsx - Coop users → Sign-in and guards: signs in
README.md - Sign-in and guards → Firebase auth: checks session
src/components/auth-guard.tsx - Firebase auth → User profiles: ensures profile
src/firebase/provider.tsx - Loan dashboard → Firestore: queries loans
src/components/dashboard-client.tsx - Loan dashboard → Loan details: opens selected
src/components/dashboard-client.tsx - Coop users → Loan application: applies
README.md - Loan application → Loan computation: computes terms
- Loan application → Approval review: submits for approval
README.md - Approval review → Fund release: approves for release
README.md - Fund release → Payment schedule: starts repayment
README.md - Payment schedule → Penalty service: tracks penalties
- Coop users → Role management: administers
README.md - Role management → User profiles: updates roles
src/components/admin-dashboard.tsx - Coop users → Borrower risk checks: checks history
README.md - Coop users → Past-due monitoring: monitors dues
README.md - Coop users → Analytics reports: views insights
README.md - Coop users → Loan settings: configures
- Loan settings → Firestore: reads and writes
src/firebase/settings-service.ts - Firebase setup → Firebase auth: provides services
src/firebase/index.ts