Feature #289
openCanteen: D27 — diet-order inbox list page
100%
Description
Week 6 D27. Wire the diet-order inbox to HTTP: GET /api/canteen/dietary/orders
(active snapshots for the hospital) + a portal list page linking into the
existing /dietary/orders/[orderId] review screen, which today only works
if you already know the order id.
NP Updated by Navya P. about 1 month ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
- Resolved By set to Navya P.
Done. GET /api/canteen/dietary/orders + portal list page at /dietary/orders,
linking each row into the existing [orderId] review screen with the
admission id prefilled. Added "Diet orders" to the Dietary nav group.
Found and fixed a real bug along the way: IDietaryOrderReadContract (D22's
local placeholder) had no DI registration, so DietOrderSyncService failed
to construct at all -- this was silently crashing DietOrderPollJob in the
background every poll cycle already. Added a local stub (same pattern as
D25's admission one) so the service builds; only the actual IPD sync calls
throw until the real contract lands.
Backend: 4 new tests green, full suite 783/785 (2 pre-existing unrelated
failures). Portal: type-check clean, 472/472 tests green. Pushed to
integration/canteen-v1 (baa27d5).