How patrickbotarick/guigs-stock works
This repository is a browser-based stock-management dashboard. Users work with inventory, fridge operations, product images, and reports through the dashboard’s UI modules. The excerpts show the dashboard wiring those modules, plus report and image-library requests to Supabase. Inventory counting and fridge allocation/replenishment are distinct domain workflows, but their detailed orchestration is not fully shown. The graph focuses on demonstrated runtime modules and calls; it omits build and homologation tooling.
Main entry points: cloud-dashboard.js Dashboard shell · fridges.js Fridge operations · reports.js Reports · image-library.js Image library
Components 7
Dashboard UI
- Dashboard shell
cloud-dashboard.js
Stock Operations
- Inventory counts
inventory.js - Fridge operations
fridges.js - Reports
reports.js
Product Images
- Image library
image-library.js
Other components
- Dashboard user
- Supabase backend
Connections 9
- Dashboard user → Dashboard shell: uses
- Dashboard shell → Inventory counts: creates UI
cloud-dashboard.js - Dashboard shell → Fridge operations: creates UI
cloud-dashboard.js - Dashboard shell → Reports: creates UI
cloud-dashboard.js - Fridge operations → Image library: uses library
fridges.js - Fridge operations → Supabase backend: calls RPCs
fridges.js - Fridge operations → Supabase backend: uploads images
fridges.js - Reports → Supabase backend: fetches reports
reports.js - Image library → Supabase backend: reads and writes
image-library.js