feat: Improve VIN decode confidence reporting and make/model/trim editability (#125) #126

Merged
egullickson merged 1 commits from issue-125-improve-vin-confidence-editability into main 2026-02-09 01:40:15 +00:00
Owner

Fixes #125

Summary

  • VIN OCR confidence now reflects recognition accuracy only (percentage), not per-field matching quality
  • VIN review modal replaces read-only decoded fields with editable cascade dropdown selectors
  • Dropdowns pre-populated from NHTSA decode, with NHTSA reference hints for unmatched fields
  • Removed "Edit Manually" button -- fields are directly editable in the modal
  • Cascade behavior works: changing Make reloads Models, changing Model reloads Trims, etc.
  • Engine and Transmission follow the same editable dropdown pattern

Changes

File Change
vehicles.types.ts Added VinReviewSelections interface
VinOcrReviewModal.tsx Major rewrite: OCR confidence + editable cascade dropdowns
VehicleForm.tsx Updated to receive modal selections via VinReviewSelections

Acceptance Criteria

  • Confidence score reflects OCR accuracy of the VIN string only
  • Confidence does NOT factor in Make/Model/Trim matching success
  • Make/Model/Trim are presented as editable dropdown selectors after VIN decode
  • Dropdowns are pre-populated with decoded values but immediately changeable
  • Cascade behavior works (changing Make reloads Models, etc.)
  • Engine and Transmission follow the same editable dropdown pattern
  • No "Edit" button required to change Make/Model/Trim values
  • Works on both mobile and desktop viewports
  • Existing VIN camera capture flow is not regressed

Test Plan

  • Verify VIN camera capture still works end-to-end
  • Verify confidence shows OCR percentage (not per-field match quality)
  • Verify decoded fields appear as editable dropdowns in review modal
  • Verify cascade behavior: change Make -> Models reload
  • Verify NHTSA hints appear for unmatched fields
  • Verify Accept passes selected values to form correctly
  • Test on mobile (320px, 768px) and desktop (1920px) viewports
  • Verify manual VIN decode button still works separately
Fixes #125 ## Summary - VIN OCR confidence now reflects recognition accuracy only (percentage), not per-field matching quality - VIN review modal replaces read-only decoded fields with editable cascade dropdown selectors - Dropdowns pre-populated from NHTSA decode, with NHTSA reference hints for unmatched fields - Removed "Edit Manually" button -- fields are directly editable in the modal - Cascade behavior works: changing Make reloads Models, changing Model reloads Trims, etc. - Engine and Transmission follow the same editable dropdown pattern ## Changes | File | Change | |------|--------| | `vehicles.types.ts` | Added `VinReviewSelections` interface | | `VinOcrReviewModal.tsx` | Major rewrite: OCR confidence + editable cascade dropdowns | | `VehicleForm.tsx` | Updated to receive modal selections via `VinReviewSelections` | ## Acceptance Criteria - [x] Confidence score reflects OCR accuracy of the VIN string only - [x] Confidence does NOT factor in Make/Model/Trim matching success - [x] Make/Model/Trim are presented as editable dropdown selectors after VIN decode - [x] Dropdowns are pre-populated with decoded values but immediately changeable - [x] Cascade behavior works (changing Make reloads Models, etc.) - [x] Engine and Transmission follow the same editable dropdown pattern - [x] No "Edit" button required to change Make/Model/Trim values - [x] Works on both mobile and desktop viewports - [x] Existing VIN camera capture flow is not regressed ## Test Plan - [ ] Verify VIN camera capture still works end-to-end - [ ] Verify confidence shows OCR percentage (not per-field match quality) - [ ] Verify decoded fields appear as editable dropdowns in review modal - [ ] Verify cascade behavior: change Make -> Models reload - [ ] Verify NHTSA hints appear for unmatched fields - [ ] Verify Accept passes selected values to form correctly - [ ] Test on mobile (320px, 768px) and desktop (1920px) viewports - [ ] Verify manual VIN decode button still works separately
egullickson added 1 commit 2026-02-09 01:25:12 +00:00
feat: improve VIN confidence reporting and editable review dropdowns (refs #125)
All checks were successful
Deploy to Staging / Build Images (pull_request) Successful in 4m37s
Deploy to Staging / Deploy to Staging (pull_request) Successful in 51s
Deploy to Staging / Verify Staging (pull_request) Successful in 9s
Deploy to Staging / Notify Staging Ready (pull_request) Successful in 8s
Deploy to Staging / Notify Staging Failure (pull_request) Has been skipped
e9020dbb2f
VIN OCR confidence now reflects recognition accuracy only (not match quality).
Review modal replaces read-only fields with editable cascade dropdowns
pre-populated from NHTSA decode, with NHTSA reference hints for unmatched fields.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
egullickson merged commit 8248b1a732 into main 2026-02-09 01:40:15 +00:00
egullickson deleted branch issue-125-improve-vin-confidence-editability 2026-02-09 01:40:16 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: egullickson/motovaultpro#126