Add job evidence checkpoints, damage reports, signatures and VIN OCR driver intake#396
Merged
proforcetech merged 2 commits intomainfrom Jan 4, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Description
database/migrations/055_job_evidence_and_signatures.sqlwhich createsjob_checkpoint_media,job_damage_reports, andjob_signaturestables.JobDamageReportandJobSignatureand a serviceWorkorderJobEvidenceServiceimplementing checkpoint uploads, damage report creation/listing, and signature capture with audit logging.WorkorderRepository::updateJobStatusto callassertCheckpointEvidenceand adding helpers that query checkpoint counts.routes/api.phpandWorkorderController: checkpoint upload (POST /api/workorders/{id}/jobs/{jobId}/checkpoints/{checkpointType}), checkpoint status (GET /api/workorders/{id}/jobs/{jobId}/checkpoints), damage reports (POST/GET /api/workorders/{id}/jobs/{jobId}/damage-reports), and job signature capture (POST /api/workorders/{id}/jobs/{jobId}/signature).src/react/views/driver/DriverJobIntake.jsxwith VIN OCR (usestesseract.js), a tap-to-mark damage diagram, and checkpoint upload UI, and register the view insrc/react/router/index.jsx.src/services/workorder.service.jsto support checkpoint upload, checkpoint status, damage reports, and job signature calls, and addtesseract.jstopackage.json/package-lock.json.Testing
npm install tesseract.js --legacy-peer-depswhich completed successfully.npm run dev) and used a Playwright script to load/cp/driver/job-intakeand capture a screenshot of the new view, which rendered successfully and producedartifacts/driver-job-intake.png.database/migrations/055_job_evidence_and_signatures.sqlwhen deploying or running migrations locally.Codex Task