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), andprestart_answer_items(individual answer details).
- Added migrations for dynamic prestart tables:
- Soft Deletes Migration (
database/migrations/2026_06_24_154400_add_soft_deletes_to_prestart_answers_tables.php)- Added
deleted_atfields toprestart_answersandprestart_answer_itemstables to support soft deleting submissions.
- Added
- 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
nameandcodecolumns to thevehiclesdatabase table.
- Added
- 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).
- Developed Vue.js components to construct the checklist builder interface (
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(), andcheckDuplicateAnswer().
- Integrated routes and controller methods to manage dynamic prestarts, including
- 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.
- Integrated dynamic checklist config lookup (
- 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
nameandcodeproperties on vehicles.
- Updated controller actions, models, validation rules, and blade views to handle the new
- 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
'[]'whenadditional_datais empty or null, ensuring JSON decoding/decisions do not crash.
- Fixed a null reference bug on order/invoice compilation when merging additional data arrays by falling back to
Removed
- None.