How padmabushanvasu-crypto/bizdocs-v2 works
BizDocs is a browser-based manufacturing and inventory operations application. The main user journey is authentication and role-aware navigation into operational pages, where staff manage receipts, stock, purchasing, production structures, and dispatch documents against company-scoped data. The graph preserves these distinct business areas and shared search/import capabilities. Evidence is limited to the README, source index, and sampled excerpts; links for unsampled page behavior are omitted rather than inferred.
Main entry points: App.tsx Application routes · useAuth.tsx Authentication · AppSidebar.tsx Navigation shell · grn-api.ts Receipt operations
Components 22
Access and navigation
- Application routes
src/App.tsx - Authentication
src/hooks/useAuth.tsx - Role access
src/hooks/useRoleAccess.ts - Navigation shell
src/components/AppSidebar.tsx - Global search
src/components/GlobalSearch.tsx
Purchasing and receiving
- Purchase orders
src/pages/PurchaseOrdersList.tsx - Goods receipt
src/pages/GRNDetail.tsx - Receipt operations
src/lib/grn-api.ts - Delivery challan receipts
src/pages/DcGrn.tsx
Inventory and data
- Item master
src/lib/items-api.ts - Stock register
src/pages/StockRegister.tsx - Inventory ledger
src/pages/InventoryLedger.tsx - Physical counts
src/pages/PhysicalCount.tsx - Data import
src/pages/DataImport.tsx - Party records
src/lib/parties-api.ts
Production operations
- Bill of materials
src/pages/BillOfMaterials.tsx - BOM operations
src/lib/bom-api.ts - Work orders and jobs
src/pages
Dispatch and finance
- Dispatch documents
src/pages/DeliveryChallanDetail.tsx - Invoices and GST
src/pages/InvoiceRegister.tsx
Other components
- Staff user
- Supabase services
Connections 29
- Staff user → Application routes: opens
src/App.tsx - Application routes → Authentication: uses session
src/App.tsx - Application routes → Role access: checks access
src/App.tsx - Application routes → Navigation shell: renders routes
src/App.tsx - Role access → Authentication: reads user role
src/hooks/useRoleAccess.ts - Authentication → Supabase services: authenticates
- Authentication → Supabase services: loads profile
src/hooks/useAuth.tsx - Navigation shell → Role access: filters navigation
src/components/AppSidebar.tsx - Navigation shell → Global search: offers search
src/components/AppSidebar.tsx - Global search → Supabase services: queries records
- Application routes → Purchase orders: routes to
src/App.tsx - Application routes → Goods receipt: routes to
src/App.tsx - Application routes → Delivery challan receipts: routes to
src/App.tsx - Goods receipt → Receipt operations: fetches and saves
src/pages/GRNDetail.tsx - Receipt operations → Supabase services: reads and writes
src/lib/grn-api.ts - Receipt operations → Item master: uses item data
src/lib/grn-api.ts - Application routes → Stock register: routes to
src/App.tsx - Application routes → Inventory ledger: routes to
src/App.tsx - Application routes → Physical counts: routes to
src/App.tsx - Application routes → Bill of materials: routes to
src/App.tsx - Bill of materials → BOM operations: fetches process steps
src/pages/BillOfMaterials.tsx - BOM operations → Supabase services: accesses data
- Application routes → Work orders and jobs: routes to
src/App.tsx - Application routes → Dispatch documents: routes to
src/App.tsx - Application routes → Invoices and GST: routes to
src/App.tsx - Data import → Item master: imports records
src/pages/DataImport.tsx - Data import → Party records: imports records
src/pages/DataImport.tsx - Item master → Supabase services: reads and writes
src/lib/items-api.ts - Party records → Supabase services: reads and writes
src/lib/parties-api.ts