How leonardondev/pizzashop-web works
This is a restaurant-management frontend for operators: they sign in or register, then manage orders and inspect restaurant performance. The runtime routes requests through authenticated app or auth layouts; order screens expose status-changing actions and details, while the dashboard presents sales and product metrics. API modules use a shared Axios client, but the backend contract and several screen-to-data connections are not shown, so those links are marked unverified rather than inferred as direct calls. The README is empty.
Main entry points: routes.tsx Route dispatch · axios.ts HTTP client · api Account API · store-profile-dialog.tsx Store profile editor
Components 21
Application shell
- App provider
src/App.tsx - Route dispatch
src/routes.tsx - Authenticated layout
src/pages/_layouts/app.tsx - Auth layout
src/pages/_layouts/auth.tsx
Account access
- Sign in
src/pages/auth/sign-in.tsx - Restaurant signup
src/pages/auth/sign-up.tsx - Account menu
src/components/account-menu.tsx - Store profile editor
src/components/store-profile-dialog.tsx
Order operations
- Orders screen
src/pages/app/orders/orders.tsx - Order actions
src/pages/app/orders/order-table-row.tsx - Order details
src/pages/app/orders/order-details.tsx
Sales insights
- Dashboard
src/pages/app/dashboard/dashboard.tsx - Sales metrics
src/pages/app/dashboard - Revenue and product charts
src/pages/app/dashboard
API transport
- Restaurant profile API
src/api/get-managed-restaurant.ts - Account API
src/api - Order API
src/api - Analytics API
src/api - HTTP client
src/lib/axios.ts
Other components
- Restaurant operator
- Restaurant service
Connections 26
- Restaurant operator → App provider: opens
- App provider → Route dispatch: provides
src/App.tsx - Route dispatch → Authenticated layout: routes to
src/routes.tsx - Route dispatch → Auth layout: routes to
src/routes.tsx - Route dispatch → Orders screen: routes to
src/routes.tsx - Route dispatch → Dashboard: routes to
src/routes.tsx - Route dispatch → Sign in: routes to
src/routes.tsx - Route dispatch → Restaurant signup: routes to
src/routes.tsx - Sign in → Account API: calls
src/pages/auth/sign-in.tsx - Restaurant signup → Account API: calls
src/pages/auth/sign-up.tsx - Account menu → Restaurant profile API: loads profile
src/components/account-menu.tsx - Account menu → Store profile editor: opens
src/components/account-menu.tsx - Store profile editor → Restaurant profile API: loads profile
src/components/store-profile-dialog.tsx - Store profile editor → Account API: updates profile
src/components/store-profile-dialog.tsx - Orders screen → Order actions: renders
- Order actions → Order API: loads and updates
src/pages/app/orders/order-table-row.tsx - Order actions → Order details: opens
src/pages/app/orders/order-table-row.tsx - Order details → Order API: loads details
src/pages/app/orders/order-details.tsx - Dashboard → Sales metrics: presents
- Dashboard → Revenue and product charts: presents
- Revenue and product charts → Analytics API: loads products
src/pages/app/dashboard/popular-products-chart.tsx - Restaurant profile API → HTTP client: uses
src/api/get-managed-restaurant.ts - Account API → HTTP client: uses
src/api/get-orders.ts - Order API → HTTP client: uses
src/api/get-orders.ts - Analytics API → HTTP client: uses
src/api/get-orders.ts - HTTP client → Restaurant service: sends requests