Changelog: Aryan - 2026-06-09
Daily Changelog - Waste Vantage Legacy
Overview
Today's changes by Aryan focus on cleanups and feature enhancements in Contract wizard screens, including relocating the date configuration fields to improve user experience, swapping out legacy HTML dropdown selects with Vue Multiselect, and refactoring queries to remove hardcoded user role IDs.
Added
- Empty State Validation Helpers (
resources/js/components/contracts/ContractCustomerLookup.vue)- Added computed properties
customerDetailIsEmptyandbillingDetailIsEmptyto check whether customer/billing information is completely empty to dynamically switch view modes and placeholder overlays.
- Added computed properties
Changed
- Contract Date Configuration Placement (
resources/js/components/contracts/...)- Relocated the Contract Date Bar section (start date flatpickr, duration dropdown, calculation of end date, and validation logic) from
ContractBinServices.vuetoContractDetails.vue. - Updated
ContractCreate.vueto pass theperiodesprop to theContractDetailscomponent rather thanContractBinServices.
- Relocated the Contract Date Bar section (start date flatpickr, duration dropdown, calculation of end date, and validation logic) from
- Vue Multiselect Integration for Schedule (
resources/js/components/contracts/ServicePricingForm.vue)- Replaced standard HTML
<select>with<multiselect>for recurring schedule selection (runsheet groups) and moved the selection logic from watchers to the@input="handleRunsheetChange"method.
- Replaced standard HTML
Fixed
- Dynamic Role Queries (
app/Http/Controllers/Admin/...)- Replaced hardcoded role IDs (
7and8for Sales and Account Managers) with dynamic Eloquent query scopes searching role names usingwhereHas('role')in:app/Http/Controllers/Admin/FrontBins/FrontBinController.phpapp/Http/Controllers/Admin/RentalBins/RentalBinsController.phpapp/Http/Controllers/Admin/TrashBags/TrashBagController.phpapp/Http/Controllers/Admin/WheelBins/WheelBinController.php
- Replaced hardcoded role IDs (
- Route Parameter Correction (
resources/views/admin/inventory-item/create.blade.php)- Fixed the back-to-list route parameter name from
servicetosupplier.
- Fixed the back-to-list route parameter name from
Removed
- None.