How lipe-lpxz1/pizzaria-ipiranga works
This is a pizza-delivery ordering and store-operations application, despite the README’s favicon-fix title. Customers browse the menu and submit orders; staff handle orders and operational tasks; administrators manage products, review dashboards, and reports behind an authenticated admin route. The graph preserves those major workflows and the shared Supabase integration. Some route and server-function implementations are only partially excerpted, so edges are limited to relationships visible in the excerpts or SOURCE INDEX.
Main entry points: admin.tsx Admin Dashboard · index.tsx Menu & Checkout · orders.functions.ts Order Services · admin.functions.ts Admin Services
Components 19
Customer Ordering
- Menu & Checkout
src/routes/index.tsx - Order Services
src/lib/orders.functions.ts
Store Operations
- Operations Console
src/routes/operacao.tsx - Shift Operations
src/lib/operation.functions.ts
Administration
- Admin Login
src/routes/admin.login.tsx - Admin Access Guard
src/routes/_authenticated/route.tsx - Admin Dashboard
src/routes/_authenticated/admin.tsx - Product Management
src/components/admin/product-management.tsx - Admin Services
src/lib/admin.functions.ts - Report Data
src/lib/monthly-report-data.ts - Report PDF
src/lib/monthly-report-pdf.ts
Shared Platform
- UI Primitives
src/components/ui - Supabase Client
src/integrations/supabase/client.ts - Auth Middleware
src/integrations/supabase/auth-middleware.ts - Delivery Helpers
src/lib/delivery.server.ts
Other components
- Customer
- Store Staff
- Administrator
- Supabase
Connections 24
- Customer → Menu & Checkout: browses menu
src/routes/index.tsx - Menu & Checkout → Order Services: loads menu
src/routes/index.tsx - Menu & Checkout → Order Services: submits orders
src/routes/index.tsx - Order Services → Supabase: reads and writes
- Order Services → Delivery Helpers: uses delivery logic
src/lib/orders.functions.ts - Store Staff → Operations Console: manages service
src/routes/operacao.tsx - Operations Console → Shift Operations: requests operations
src/routes/operacao.tsx - Shift Operations → Auth Middleware: checks access
src/lib/operation.functions.ts - Administrator → Admin Login: signs in
src/routes/admin.login.tsx - Admin Login → Supabase Client: authenticates with
src/routes/admin.login.tsx - Administrator → Admin Access Guard: opens admin
src/routes/_authenticated/route.tsx - Admin Access Guard → Supabase Client: checks session and role
src/routes/_authenticated/route.tsx - Admin Access Guard → Admin Dashboard: admits
src/routeTree.gen.ts - Admin Dashboard → Admin Services: requests admin data
src/routes/_authenticated/admin.tsx - Admin Dashboard → Shift Operations: requests operations
src/routes/_authenticated/admin.tsx - Admin Dashboard → Product Management: renders
src/routes/_authenticated/admin.tsx - Product Management → Admin Services: loads and saves products
src/components/admin/product-management.tsx - Admin Services → Auth Middleware: checks access
src/lib/admin.functions.ts - Admin Services → Report Data: builds report data
src/lib/admin.functions.ts - Admin Dashboard → Report PDF: uses report export
src/routes/_authenticated/admin.tsx - Supabase Client → Supabase: connects
src/integrations/supabase/client.ts - Menu & Checkout → UI Primitives: uses controls
- Operations Console → UI Primitives: uses controls
src/routes/operacao.tsx - Admin Dashboard → UI Primitives: uses controls
src/routes/_authenticated/admin.tsx