How refrit2024/unifood works
Unifood is a campus food-ordering and student delivery platform, with student discovery and ordering alongside seller and administrator portals. The main workflow runs from campus stall discovery through menu selection and order submission to a digital receipt; seller operations and stall verification form separate management branches. The excerpts show App-level Firestore synchronization and security helpers, but do not expose every screen callback or the full order lifecycle, so those connections are limited to documented or visible relationships.
Main entry points: App.tsx Application shell · KatalogScreen.tsx Stall catalog · DetailStanScreen.tsx Stall & ordering · KelolaMenuScreen.tsx Menu management
Components 16
Student Experience
- Stall catalog
src/components/KatalogScreen.tsx - Stall & ordering
src/components/DetailStanScreen.tsx - Order receipt
src/components/OrderReceiptModal.tsx
Stall Operations
- Menu management
src/components/KelolaMenuScreen.tsx - Stall QR poster
src/components/StallQrModal.tsx
Verification & Admin
- Verification portal
src/components/AdminPortalScreen.tsx
App & Data
- Application shell
src/App.tsx - Role sign-in
src/components/AuthPortalScreen.tsx - Campus food data
src/data/kantinData.ts - Order & login safeguards
src/utils/securityGuard.ts - Firestore adapter
src/firebase.ts - Firestore state
Other components
- Student
- Stall seller
- Campus admin
- Browser runtime
Connections 24
- Browser runtime → Application shell: mounts
- Application shell → Role sign-in: renders
src/App.tsx - Application shell → Stall catalog: renders
src/App.tsx - Application shell → Stall & ordering: renders
src/App.tsx - Application shell → Menu management: renders
src/App.tsx - Application shell → Verification portal: renders
src/App.tsx - Student → Stall catalog: discovers stalls
README.md - Stall catalog → Stall & ordering: selects stall
README.md - Student → Stall & ordering: places order
README.md - Stall & ordering → Order receipt: opens receipt
src/components/DetailStanScreen.tsx - Stall catalog → Order receipt: shows receipt
src/components/KatalogScreen.tsx - Stall seller → Role sign-in: signs in
README.md - Stall seller → Menu management: manages menu
README.md - Menu management → Stall QR poster: opens QR
src/components/KelolaMenuScreen.tsx - Campus admin → Role sign-in: signs in
README.md - Campus admin → Verification portal: audits stalls
README.md - Role sign-in → Order & login safeguards: checks lockout
src/components/AuthPortalScreen.tsx - Stall & ordering → Order & login safeguards: validates order
src/components/DetailStanScreen.tsx - Order receipt → Order & login safeguards: signs receipt
src/components/OrderReceiptModal.tsx - Stall catalog → Campus food data: uses stall data
src/components/KatalogScreen.tsx - Menu management → Campus food data: uses menu data
src/components/KelolaMenuScreen.tsx - Stall QR poster → Campus food data: builds stall URL
src/components/StallQrModal.tsx - Application shell → Firestore adapter: syncs state
src/App.tsx - Firestore adapter → Firestore state: reads and writes