Order Management
Category-level order handling for MCC and VLCC centres with live category totals, partial and bulk acceptance, and a performance rebuild of a data-heavy screen.
Overview
The order module lets dairy staff review and accept orders coming in from collection centres. I added category-level handling and rebuilt the screen’s layout and performance for both desktop and mobile.
The challenge
Orders contain many product categories, staff needed totals per category for the whole filtered set, and the screen had become slow to scroll because the same filtering and grouping logic ran repeatedly.
What I built
- Category insight: a category totals strip, per-item category tags and a category filter across web tables, grouped MCC / VLCC views and mobile cards.
- Additive API design: a stored procedure returns category-wise totals for the filtered set, exposed as an additive field on the existing .NET endpoint, so older screens keep working if it is unavailable.
- Faster decisions: partial category and order acceptance, plus bulk accept / reject actions guarded by role-based permissions.
- Performance fix: duplicated filter logic consolidated into one shared predicate and grouped results memoized, removing scroll lag and repeated recomputation.
- Layout rebuild: sticky table headers, unified date-range filtering and a dedicated mobile filter modal.
Result
Staff see exactly what’s been ordered per category, act on many orders at once, and the screen scrolls smoothly even with large data sets.