How hodayashirazie/ice-cream-kiosk works
Ice-Cream Kiosk is a single-page React app for building and placing flavor orders. The user selects flavors and quantities, optionally filters availability or marks favorites, then clears or places the order. App owns the in-memory flavor inventory, scoop-limit checks, totals, and order updates; placing an order deducts selected scoops and resets the cart. It supplies state and handlers to the card, notice, and summary components. The excerpts show component wiring and callbacks; there is no persistent store or external service.
Main entry points: App.jsx Kiosk state and logic · FlavorCard.jsx Flavor cards · OrderSummary.jsx Order summary · main.jsx React bootstrap
Components 6
Application entry
- React bootstrap
src/main.jsx
Kiosk state and workflow
- Kiosk state and logic
src/App.jsx
Kiosk interface
- Flavor cards
src/components/FlavorCard.jsx - Conditional notices
src/components/NoticeArea.jsx - Order summary
src/components/OrderSummary.jsx
Other components
- Kiosk user
Connections 9
- React bootstrap → Kiosk state and logic: renders
src/main.jsx - Kiosk state and logic → Flavor cards: renders and supplies actions
src/App.jsx - Flavor cards → Kiosk state and logic: invokes callbacks
src/components/FlavorCard.jsx - Kiosk state and logic → Conditional notices: supplies notice state
src/App.jsx - Kiosk state and logic → Order summary: renders and supplies totals
src/App.jsx - Order summary → Kiosk state and logic: invokes order actions
src/components/OrderSummary.jsx - Kiosk user → Flavor cards: selects flavors
README.md - Kiosk user → Order summary: places or clears order
README.md - Kiosk user → Kiosk state and logic: filters availability
src/App.jsx