feat: update frontend for Gemini VIN decode (refs #228)
All checks were successful
Deploy to Staging / Build Images (pull_request) Successful in 6m31s
Deploy to Staging / Deploy to Staging (pull_request) Successful in 23s
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
All checks were successful
Deploy to Staging / Build Images (pull_request) Successful in 6m31s
Deploy to Staging / Deploy to Staging (pull_request) Successful in 23s
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
Rename nhtsaValue to sourceValue in frontend MatchedField type and VinOcrReviewModal component. Update NHTSA references to vehicle database across guide pages, hooks, and API documentation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @ai-summary Hook to orchestrate VIN OCR extraction and NHTSA decode
|
||||
* @ai-summary Hook to orchestrate VIN OCR extraction and VIN decode
|
||||
* @ai-context Handles camera capture -> OCR extraction -> VIN decode flow
|
||||
*/
|
||||
|
||||
@@ -109,7 +109,7 @@ export function useVinOcr(): UseVinOcrReturn {
|
||||
);
|
||||
}
|
||||
|
||||
// Step 2: Decode VIN using NHTSA
|
||||
// Step 2: Decode VIN
|
||||
setProcessingStep('decoding');
|
||||
let decodedVehicle: DecodedVehicleData | null = null;
|
||||
let decodeError: string | null = null;
|
||||
@@ -121,7 +121,7 @@ export function useVinOcr(): UseVinOcrReturn {
|
||||
if (err.response?.data?.error === 'TIER_REQUIRED') {
|
||||
decodeError = 'VIN decode requires Pro or Enterprise subscription';
|
||||
} else if (err.response?.data?.error === 'INVALID_VIN') {
|
||||
decodeError = 'VIN format is not recognized by NHTSA';
|
||||
decodeError = 'VIN format is not recognized';
|
||||
} else {
|
||||
decodeError = 'Unable to decode vehicle information';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user