How akashkbsa/mononmani-welding-works works
Mononmani Welding Works is a desktop invoicing and payment-management application. Users navigate a dashboard and customer, invoice, payment, and settings screens; forms submit through a TypeScript API service to Tauri commands, which manage records in SQLite. Invoice and payment workflows include GST calculations, payment allocation, outstanding-balance tracking, and invoice PDF printing. The tree and excerpts establish the UI-to-service calls and repository responsibilities; command-to-repository and some backend integration links are shown as unverified where command implementations were not sampled.
Main entry points: api.ts Tauri API client · App.tsx App navigation · InvoicesPage.tsx Invoice screens · PaymentsPage.tsx Payment screens
Components 24
Desktop interface
- App navigation
src/App.tsx - Dashboard
src/pages/DashboardPage.tsx - Customer screens
src/pages/CustomersPage.tsx - Invoice screens
src/pages/InvoicesPage.tsx - Payment screens
src/pages/PaymentsPage.tsx - Settings screen
src/pages/SettingsPage.tsx - Customer forms
src/components/customers/CustomerFormModal.tsx - Invoice forms
src/components/invoices/InvoiceFormModal.tsx - Invoice details
src/components/invoices/InvoiceDetailsModal.tsx - Payment forms
src/components/payments/PaymentFormModal.tsx - Payment details
src/components/payments/PaymentDetailsModal.tsx
Billing workflows
- Customer records
src-tauri/src/customers/repository.rs - Invoice records
src-tauri/src/invoices/repository.rs - Payment allocation
src-tauri/src/payments/repository.rs - GST calculations
src/lib/gst.ts
Tauri services
- Tauri API client
src/services/api.ts - Customer commands
src-tauri/src/customers/commands.rs - Invoice commands
src-tauri/src/invoices/commands.rs - Payment commands
src-tauri/src/payments/commands.rs - Storage commands
src-tauri/src/storage - Invoice PDF
src-tauri/src/pdf/renderer.rs
Local data
- SQLite database
src-tauri/src/db - Schema migrations
src-tauri/src/db/migrations.rs
Other components
- Business user
Connections 38
- Business user → App navigation: uses
src/App.tsx - App navigation → Dashboard: routes to
src/App.tsx - App navigation → Customer screens: routes to
src/App.tsx - App navigation → Invoice screens: routes to
src/App.tsx - App navigation → Payment screens: routes to
src/App.tsx - App navigation → Settings screen: routes to
src/App.tsx - Dashboard → Tauri API client: requests data
src/pages/DashboardPage.tsx - Customer screens → Tauri API client: requests data
src/pages/CustomersPage.tsx - Invoice screens → Tauri API client: requests data
src/pages/InvoicesPage.tsx - Payment screens → Tauri API client: requests data
src/pages/PaymentsPage.tsx - Settings screen → Tauri API client: requests settings
src/pages/SettingsPage.tsx - Customer screens → Customer forms: opens form
src/pages/CustomersPage.tsx - Invoice screens → Invoice forms: opens form
src/pages/InvoicesPage.tsx - Invoice screens → Invoice details: opens details
src/pages/InvoicesPage.tsx - Payment screens → Payment forms: opens form
src/pages/PaymentsPage.tsx - Payment screens → Payment details: opens details
src/pages/PaymentsPage.tsx - Customer forms → Tauri API client: saves customer
src/components/customers/CustomerFormModal.tsx - Invoice forms → Tauri API client: saves invoice
src/components/invoices/InvoiceFormModal.tsx - Invoice forms → GST calculations: calculates tax
src/components/invoices/InvoiceFormModal.tsx - Invoice details → Tauri API client: loads details
src/components/invoices/InvoiceDetailsModal.tsx - Invoice details → Payment forms: opens payment
src/components/invoices/InvoiceDetailsModal.tsx - Payment forms → Tauri API client: saves payment
src/components/payments/PaymentFormModal.tsx - Payment details → Tauri API client: loads details
src/components/payments/PaymentDetailsModal.tsx - Dashboard → Invoice details: opens invoice
src/pages/DashboardPage.tsx - Tauri API client → Customer commands: invokes commands
- Tauri API client → Invoice commands: invokes commands
- Tauri API client → Payment commands: invokes commands
- Tauri API client → Storage commands: invokes settings
- Tauri API client → Invoice PDF: requests printing
- Customer commands → Customer records: delegates
- Invoice commands → Invoice records: delegates
- Payment commands → Payment allocation: delegates
- Customer records → SQLite database: reads and writes
src-tauri/src/customers/repository.rs - Invoice records → SQLite database: reads and writes
src-tauri/src/invoices/repository.rs - Payment allocation → SQLite database: reads and writes
src-tauri/src/payments/repository.rs - Invoice records → Customer records: uses customer data
src-tauri/src/invoices/repository.rs - Payment allocation → Invoice records: checks invoices
src-tauri/src/payments/repository.rs - Schema migrations → SQLite database: defines schema
src-tauri/src/db/mod.rs