How mahoozi97/pos-frontend works
This is a restaurant point-of-sale frontend: staff authenticate, start an order with customer details, select a table and menu items, review a bill, and follow payment/order status; staff can also manage the menu and view operational metrics. The map follows only relationships supported by excerpts or the source index. Several domain screens and integrations are included because the index documents them, but their internal calls are not inferred where source was not shown.
Main entry points: App.jsx Route and access shell · index.js Backend API client · Menu.jsx Menu and cart · Bill.jsx Bill and order submit
Components 28
Application and access
- Route and access shell
src/App.jsx - Sign in and register
src/components/auth/Login.jsx - Authentication page
src/pages/Auth.jsx
Restaurant workflows
- Home overview
src/pages/Home.jsx - Order tracking
src/pages/Orders.jsx - Order status cards
src/components/orders/OrderCard.jsx - Table selection
src/pages/Tables.jsx - Table card
src/components/tables/TableCard.jsx - Menu and cart
src/pages/Menu.jsx - Menu browsing
src/components/menu/MenuContainer.jsx - Bill and order submit
src/components/menu/Bill.jsx - Checkout
src/pages/Checkout.jsx - Payment status
src/pages/PaymentStatus.jsx - Receipt and printing
src/components/invoice/invoice.jsx
Operations management
- Admin dashboard
src/pages/Dashboard.jsx - Menu management
src/components/dashboard/MenuManager.jsx - Operational metrics
src/components/dashboard/Metrics.jsx - Recent orders and payments
src/components/dashboard/RecentOrders.jsx - Catalog and table forms
src/components/dashboard
Client state and services
- Backend API client
src/https/index.js - Session restoration
src/hooks/useLoadData.js - User session state
src/redux/slices/userSlice.js - Cart state
src/redux/slices/cartSlice.js - Customer and table state
src/redux/slices/customerSlice.js - Redux store
src/redux/store.js
Other components
- Restaurant staff
- Restaurant backend
- Payment gateway
Connections 41
- Restaurant staff → Route and access shell: uses
- Route and access shell → Authentication page: routes to
src/App.jsx - Route and access shell → Home overview: routes to
src/App.jsx - Route and access shell → Order tracking: routes to
src/App.jsx - Route and access shell → Table selection: routes to
src/App.jsx - Route and access shell → Menu and cart: routes to
src/App.jsx - Route and access shell → Admin dashboard: routes to
src/App.jsx - Route and access shell → Payment status: routes to
src/App.jsx - Route and access shell → Session restoration: loads session
src/App.jsx - Authentication page → Sign in and register: renders
src/pages/Auth.jsx - Sign in and register → Backend API client: calls auth API
src/components/auth/Login.jsx - Session restoration → Backend API client: fetches user
src/hooks/useLoadData.js - Session restoration → User session state: sets session
src/hooks/useLoadData.js - Redux store → User session state: registers reducer
src/redux/store.js - Redux store → Cart state: registers reducer
src/redux/store.js - Redux store → Customer and table state: registers reducer
src/redux/store.js - Home overview → Order tracking: opens
- Order tracking → Backend API client: fetches orders
src/pages/Orders.jsx - Order tracking → Order status cards: renders
src/pages/Orders.jsx - Order tracking → Receipt and printing: renders receipt
src/pages/Orders.jsx - Table selection → Backend API client: fetches tables
src/pages/Tables.jsx - Table selection → Table card: renders
src/pages/Tables.jsx - Menu and cart → Menu browsing: renders
src/pages/Menu.jsx - Menu and cart → Bill and order submit: renders
src/pages/Menu.jsx - Menu and cart → Cart state: reads cart
- Menu and cart → Customer and table state: reads customer
- Bill and order submit → Cart state: reads cart
src/components/menu/Bill.jsx - Bill and order submit → Customer and table state: reads customer
src/components/menu/Bill.jsx - Bill and order submit → Backend API client: submits order
src/components/menu/Bill.jsx - Bill and order submit → Receipt and printing: opens receipt
src/components/menu/Bill.jsx - Checkout → Backend API client: payment calls
- Payment status → Backend API client: checks payment
src/pages/PaymentStatus.jsx - Payment status → Receipt and printing: shows receipt
src/pages/PaymentStatus.jsx - Backend API client → Restaurant backend: HTTP requests
src/https/index.js - Restaurant backend → Payment gateway: processes payment
- Admin dashboard → Menu management: renders
src/pages/Dashboard.jsx - Admin dashboard → Operational metrics: renders
src/pages/Dashboard.jsx - Admin dashboard → Recent orders and payments: renders
src/pages/Dashboard.jsx - Admin dashboard → Catalog and table forms: renders
src/pages/Dashboard.jsx - Menu management → Backend API client: loads and edits menu
src/components/dashboard/MenuManager.jsx - Recent orders and payments → Backend API client: loads dashboard data