How tech-applywizz-git-account/snackify_inventory_tool works
Applyways Office Pantry is an office operations product for employee meal ordering and reviews, pantry inventory, purchases, bill approval, and administrative reporting. The principal documented procurement workflow extracts uploaded invoices, converts their lines into reviewable stock classifications, then applies approved stock changes through an idempotent ledger. The graph also includes meal, request, and guest-order capabilities visible in the route and page structure. Source excerpts are selective; unsampled subsystems are represented at their existing route or page paths, and uncertain wiring is omitted.
Main entry points: App.jsx Web application · supabase.js Supabase data and auth · api.js Frontend API client · server.js Express API server
Components 25
User experience
- Web application
frontend/src/App.jsx - Session and profile
frontend/src/hooks/useAuth.js - Meal booking
frontend/src/pages/MealBooking.jsx - Guest meals
frontend/src/pages/Guest.jsx - Meal reviews
frontend/src/pages/MealReviews.jsx - Staff requests
frontend/src/pages/RequestSubmit.jsx - Admin operations
frontend/src/pages/Admin.jsx - Bill approval
frontend/src/pages/BillUpload.jsx - Frontend API client
frontend/src/lib/api.js
Application API
- Express API server
backend/src/server.js - Meals and cafeteria routes
backend/src/routes/meals.js - Bill intake and approval
backend/src/routes/bills.js - Inventory and products
backend/src/routes/inventory.js - Request handling
backend/src/routes/requests.js - Meal review handling
backend/src/routes/mealReviews.js
Pantry operations
- Product conversion
backend/src/lib/productConversion.js - Purchase application
backend/src/lib/applyPurchase.js - Stock-taking
backend/src/lib/stockTake.js
State and integrations
- Supabase data and auth
backend/src/lib/supabase.js - OpenAI services
backend/src/lib/openai.js - Telegram purchase workflow
backend/src/routes/telegramWebhook.js - Meal print agent
print-agent/index.js
Other components
- Employees and staff
- Operations admins
- Office receipt printer
Connections 36
- Employees and staff → Web application: use
- Operations admins → Web application: manage
- Web application → Session and profile: checks sessions
- Web application → Meal booking: routes to
- Web application → Guest meals: routes to
- Web application → Meal reviews: routes to
- Web application → Staff requests: routes to
- Web application → Admin operations: routes to
- Web application → Bill approval: routes to
- Meal booking → Frontend API client: uses
- Guest meals → Frontend API client: uses
- Meal reviews → Frontend API client: uses
- Staff requests → Frontend API client: uses
- Admin operations → Frontend API client: uses
- Bill approval → Frontend API client: uses
- Frontend API client → Express API server: calls API
- Express API server → Meals and cafeteria routes: dispatches
- Express API server → Bill intake and approval: dispatches
- Express API server → Inventory and products: dispatches
- Express API server → Request handling: dispatches
- Express API server → Meal review handling: dispatches
- Bill intake and approval → Supabase data and auth: stores bill rows
- Bill intake and approval → Product conversion: processes invoice lines
- Product conversion → Supabase data and auth: reads rules; saves results
- Product conversion → OpenAI services: classifies unmatched
- Bill intake and approval → Supabase data and auth: applies approved stock
- Inventory and products → Supabase data and auth: reads and writes stock
- Meals and cafeteria routes → Supabase data and auth: reads and writes meals
- Request handling → Supabase data and auth: stores requests
- Meal review handling → Supabase data and auth: stores reviews
- Telegram purchase workflow → OpenAI services: extracts purchases
- Telegram purchase workflow → Purchase application: applies purchase
- Telegram purchase workflow → Stock-taking: runs stock-take
- Telegram purchase workflow → Supabase data and auth: reads and writes
- Meal print agent → Supabase data and auth: reads print jobs
- Meal print agent → Office receipt printer: prints receipts