How highonkohi/monolith-pos works
Monolith POS is a multi-role restaurant point-of-sale and management application. Guests place table or advance orders; kitchen staff prepare and dispatch them; floor staff handle assistance and service; cashiers settle bills; managers administer menus, tables, events, staff, and reporting. The UI routes and role guards coordinate these workflows, while services and Supabase provide domain access and synchronization. The graph combines README-documented capabilities with excerpted routing, session, and persistence evidence; unsampled page internals are represented at their existing page paths, and uncertain implementation links are omitted.
Main entry points: routes/index.tsx Route Workflows · orderService.ts Order Operations · supabase.ts Supabase Client · ServiceInterface/index.tsx Floor Service
Components 26
Guest Ordering
- QR Ordering
src/pages/Customer/index.tsx - Advance Orders
src/pages/AdvanceOrder/index.tsx
Restaurant Operations
- Reception Desk
src/pages/ReceptionistInterface/index.tsx - Kitchen Dispatch
src/pages/DispatcherInterface/index.tsx - Kitchen Viewer
src/pages/OrderViewer/index.tsx - Floor Service
src/pages/ServiceInterface/index.tsx - Checkout
src/pages/CashierInterface/index.tsx
Management
- Floor Layout
src/pages/TableManager/index.tsx - Menu Management
src/pages/MenuManager/index.tsx - Menu Catalog
src/pages/MenuCatalog/index.tsx - Events
src/pages/Events/index.tsx - Staff Accounts
src/pages/AccountManager/index.tsx - Analytics
src/pages/Analytics/index.tsx - Order Logs
src/pages/OrderLogs/index.tsx
Application Control
- Route Workflows
src/routes/index.tsx - Role Guards
src/components/auth/ProtectedRoute.tsx - Service Sessions
src/contexts/ServiceSessionContext.tsx
Domain Data
- Shift Operations
src/services/serviceShiftService.ts - Order Operations
src/services/orderService.ts - Business Day
src/services/businessDayService.ts - Layout Operations
src/services/tableLayoutService.ts - Menu Operations
src/services/menuService.ts - Supabase Client
src/lib/supabase.ts
Other components
- Dining Guest
- Advance Guest
- Supabase Platform
Connections 37
- Dining Guest → QR Ordering: places orders
README.md - Advance Guest → Advance Orders: preorders
README.md - Route Workflows → QR Ordering: routes to
src/routes/index.tsx - Route Workflows → Advance Orders: routes to
src/routes/index.tsx - Route Workflows → Kitchen Dispatch: routes to
src/routes/index.tsx - Route Workflows → Kitchen Viewer: routes to
src/routes/index.tsx - Route Workflows → Floor Service: routes to
src/routes/index.tsx - Route Workflows → Checkout: routes to
src/routes/index.tsx - Route Workflows → Reception Desk: routes to
src/routes/index.tsx - Route Workflows → Floor Layout: routes to
src/routes/index.tsx - Route Workflows → Menu Management: routes to
src/routes/index.tsx - Route Workflows → Menu Catalog: routes to
src/routes/index.tsx - Route Workflows → Events: routes to
src/routes/index.tsx - Route Workflows → Staff Accounts: routes to
src/routes/index.tsx - Route Workflows → Analytics: routes to
src/routes/index.tsx - Route Workflows → Order Logs: routes to
src/routes/index.tsx - Route Workflows → Role Guards: wraps protected routes
src/routes/index.tsx - Floor Service → Service Sessions: uses shift context
- Service Sessions → Shift Operations: calls shift operations
src/contexts/ServiceSessionContext.tsx - Service Sessions → Supabase Platform: syncs session events
- QR Ordering → Order Operations: creates orders
README.md - Advance Orders → Order Operations: submits preorders
README.md - Kitchen Dispatch → Order Operations: advances preparation
README.md - Kitchen Viewer → Order Operations: monitors tickets
README.md - Floor Service → Order Operations: tracks order status
README.md - Checkout → Order Operations: settles bills
README.md - Floor Layout → Layout Operations: manages layouts
- Layout Operations → Supabase Client: queries data
src/services/tableLayoutService.ts - Menu Management → Menu Operations: manages catalog
- Menu Catalog → Menu Operations: uses menu data
- Analytics → Order Operations: reports on sales
README.md - Order Logs → Order Operations: audits history
README.md - Supabase Client → Supabase Platform: connects to
src/lib/supabase.ts - Shift Operations → Supabase Client: queries shifts
src/services/serviceShiftService.ts - Order Operations → Supabase Client: persists orders
- Business Day → Supabase Client: accesses day data
- Menu Operations → Supabase Client: accesses menu data