Changelog: Aryan - 2026-06-05
Daily Changelog - Waste Vantage Legacy
Overview
Today's changes by Aryan focus on refining the unified contract edit and creation user interface. This includes introducing a modular edit service pricing layout on contract views, mounting reactive sub-pricing form components, correcting postcode missing alert prompts to guide operator actions, and resolving N+1 database relationships when parsing rental bin details.
Added
- Unified Edit Service Pricing Modal (
resources/js/components/contracts/EditServicePricingModal.vue,resources/js/components/contracts/ServicePricingForm.vue)- Added the
EditServicePricingModalVue component to replace direct state updates when editing price structures, improving component decoupling. - Added the
ServicePricingFormVue sub-component which handles reactive calculations for hire subtotal, GST percentage, and grand total, plus surcharges array bindings.
- Added the
Changed
- Rental Service Package Layout (
resources/views/admin/order/_service_package.blade.php)- Updated editing buttons to invoke
VueApp.$refs.servicePricingModal.open()directly, deprecating old Vuex-based modal actions.
- Updated editing buttons to invoke
Fixed
- Eager Loading Optimization (
app/Http/Controllers/Admin/OrderController.php)- Fixed eager loading in
OrderController@editto loadwasteContainer.binDimensionsalongsideunitProductfor bin weight definitions, eliminating N+1 queries.
- Fixed eager loading in
- Manual Pricing Instructions Alert (
resources/js/components/contracts/ContractAddServiceModal.vue)- Adjusted error handler when postcode mapping is missing to warn operators clearly and direct them to input manual prices on the pricing sheet.
Removed
- None.