How hussainahmad2/financial-management-system works
FinanceFlow is a browser-based financial management application. A user signs in or creates an account, then navigates the authenticated workspace to manage customers, vendors, invoices, and inventory; dashboard analytics, reports, and a balance sheet provide financial summaries. Feature components access Supabase directly, while the shared auth hook handles session state and authentication. The README documents additional capabilities such as role-based access, low-stock alerts, and invoice status tracking; unsampled implementations and their detailed connections are not assumed here.
Main entry points: supabase.ts Supabase client · App.tsx Application shell · AuthForm.tsx Sign-in form · CustomerManagement.tsx Customer management
Components 24
Workspace & Access
- Application shell
src/App.tsx - Access gate
src/components/auth/AuthGuard.tsx - Sign-in form
src/components/auth/AuthForm.tsx - Navigation
src/components/layout/Sidebar.tsx
Business Operations
- Customer management
src/components/customers/CustomerManagement.tsx - Customer editor
src/components/customers/CustomerForm.tsx - Customer transactions
src/components/customers/TransactionModal.tsx - Vendor management
src/components/vendors/VendorManagement.tsx - Vendor editor
src/components/vendors/VendorForm.tsx - Vendor transactions
src/components/vendors/VendorTransactionModal.tsx - Invoice management
src/components/invoices/InvoiceManagement.tsx - Invoice creation
src/components/invoices/InvoiceForm.tsx - Inventory management
src/components/inventory/InventoryManagement.tsx - Inventory editor
src/components/inventory/InventoryForm.tsx
Analytics & Reporting
- Dashboard metrics
src/components/dashboard/DashboardStats.tsx - Analytics charts
src/components/dashboard/AnalyticsCharts.tsx - Reports analytics
src/components/reports/ReportsAnalytics.tsx - Balance sheet
src/components/balance/BalanceSheet.tsx
Shared Services
- Session & auth
src/hooks/useAuth.ts - Supabase client
src/lib/supabase.ts - Shared button
src/components/ui/Button.tsx - Shared input
src/components/ui/Input.tsx
Other components
- Business user
- Supabase platform
Connections 36
- Business user → Sign-in form: submits credentials
src/components/auth/AuthForm.tsx - Application shell → Access gate: renders
src/App.tsx - Access gate → Session & auth: checks session
src/components/auth/AuthGuard.tsx - Access gate → Sign-in form: prompts sign-in
src/components/auth/AuthGuard.tsx - Sign-in form → Session & auth: signs in or up
src/components/auth/AuthForm.tsx - Session & auth → Supabase client: uses client
src/hooks/useAuth.ts - Supabase client → Supabase platform: connects
- Application shell → Navigation: renders navigation
src/App.tsx - Application shell → Customer management: routes tab
src/App.tsx - Application shell → Vendor management: routes tab
src/App.tsx - Application shell → Invoice management: routes tab
src/App.tsx - Application shell → Inventory management: routes tab
src/App.tsx - Application shell → Dashboard metrics: renders dashboard
src/App.tsx - Application shell → Analytics charts: renders dashboard
src/App.tsx - Application shell → Reports analytics: routes tab
src/App.tsx - Application shell → Balance sheet: routes tab
src/App.tsx - Customer management → Customer editor: renders editor
src/components/customers/CustomerManagement.tsx - Customer management → Customer transactions: renders transaction
src/components/customers/CustomerManagement.tsx - Vendor management → Vendor editor: renders editor
src/components/vendors/VendorManagement.tsx - Vendor management → Vendor transactions: renders transaction
src/components/vendors/VendorManagement.tsx - Invoice management → Invoice creation: renders form
src/components/invoices/InvoiceManagement.tsx - Inventory management → Inventory editor: renders form
src/components/inventory/InventoryManagement.tsx - Reports analytics → Analytics charts: uses charts
src/components/reports/ReportsAnalytics.tsx - Customer management → Supabase client: reads and writes
src/components/customers/CustomerManagement.tsx - Customer editor → Supabase client: writes customer
src/components/customers/CustomerForm.tsx - Customer transactions → Supabase client: records transactions
src/components/customers/TransactionModal.tsx - Vendor management → Supabase client: reads and writes
src/components/vendors/VendorManagement.tsx - Vendor editor → Supabase client: writes vendor
src/components/vendors/VendorForm.tsx - Vendor transactions → Supabase client: records transactions
src/components/vendors/VendorTransactionModal.tsx - Invoice management → Supabase client: reads and writes
src/components/invoices/InvoiceManagement.tsx - Invoice creation → Supabase client: loads customers and saves invoice
src/components/invoices/InvoiceForm.tsx - Inventory management → Supabase client: reads and writes
src/components/inventory/InventoryManagement.tsx - Inventory editor → Supabase client: persists inventory
src/components/inventory/InventoryForm.tsx - Balance sheet → Supabase client: loads balances and saves sheet
src/components/balance/BalanceSheet.tsx - Sign-in form → Shared button: uses control
src/components/auth/AuthForm.tsx - Sign-in form → Shared input: uses fields
src/components/auth/AuthForm.tsx