How gobi1990/coffeeshop_pos_system works
This is a client-side coffee-shop POS admin dashboard. Staff navigate its sections to manage a menu, build carts and orders, record simulated cash/card checkout, and review operational summaries. The page owns the live order, cart, menu, inventory, promotion, and payment-history state; the supplied source shows no backend or persistent database. README capabilities also include employee management and scheduling, though their implementation was not sampled. Edges reflect the visible page-to-component wiring; unsampled section internals are represented without speculative call links.
Main entry points: page.tsx POS page state · interfaces.tsx Domain types · menuSection.tsx Menu browsing · cartSidebar.tsx Cart sidebar
Components 16
POS application
- POS page state
app/page.tsx - Navigation header
app/components/ui/header.tsx - Domain types
app/interfaces/interfaces.tsx - Sample data
app/data/mockData.tsx
Sales workflow
- Menu browsing
app/components/sections/menuSection.tsx - Cart sidebar
app/components/ui/cartSidebar.tsx - Order management
app/components/sections/orderSection.tsx - Order details
app/components/ui/orderDetails.tsx - Payment history
app/page.tsx - Checkout dialog
app/components/ui/paymentModal.tsx
Operations
- Inventory tracking
app/components/sections/inventroySection.tsx - Promotion management
app/components/sections/promotionSection.tsx - Employees and shifts
app/components/sections/employeeSection.tsx - Menu item entry
app/components/sections/addMenuItemSection.tsx
Analytics
- Dashboard analytics
app/components/sections/dashboard.tsx
Other components
- Staff user
Connections 23
- Staff user → POS page state: uses
- POS page state → Navigation header: renders
- POS page state → Menu browsing: renders
- POS page state → Cart sidebar: renders
- POS page state → Inventory tracking: renders
- POS page state → Promotion management: renders
- POS page state → Employees and shifts: renders
- POS page state → Dashboard analytics: renders
- POS page state → Order management: routes to
- POS page state → Payment history: renders
- POS page state → Menu item entry: manages entry
- POS page state → Sample data: initializes from
- POS page state → Domain types: uses types
- POS page state → Dashboard analytics: passes metrics
- POS page state → Menu browsing: passes menu and cart actions
- POS page state → Cart sidebar: passes cart actions
- POS page state → Promotion management: passes promotion state
- Menu browsing → Domain types: uses types
- Cart sidebar → Domain types: uses types
- Order management → Order details: renders
- Order details → Domain types: uses types
- Checkout dialog → POS page state: reports completion
- Dashboard analytics → Domain types: uses types