How nasjabhr/nasja works
Nasjah Atelier is a fabric-shop ERP with a public storefront. Customers browse the catalog and submit orders; staff use authenticated operational screens to manage orders, inventory, expenses, budgets, and store settings. The browser data service sends reads and writes to the backend API, which accesses the database. The graph follows the sampled routing, data-service, and API evidence; some listed capabilities and backend details were not inspected beyond the provided excerpts.
Main entry points: Layout.tsx ERP layout · dataService.ts Browser data service · App.tsx Route application · Store.tsx Public storefront
Components 20
Application shell
- Route application
src/App.tsx - ERP layout
src/components/Layout.tsx - Route protection
src/components/ProtectedRoute.tsx
Storefront and sales
- Public storefront
src/pages/Store.tsx - Order management
src/pages/Orders.tsx
Shop operations
- Dashboard
src/pages/Dashboard.tsx - Inventory
src/pages/Inventory.tsx - Expenses
src/pages/Expenses.tsx - Budget
src/pages/Budget.tsx - Store settings
src/pages/StoreSettings.tsx - Account settings
src/pages/Settings.tsx - AI analysis service
src/lib/aiAnalysisService.ts
Data and access
- Staff login
src/pages/Login.tsx - Initial setup
src/pages/Setup.tsx - Browser data service
src/lib/dataService.ts - Backend API
api/index.ts - Supabase database
- Supabase auth
Other components
- Customer
- Shop staff
Connections 27
- Customer → Public storefront: browses
- Shop staff → Route application: opens
src/App.tsx - Route application → Public storefront: routes to
src/App.tsx - Route application → Staff login: routes to
src/App.tsx - Route application → Initial setup: routes to
src/App.tsx - Route application → Route protection: guards
src/App.tsx - Route protection → ERP layout: wraps
src/App.tsx - ERP layout → Dashboard: renders
src/App.tsx - ERP layout → Order management: renders
src/App.tsx - ERP layout → Inventory: renders
src/App.tsx - ERP layout → Expenses: renders
src/App.tsx - ERP layout → Budget: routes to
src/App.tsx - ERP layout → Store settings: renders
src/App.tsx - ERP layout → Account settings: renders
src/App.tsx - Public storefront → Browser data service: submits orders
src/lib/dataService.ts - Order management → Browser data service: persists changes
src/pages/Orders.tsx - Dashboard → Browser data service: reads data
src/pages/Dashboard.tsx - Inventory → Browser data service: reads data
src/pages/Inventory.tsx - Expenses → Browser data service: reads data
src/pages/Expenses.tsx - Budget → Browser data service: reads data
src/pages/Budget.tsx - Store settings → Browser data service: saves settings
src/pages/StoreSettings.tsx - Browser data service → Backend API: calls API
src/lib/dataService.ts - Backend API → Supabase database: reads and writes
api/index.ts - Staff login → Supabase auth: authenticates
src/pages/Login.tsx - Browser data service → Supabase auth: gets token
src/lib/dataService.ts - Customer → Public storefront: places order
src/pages/Store.tsx - AI analysis service → Dashboard: supports analysis