chore: integrate AddReceiptDialog into MaintenanceRecordForm (#182) #184
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Relates to #182
Summary
Replace the current
ReceiptCameraButton("Scan Receipt") inMaintenanceRecordFormwith an "Add Receipt" button that opens the newAddReceiptDialog. Wire both upload and camera paths to the existing OCR processing pipeline.Scope
frontend/src/features/maintenance/components/MaintenanceRecordForm.tsxReceiptCameraButtonimport (from fuel-logs)AddReceiptDialogimportshowAddReceiptDialogstate (useState)ReceiptCameraButton(lines 249-270) with MUI Button labeled "Add Receipt"AddReceiptDialogcomponent with wiring:onFileSelect-> close dialog,handleCaptureImage(file)onStartCamera-> close dialog,startCapture()Acceptance Criteria