## Summary
Integrates camera capture and VIN OCR into VehicleForm, completing the VIN photo capture flow.
- Add camera button next to VIN input field in VehicleForm
- VinCameraButton opens CameraCapture with VIN guidance overlay
- VinOcrReviewModal displays extracted VIN with confidence indicators
- High (>90%): green indicator
- Medium (70-90%): yellow indicator
- Low (<70%): orange indicator
- User can Accept, Edit Manually, or Retake Photo
- On accept, form auto-populates with extracted VIN and decoded vehicle data
- Mobile-responsive: bottom sheet on mobile, dialog on desktop
### User Flow
Camera -> Capture -> Crop (optional) -> OCR -> NHTSA Decode -> Review Modal -> Accept -> Form Populated
## Test Plan
- [ ] Camera button appears next to VIN input (mobile + desktop)
- [ ] CameraCapture opens with VIN guidance overlay
- [ ] Captured image sent to VIN OCR endpoint
- [ ] Review modal shows extracted VIN with confidence indicator
- [ ] Decoded vehicle info displays with per-field confidence
- [ ] Accept populates VIN and decoded fields in form
- [ ] Edit Manually sets only VIN, closes modal
- [ ] Retake restarts camera capture
- [ ] Error states displayed for OCR failures
- [ ] Mobile-responsive (320px - 768px)
- [ ] Desktop-responsive (1920px)
Refs #68
- Add VinCameraButton component that opens CameraCapture with VIN guidance
- Add VinOcrReviewModal showing extracted VIN and decoded vehicle data
- Confidence indicators (high/medium/low) for each field
- Mobile-responsive bottom sheet on small screens
- Accept, Edit Manually, or Retake Photo options
- Add useVinOcr hook orchestrating OCR extraction and NHTSA decode
- Update VehicleForm with camera button next to VIN input
- Form auto-populates with OCR result and decoded data on accept
Co-Authored-By: Claude Opus 4.5 <[email protected]>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
Integrates camera capture and VIN OCR into VehicleForm, completing the VIN photo capture flow.
User Flow
Camera -> Capture -> Crop (optional) -> OCR -> NHTSA Decode -> Review Modal -> Accept -> Form Populated
Test Plan
Refs #68