How manujakm/mobile-pos works
Mobile-POS is a browser-based point-of-sale and shop-management app. The main workflow is a shop user entering the POS, selecting a store, building a sale, and recording payment; related screens support inventory, purchasing, reporting, and shop operations. The source excerpts show local browser persistence and local POS data access, but do not establish all backend wiring. Edges reflect calls or imports visible in excerpts, the source index, or the README; unsampled behavior is not inferred.
Main entry points: App.tsx App shell · GroceryHome.tsx Grocery home · GroceryPos.tsx Point of sale · data.ts Sales data access
Components 23
App entry
- App shell
src/App.tsx - Shop sign-in
src/ShopSignIn.tsx - Grocery home
src/GroceryHome.tsx
Sales and checkout
- Point of sale
src/GroceryPos.tsx - Bill rendering
src/bill.tsx - Ice scan
src/IceScan.tsx - Grocery catalog
src/grocery.ts
Shop operations
- Desk records
src/groceryDesk.ts - Inventory management
src/InventoryPane.tsx - Shop panes
src/ShopPanes.tsx - Shop settings
src/shopExtras.ts - Printer selection
src/PrinterPicker.tsx
Portal and reporting
- Sales data access
src/data.ts - Operations reporting
src/ops.tsx - Wave chart
src/WaveChart.tsx - Report files
src/reportFile.ts
Shared services
- Shop accounts
src/accounts.ts - Data client
src/client.ts - Browser data store
src/client.ts - User preferences
src/prefs.ts - Value formatting
src/format.ts - Time windows
src/time.ts
Other components
- Shop user
Connections 34
- Shop user → App shell: opens
- App shell → Data client: gets client
src/App.tsx - App shell → Shop accounts: reads session
src/App.tsx - App shell → Grocery home: renders
src/App.tsx - App shell → User preferences: loads theme
src/App.tsx - App shell → Sales data access: loads portal data
src/App.tsx - App shell → Wave chart: uses chart
src/App.tsx - App shell → Report files: uses reports
src/App.tsx - App shell → Shop sign-in: uses sign-in
src/App.tsx - Grocery home → Point of sale: uses POS
src/GroceryHome.tsx - Grocery home → Inventory management: renders
src/GroceryHome.tsx - Grocery home → Shop panes: renders
src/GroceryHome.tsx - Grocery home → Desk records: loads records
src/GroceryHome.tsx - Grocery home → Grocery catalog: loads catalog
src/GroceryHome.tsx - Grocery home → Sales data access: loads low stock
src/GroceryHome.tsx - Grocery home → Shop settings: loads settings
src/GroceryHome.tsx - Point of sale → Grocery catalog: loads stores
src/GroceryPos.tsx - Point of sale → Desk records: opens shift
src/GroceryPos.tsx - Point of sale → Shop settings: loads till settings
src/GroceryPos.tsx - Point of sale → Bill rendering: uses bill
src/GroceryPos.tsx - Point of sale → Ice scan: uses scanner
src/GroceryPos.tsx - Inventory management → Desk records: updates stock
src/InventoryPane.tsx - Shop panes → Desk records: uses records
src/ShopPanes.tsx - Shop panes → Grocery catalog: uses catalog
src/ShopPanes.tsx - Shop panes → Shop settings: uses settings
src/ShopPanes.tsx - Shop sign-in → Shop accounts: reads account
src/ShopSignIn.tsx - Shop sign-in → Grocery catalog: uses store data
src/ShopSignIn.tsx - Grocery home → Printer selection: uses picker
src/GroceryHome.tsx - Printer selection → Shop settings: loads printer settings
src/PrinterPicker.tsx - Operations reporting → Sales data access: loads operations data
src/ops.tsx - Wave chart → Sales data access: uses sales data
src/WaveChart.tsx - Sales data access → Value formatting: formats values
src/data.ts - Sales data access → Time windows: builds time buckets
src/data.ts - Data client → Browser data store: reads and writes
src/client.ts