How sujanirig-web/stock-manager- works
Stock Manager is a browser-based inventory app. Users manage products and categories, adjust stock, and inspect inventory status and value; Firestore listeners keep the displayed data current. The excerpts show the app’s Firestore and authentication calls, while the README documents search, filtering, and low-stock alerts. The graph groups those capabilities under the app because their implementation details were not all sampled; the rules file’s exact behavior was also not inspected.
Main entry points: app.js Inventory interface · firebase.js Firebase setup · helper.js UI and data helpers · firestore.rules Firestore rules
Components 11
Inventory app
- Inventory interface
app.js - Product management
app.js - Category management
app.js - Stock adjustments
app.js - Inventory insights
app.js
Firebase backend
- Firebase setup
firebase.js - Firestore data
- Anonymous auth
- Firestore rules
firestore.rules
App utilities
- UI and data helpers
helper.js
Other components
- Inventory user
Connections 17
- Inventory user → Inventory interface: uses
README.md - Inventory interface → Product management: manages
app.js - Inventory interface → Category management: manages
app.js - Inventory interface → Stock adjustments: adjusts
app.js - Inventory interface → Inventory insights: renders
app.js - Inventory interface → Firebase setup: imports
app.js - Inventory interface → UI and data helpers: uses
app.js - Firebase setup → Firestore data: initializes
firebase.js - Firebase setup → Anonymous auth: initializes
firebase.js - Product management → Firestore data: reads and writes
app.js - Category management → Firestore data: reads and writes
app.js - Stock adjustments → Firestore data: updates
app.js - Firestore data → Inventory interface: streams updates
app.js - Inventory interface → Anonymous auth: signs in
app.js - Firestore rules → Firestore data: secures access
README.md - Product management → UI and data helpers: generates SKU
app.js - Inventory insights → UI and data helpers: formats values
app.js