Project

General

Profile

Actions

Feature #336

open
NP NP

Canteen: Menu & pricing — KPI cards + veg/non-veg filter

Feature #336: Canteen: Menu & pricing — KPI cards + veg/non-veg filter

Added by Navya P. about 1 month ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Start date:
10/12/2026
Due date:
% Done:

0%

Estimated time:
Resolved By:

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 Actions #1

  • 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 Actions #2

  • Assignee set to Navya P.
Actions

Also available in: PDF Atom