How namrathado123-bit/smartbizz works
SmartBiz AI is a shop-management web app for inventory, point-of-sale billing, customer records, analytics, and restocking. A shopkeeper signs in, manages products, checks out a customer bill, and reviews business performance; checkout is documented to update stock and customer history. The app routes authenticated users to these workflows, with shared auth, data, and draft contexts. Firebase/Firestore is the documented persistence platform. Source excerpts confirm checkout and profile persistence; several page and data-context implementations were not sampled, so their internal links are omitted where unverified.
Main entry points: App.tsx App router · firestoreService.ts Firestore operations · BillingPage.tsx POS checkout · UploadDataPage.tsx Product import
Components 30
App and access
- App router
src/App.tsx - Authentication
src/contexts/AuthContext.tsx - Sign-in screen
src/components/SignInScreen.tsx - App shell
src/components/AppShell.tsx - Settings
src/pages/SettingsPage.tsx
Shop operations
- Inventory management
src/pages/InventoryPage.tsx - Product entry
src/pages/AddProductPage.tsx - Product editing
src/pages/EditProductPage.tsx - Product details
src/pages/ProductDetailPage.tsx - POS checkout
src/pages/BillingPage.tsx - Billing history
src/pages/BillingHistoryPage.tsx - Invoice detail
src/pages/InvoiceDetailPage.tsx - Customer records
src/pages/CustomersPage.tsx - Product import
src/pages/UploadDataPage.tsx - Restock suggestions
src/pages/RestockPage.tsx
Business insights
- Dashboard
src/pages/HomePage.tsx - Sales analytics
src/pages/AnalyticsInsightsPages.tsx - Business insights
src/pages/InsightsPage.tsx - Reports
src/pages/ReportsPage.tsx
Shared platform
- Business data context
src/contexts/DataContext.tsx - Workflow drafts
src/contexts/DraftContext.tsx - Navigation state
src/contexts/NavigationContext.tsx - Firestore operations
src/services/firestoreService.ts - Cloud Firestore
- Firebase setup
src/lib/firebase.ts - Business data types
src/types/smartbiz.ts - Empty-state component
src/components/EmptyStateCard.tsx - Page header
src/components/PageHeader.tsx
Other components
- Shopkeeper
- IndiaMART
Connections 35
- Shopkeeper → App router: uses
README.md - App router → Authentication: provides
src/App.tsx - App router → Sign-in screen: routes unauthenticated users
src/App.tsx - App router → App shell: wraps routes
src/App.tsx - App router → Business data context: provides
src/App.tsx - App router → Workflow drafts: provides
src/App.tsx - App router → Navigation state: provides
src/App.tsx - App router → Dashboard: routes
src/App.tsx - App router → POS checkout: routes
src/App.tsx - App router → Inventory management: routes
src/App.tsx - App router → Product entry: routes
src/App.tsx - App router → Product editing: routes
src/App.tsx - App router → Product details: routes
src/App.tsx - App router → Billing history: routes
src/App.tsx - App router → Invoice detail: routes
src/App.tsx - App router → Customer records: routes
src/App.tsx - App router → Product import: routes
src/App.tsx - App router → Restock suggestions: routes
src/App.tsx - App router → Sales analytics: routes
src/App.tsx - App router → Business insights: routes
src/App.tsx - App router → Reports: routes
src/App.tsx - App router → Settings: routes
src/App.tsx - Authentication → Firebase setup: uses auth
src/contexts/AuthContext.tsx - Authentication → Firestore operations: ensures profile
src/contexts/AuthContext.tsx - POS checkout → Business data context: reads products
src/pages/BillingPage.tsx - POS checkout → Workflow drafts: uses cart draft
src/pages/BillingPage.tsx - POS checkout → Firestore operations: creates checkout
src/pages/BillingPage.tsx - Product import → Firestore operations: saves products
src/pages/UploadDataPage.tsx - Firestore operations → Cloud Firestore: reads and writes
src/services/firestoreService.ts - Firestore operations → Firebase setup: uses database setup
src/services/firestoreService.ts - Firestore operations → Business data types: uses business types
src/services/firestoreService.ts - Dashboard → Empty-state component: renders
src/pages/HomePage.tsx - Product import → Empty-state component: renders
src/pages/UploadDataPage.tsx - Product import → Page header: renders
src/pages/UploadDataPage.tsx - Restock suggestions → IndiaMART: redirects to purchase
README.md