Skip to main content

Changelog: Dedek - 2026-06-24

Daily Changelog - Waste Vantage Legacy

Overview

Today's changes by Dedek focus on introducing a new dynamic Prestart Checklist system. This includes the database migrations, Eloquent models, administration controllers, driver-facing API endpoints, Blade views, and Vue.js components to build, submit, view, print, and soft-delete checklist submissions. In addition, the vehicle administration forms have been extended with name and code properties, and a critical bug was resolved where order and invoice processing could crash if additional data attributes are null.


Added

  • Dynamic Prestart Database Schema (database/migrations/2026_06_24_000000_create_dynamic_prestart_tables.php)
    • Added migrations for dynamic prestart tables: prestarts (checklist templates), prestart_sections (checklist sections), prestart_questions (checklist questions), prestart_answers (submissions master), and prestart_answer_items (individual answer details).
  • Soft Deletes Migration (database/migrations/2026_06_24_154400_add_soft_deletes_to_prestart_answers_tables.php)
    • Added deleted_at fields to prestart_answers and prestart_answer_items tables to support soft deleting submissions.
  • Prestart Checklist Eloquent Models (app/Prestart.php, app/PrestartAnswer.php, app/PrestartAnswerItem.php, app/PrestartQuestion.php, app/PrestartSection.php)
    • Introduced Eloquent model classes representing dynamic checklists, questions, sections, answers, and individual item responses, complete with relationships and soft deletes configuration.
  • Vehicle Properties Migration (database/migrations/2026_06_24_151000_add_name_and_code_to_vehicles_table.php)
    • Added name and code columns to the vehicles database table.
  • Admin Prestart Checklist Interface Views (resources/views/admin/prestart-checklist/answers_create.blade.php, resources/views/admin/prestart-checklist/answers_print.blade.php, resources/views/admin/prestart-checklist/master.blade.php)
    • Created Blade templates for submitting prestart checklists, printing checklist details, and configuring checklist template sections/questions.
  • Vue Frontend Prestart Components (resources/js/components/prestart/PrestartMaster.vue, resources/js/components/prestart/PrestartEntry.vue)
    • Developed Vue.js components to construct the checklist builder interface (PrestartMaster.vue) and input entry form (PrestartEntry.vue).

Changed

  • Prestart Checklist Admin API and Controller (app/Http/Controllers/Admin/PrestartChecklistController.php, routes/admin.php)
    • Integrated routes and controller methods to manage dynamic prestarts, including master(), getMasterData(), saveMasterData(), answersIndex(), answersCreate(), answersStore(), answersShow(), answersUpdate(), answersDestroy(), answersPrint(), and checkDuplicateAnswer().
  • Driver Prestart Checklist API (app/Http/Controllers/ApiDriver/PrestartChecklistController.php, routes/api-driver.php)
    • Integrated dynamic checklist config lookup (getDynamicConfig) and submissions (storeDynamic) endpoints for drivers.
  • Vehicle Administration Forms (app/Http/Controllers/Admin/VehicleController.php, app/Http/Controllers/Dashboard/VehicleController.php, app/Vehicle.php, resources/views/admin/vehicle/, resources/views/dashboard/vehicle/)
    • Updated controller actions, models, validation rules, and blade views to handle the new name and code properties on vehicles.
  • Helper Permissions checking (app/Helpers/PermissionHelper.php)
    • Updated permission helper definitions to accommodate prestart administration roles.

Fixed

  • Null Check on Order Additional Data (app/Http/Controllers/Admin/OrderController.php, app/OrderDetail.php, app/Repositories/InvoiceManagement.php, app/Repositories/OrderRentalRepository.php)
    • Fixed a null reference bug on order/invoice compilation when merging additional data arrays by falling back to '[]' when additional_data is empty or null, ensuring JSON decoding/decisions do not crash.

Removed

  • None.