How srinath-manivannan/week-8---anna-mess---crud works
Anna Mess is a small React teaching project presented as a tiffin-shop SPA. The browser entry mounts App, which owns shop-wide state, filters the menu data, and renders the shop’s status, dish cards, login, stock, cart and order form; child callbacks update parent state. Cart also updates the browser tab title, while cards use shared GST/total helpers. The README documents these product features; only a subset of component source was excerpted, so omitted component-call details are not inferred beyond App’s visible imports and render structure.
Main entry points: App.jsx Shop state and page · DishCard.jsx Dish cards · main.jsx React entry · ShopStatus.jsx Shop status
Components 15
Shop application
- React entry
src/main.jsx - Shop state and page
src/App.jsx
Shop features
- Dish menu data
src/data/dishes.js - Shop status
src/components/ShopStatus.jsx - Vegetarian toggle
src/components/VegToggle.jsx - Dish cards
src/components/DishCard.jsx - Token counter
src/components/TokenCounter.jsx - Owner login
src/components/LoginPanel.jsx - Stock checklist
src/components/StockList.jsx - Cart and title
src/components/Cart.jsx - Order form
src/components/OrderForm.jsx - Shop header
src/components/Header.jsx - Menu count footer
src/components/Footer.jsx
Shared logic
- Price helpers
src/utils/helper.js
Other components
- Shop visitor
Connections 20
- Shop visitor → React entry: opens app
README.md - React entry → Shop state and page: mounts
src/main.jsx - Shop state and page → Dish menu data: reads menu
src/App.jsx - Shop state and page → Shop status: renders
src/App.jsx - Shop state and page → Vegetarian toggle: renders
src/App.jsx - Shop state and page → Dish cards: renders cards
src/App.jsx - Shop state and page → Token counter: renders
src/App.jsx - Shop state and page → Owner login: renders
src/App.jsx - Shop state and page → Stock checklist: conditionally renders
src/App.jsx - Shop state and page → Cart and title: renders
src/App.jsx - Shop state and page → Order form: renders
src/App.jsx - Shop state and page → Shop header: renders
src/App.jsx - Shop state and page → Menu count footer: renders
src/App.jsx - Dish cards → Price helpers: calculates prices
src/components/DishCard.jsx - Shop visitor → Shop status: toggles shutter
- Shop visitor → Vegetarian toggle: filters menu
- Shop visitor → Dish cards: adds dish
- Shop visitor → Owner login: logs in
- Shop visitor → Cart and title: manages cart
- Shop visitor → Order form: places order