Feature #336
openCanteen: Menu & pricing — KPI cards + veg/non-veg filter
0%
Description
Prototype parity (menu.html): 4 KPI stat cards (Items, Avg margin visitor, Avg margin staff, Sold out) computed from the full unfiltered item list, plus a veg/non-veg filter alongside the existing search and category filters. Uses the existing StatGrid component and the existing marginPercent() helper (menu-forms.ts) against staffPrice as well as visitorPrice -- no backend changes needed. Weekly menu planner and Import CSV are explicitly out of scope (no backend exists for either yet) -- scoped down from the full prototype by the module owner on 2026-10-11.
NP Updated by Navya P. about 1 month ago
- Status changed from New to Resolved
- Resolved By set to Navya P.
Done. apps/portal/src/app/(app)/menu/page.tsx: 4 StatGrid KPI tiles (Items, Avg margin visitor, Avg margin staff, Sold out) via a new buildMenuStats() helper in menu-forms.ts, computed over the full unfiltered item list. Added a veg/non-veg filter; search/category/diet filtering moved client-side (useMenuItems now fetches once, unfiltered). 487 portal tests (6 new) + type-check pass. nuvita-canteen-management@207f17f, pushed to integration/canteen-v1. Weekly menu planner and Import CSV left out -- no backend for either yet.
NP Updated by Navya P. about 1 month ago
- Assignee set to Navya P.