How fouad8080/storepro works
This repository is a React inventory and sales dashboard. Users enter through sign-in, navigate the dashboard and operational sections, and inspect or filter product, order, customer, supplier, and inventory records. App-level context holds shared data and filters; Info loads remote data with a bundled JSON fallback and derives category counts. The dashboard assembles summary cards and analytics charts. The README describes only a Vite/React template, so product capabilities are inferred from the source index and sampled code; unsampled features and their wiring are represented conservatively.
Main entry points: App.jsx Application routes · charts.jsx Chart assembly · info.jsx Data loader · searchbar.jsx Global search
Components 24
App shell and data
- Application routes
src/App.jsx - Data loader
src/info/info.jsx - Bundled data
src/info/db.json - Sidebar navigation
src/sidebar.jsx - Global search
src/searchbar.jsx
Catalog and inventory
- Products
src/Products/product.jsx - Product detail
src/Products/displayproduct.jsx - Inventory
src/inventory/inventory.jsx - Inventory listing
src/inventory/showInventory.jsx
Business records
- Orders
src/Orders/orders.jsx - Order listing
src/Orders/showOrders.jsx - Customers
src/Customers/customers.jsx - Customer listing
src/Customers/showcustomers.jsx - Suppliers
src/suppliers/suppliers.jsx - Supplier listing
src/suppliers/showsuppliers.jsx
Dashboard analytics
- Dashboard
src/dashboard.jsx - Chart assembly
src/dashboard/charts.jsx - Category analytics
src/dashboard/categorycharts.jsx - Trend analytics
src/dashboard/areacharts.jsx - Product analytics
src/dashboard/ProductAnalyticschart.jsx
Access and settings
Other components
- User
Connections 25
- User → Application routes: uses
- Application routes → Data loader: renders
src/App.jsx - Data loader → Application routes: sets shared data
src/info/info.jsx - Data loader → Bundled data: loads fallback
src/info/info.jsx - Application routes → Sidebar navigation: renders
src/App.jsx - Application routes → Global search: renders
src/App.jsx - Application routes → Products: routes to
src/App.jsx - Application routes → Inventory: routes to
src/App.jsx - Application routes → Orders: routes to
src/App.jsx - Application routes → Customers: routes to
src/App.jsx - Application routes → Suppliers: routes to
src/App.jsx - Application routes → Dashboard: routes to
src/App.jsx - Application routes → Sign-in: routes to
src/App.jsx - Application routes → Settings: routes to
src/App.jsx - Products → Product detail: renders
src/Products/product.jsx - Inventory → Inventory listing: renders
src/inventory/inventory.jsx - Orders → Order listing: renders
src/Orders/orders.jsx - Customers → Customer listing: renders
src/Customers/customers.jsx - Suppliers → Supplier listing: renders
src/suppliers/suppliers.jsx - Dashboard → Chart assembly: renders
src/dashboard.jsx - Chart assembly → Category analytics: renders
src/dashboard/charts.jsx - Chart assembly → Trend analytics: renders
src/dashboard/charts.jsx - Chart assembly → Product analytics: renders
src/dashboard/charts.jsx - Global search → Product detail: links to
src/searchbar.jsx - Sign-up → User