How ar-pixeltech/ivorytable-frontend works
IvoryTable is a multi-vendor POS SaaS frontend. The main vendor workflow is to enter the POS, build and adjust a cart, then proceed through checkout; the tree identifies these stages, but the POS source was not sampled, so their wiring is not asserted. Sampled code shows admin login calling the admin service, storing session state, and guarding role-specific routes. Service modules expose vendor management, menu, sales, invoice, and subscription operations through an authenticated HTTP client. The README also advertises inventory and order tracking, but their implementation paths are not identifiable in the supplied tree.
Main entry points: page.tsx Admin Login · admin.service.ts Admin Service · vendor.service.ts Vendor Service · axios.ts HTTP Client
Components 23
Entry and Access
- Landing Page
app/page.tsx - Admin Login
app/login/page.tsx - Route Guard
components/RouteGuard.tsx
Point of Sale
- POS Order Screen
app/pos/order/page.tsx - Product Grid
app/pos/order/components/ProductGrid.tsx - Product Card
app/pos/order/components/ProductCard.tsx - Cart Panel
app/pos/order/components/CartPanel.tsx - Cart Adjustments
app/pos/order/components/AdjustmentModal.tsx - Checkout
app/pos/order/components/CheckoutModal.tsx - Cart State
store/cartStore.ts
Platform Administration
- Admin Dashboard
app/admin/(dashboard)/dashboard/page.tsx - Vendor Administration
app/admin/(dashboard)/vendors/page.tsx - Subscription Plans
app/admin/(dashboard)/subscriptions/page.tsx - Admin Service
services/admin.service.ts
Vendor Operations
- Vendor Dashboard
app/admin/(dashboard)/dashboard/page.tsx - Menu Management
services/vendor.service.ts - Sales and Invoices
services/vendor.service.ts - Inventory and Orders
app/pos - Vendor Service
services/vendor.service.ts
API and Session
- Auth Context
context/AuthContext.tsx - HTTP Client
lib/axios.ts
Other components
- Browser User
- IvoryTable API
Connections 17
- Browser User → Landing Page: opens
- Landing Page → Admin Login: links to login
- Browser User → POS Order Screen: uses POS
- Browser User → Admin Login: submits credentials
- Admin Login → Admin Service: calls login
- Admin Login → Auth Context: stores session
- Admin Login → Route Guard: wraps page
- Route Guard → Auth Context: checks role
- Admin Login → Admin Dashboard: navigates after login
- Vendor Administration → Admin Service: vendor operations
- Subscription Plans → Admin Service: plan operations
- Vendor Dashboard → Vendor Service: dashboard data
- Menu Management → Vendor Service: menu operations
- Sales and Invoices → Vendor Service: sales and invoice calls
- Admin Service → HTTP Client: sends requests
- Vendor Service → HTTP Client: sends requests
- HTTP Client → IvoryTable API: HTTP requests