How khorshedcgpt-source/lsfc-v1.0 works
LSFC is a Bengali land-service-center management app, delivered as a web UI and an Electron desktop window. Staff navigate from the application shell to application entry, customer ledger, expenses, reports, and settings; the service calculator prices selected services, while invoice and report screens provide printable/PDF outputs. Local authentication gates ledger and settings access, and local stores hold operational data and configuration. The tree and excerpts support the main navigation and several utility calls; unsampled feature internals and some screen-to-store wiring are therefore not expanded.
Components 25
App shell
- React entry
src/main.tsx - Navigation shell
src/App.tsx - Dashboard
src/components/Dashboard.tsx
Service operations
- Application form
src/components/ApplicationForm.tsx - Service fee tester
src/components/ServiceTestModal.tsx - Fee calculation
src/utils/serviceCalculator.ts - Service fee settings
src/components/settings/ServiceFeeSettings.tsx
Records and access
- Customer ledger
src/components/CustomerLedger.tsx - Customer store
src/utils/customerStore.ts - Invoice store
src/utils/invoiceStore.ts - Expense tracker
src/components/expenses/ExpenseTracker.tsx - Expense store
src/utils/expenseStore.ts - Authentication gate
src/components/auth/AuthGate.tsx - Local authentication
src/utils/authStore.ts - Settings role gate
src/components/auth/SettingsRoleGate.tsx - Settings hub
src/components/settings/SettingsHub.tsx - Institution settings
src/utils/institutionSettings.ts - Backup and restore
src/components/settings/BackupRestore.tsx
Reports and documents
- Reports hub
src/components/reports/ReportsHub.tsx - Center summary report
src/components/reports/CenterSummaryReportView.tsx - Customer statement
src/components/reports/CustomerStatementView.tsx - Invoice printing
src/components/InvoicePrint.tsx - Invoice text shaping
src/utils/banglaShaping/invoiceTextFields.ts
Desktop runtime
- Electron window
electron/main.cjs
Other components
- Staff user
Connections 23
- Staff user → Navigation shell: uses
- React entry → Navigation shell: renders
- Navigation shell → Dashboard: selects
- Navigation shell → Application form: selects
- Navigation shell → Customer ledger: selects
- Navigation shell → Expense tracker: selects
- Navigation shell → Reports hub: selects
- Navigation shell → Settings role gate: selects
- Navigation shell → Service fee tester: opens
- Service fee tester → Fee calculation: calculates
- Service fee settings → Institution settings: reads and saves
- Authentication gate → Local authentication: checks session
- Authentication gate → Customer ledger: gates access
- Settings role gate → Settings hub: gates access
- Settings hub → Service fee settings: shows
- Settings hub → Backup and restore: shows
- Customer ledger → Customer store: customer records
- Customer ledger → Invoice store: invoice records
- Expense tracker → Expense store: expense records
- Reports hub → Center summary report: opens
- Reports hub → Customer statement: opens
- Invoice printing → Invoice text shaping: shapes text with
- Electron window → React entry: loads app