How rnrinfodgl18/pawnsoftfrontend works
PawnPro is a React frontend for pawn-shop operations. Users authenticate, select a company, and enter the routed administration area; there they manage customers and jewelry pledges, record payments, and maintain supporting rates, schemes, accounts, and bank references. The frontend delegates server operations to its API client and provides shared navigation and notifications. The README documents capabilities beyond the sampled excerpts; those are represented as feature areas, but unsampled implementation details and their API calls are not asserted.
Main entry points: AdminLayout.tsx Admin routes · apiClient.ts API client · App.tsx App and session · Customers.tsx Customer records
Components 26
Application Shell
- App and session
App.tsx - Login
views/Login.tsx - Company selection
views/CompanySelection.tsx - Admin routes
layouts/AdminLayout.tsx
Pledge Operations
- Customer records
views/Customers.tsx - Create pledge
views/CreatePledge.tsx - Edit pledge
views/EditPledge.tsx - Pledge tracking
views/PledgeList.tsx - Pledge details
views/PledgeView.tsx - Pledge payments
views/PledgePayment.tsx - Payment receipt
views/PledgePrintReceipt.tsx - Legacy pledge tools
views/OldPledgeImport.tsx
Business Setup
- Jewelry catalog
views/JewellType.tsx - Jewelry rates
views/JewellRates.tsx - Metal rates
views/GoldSilverRateAdmin.tsx - Pledge schemes
views/Schemes.tsx
Finance & Reporting
- Account masters
views/AccountsMasters.tsx - Bank management
views/BankManagement.tsx - Daybook
views/Daybook.tsx - Dashboard
views/Dashboard.tsx
Shared Services
- API client
apiClient.ts - Toast context
contexts/ToastContext.tsx - Toast display
components/toasts/Toast.tsx - Global toast setup
components/GlobalToastSetup.tsx
Other components
- Pawn-shop user
- PawnPro backend
Connections 36
- Pawn-shop user → App and session: uses
- App and session → Login: shows when unauthenticated
App.tsx - App and session → Company selection: requires selection
App.tsx - App and session → Admin routes: renders
App.tsx - Admin routes → Customer records: routes to
layouts/AdminLayout.tsx - Admin routes → Create pledge: routes to
layouts/AdminLayout.tsx - Admin routes → Edit pledge: routes to
layouts/AdminLayout.tsx - Admin routes → Pledge tracking: routes to
layouts/AdminLayout.tsx - Admin routes → Pledge details: routes to
layouts/AdminLayout.tsx - Admin routes → Pledge payments: routes to
layouts/AdminLayout.tsx - Admin routes → Payment receipt: routes to
layouts/AdminLayout.tsx - Admin routes → Legacy pledge tools: routes to
layouts/AdminLayout.tsx - Admin routes → Jewelry catalog: routes to
layouts/AdminLayout.tsx - Admin routes → Jewelry rates: routes to
layouts/AdminLayout.tsx - Admin routes → Metal rates: routes to
layouts/AdminLayout.tsx - Admin routes → Pledge schemes: routes to
layouts/AdminLayout.tsx - Admin routes → Account masters: routes to
layouts/AdminLayout.tsx - Admin routes → Bank management: routes to
layouts/AdminLayout.tsx - Admin routes → Daybook: routes to
layouts/AdminLayout.tsx - Admin routes → Dashboard: routes to
layouts/AdminLayout.tsx - Customer records → API client: requests data
views/Customers.tsx - Create pledge → API client: requests data
views/CreatePledge.tsx - Edit pledge → API client: requests data
views/EditPledge.tsx - Pledge tracking → API client: requests data
- Pledge payments → API client: requests data
views/PledgePayment.tsx - Payment receipt → API client: requests data
views/PledgePrintReceipt.tsx - Legacy pledge tools → API client: requests data
views/OldPledgeImport.tsx - Jewelry rates → API client: requests data
views/JewellRates.tsx - Pledge schemes → API client: requests data
views/Schemes.tsx - Account masters → API client: requests data
views/AccountsMasters.tsx - Bank management → API client: requests data
views/BankManagement.tsx - Daybook → API client: requests data
views/Daybook.tsx - API client → PawnPro backend: sends requests
- Admin routes → Toast context: provides notifications
layouts/AdminLayout.tsx - Toast context → Toast display: renders
contexts/ToastContext.tsx - Global toast setup → API client: registers handler
components/GlobalToastSetup.tsx