Skip to main content

Changelog: Dedek - 2026-06-25

Daily Changelog - Waste Vantage Legacy

Overview

Today's changes by Dedek focus on enhancing the Inquiry-to-Lead conversion flow by capturing detailed lead classification types and address details. Dedek implemented database modifications to support these fields in leads, upgraded the frontend modal views to allow editing during conversion, and documented mobile API endpoints.


Added

  • Leads Migrations (database/migrations/)
    • Added 2026_06_25_103302_add_type_to_leads_table.php to introduce the type column to the leads table.
    • Added 2026_06_25_103756_add_address_fields_to_leads_table.php to introduce street_number, unit_lot, street_name, suburb, state, and country to the leads table.
  • API Documentation (mobile_prestart_api_docs.md)
    • Added a comprehensive documentation file for mobile prestart API checklist endpoints, vehicles, and tasks.

Changed

  • Inquiry Controller Refactoring (app/Http/Controllers/Admin/InquiryController.php)
    • Added strong parameter and return types to methods (show, destroy, deactivate, convertToLead).
    • Added user ID logging to backend exception catch logs to track which operator triggered an error.
    • Upgraded convertToLead to validate name, email, type, and address properties from the request before creating the new Lead with all newly added properties.
    • Updated the Inquiry status target value to 'converted_lead' upon successful conversion.
  • Lead Model Config (app/Lead.php)
    • Added type, street_number, unit_lot, street_name, suburb, state, and country to the $fillable array.
  • AutoHelper Additions (app/Helpers/AutoHelper.php)
    • Added leadTypes helper returning standard lead classifications (Cold, Warm, Hot).
    • Added getStateByPostcode to resolve the grandparent ServiceArea state name from a postcode.
  • Inquiry Views & Modal conversion (resources/views/admin/inquiries/index.blade.php, resources/views/admin/inquiries/show.blade.php)
    • Replaced the simple SweetAlert confirmation with a Bootstrap 4 Modal (#convertToLeadModal).
    • Allows full form inputs for Name, Email, Phone, Website, Postcode, Unit/Lot, Street Number, Street Name, Suburb, State, Country, Lead Type, Waste Type, Bin Size, and Notes prior to converting.

Fixed

  • None.

Removed

  • None.