feat: Expand OCR with fuel receipt scanning and maintenance extraction (#129) #147

Merged
egullickson merged 26 commits from issue-129-expand-ocr-fuel-receipt-maintenance into main 2026-02-13 02:25:55 +00:00
3 changed files with 10 additions and 5 deletions
Showing only changes of commit c79b610145 - Show all commits

View File

@@ -48,6 +48,8 @@ export const ReceiptCameraButton: React.FC<ReceiptCameraButtonProps> = ({
size={size}
aria-label={locked ? 'Scan receipt (Pro feature)' : 'Scan receipt with camera'}
sx={{
minWidth: 44,
minHeight: 44,
backgroundColor: locked ? 'action.disabledBackground' : 'primary.light',
color: locked ? 'text.secondary' : 'primary.contrastText',
'&:hover': {
@@ -77,6 +79,7 @@ export const ReceiptCameraButton: React.FC<ReceiptCameraButtonProps> = ({
startIcon={locked ? <LockOutlinedIcon /> : <ReceiptIcon />}
endIcon={locked ? undefined : <CameraAltIcon />}
sx={{
minHeight: 44,
borderStyle: 'dashed',
'&:hover': {
borderStyle: 'solid',

View File

@@ -430,14 +430,14 @@ export const ReceiptOcrReviewModal: React.FC<ReceiptOcrReviewModalProps> = ({
<Button
onClick={onRetake}
startIcon={<CameraAltIcon />}
sx={{ order: isMobile ? 2 : 1 }}
sx={{ order: isMobile ? 2 : 1, minHeight: 44 }}
>
Retake Photo
</Button>
<Box sx={{ flex: 1, display: isMobile ? 'none' : 'block' }} />
<Button
onClick={onCancel}
sx={{ order: isMobile ? 3 : 2 }}
sx={{ order: isMobile ? 3 : 2, minHeight: 44 }}
>
Cancel
</Button>
@@ -445,7 +445,7 @@ export const ReceiptOcrReviewModal: React.FC<ReceiptOcrReviewModalProps> = ({
variant="contained"
onClick={onAccept}
startIcon={<CheckIcon />}
sx={{ order: isMobile ? 1 : 3, width: isMobile ? '100%' : 'auto' }}
sx={{ order: isMobile ? 1 : 3, width: isMobile ? '100%' : 'auto', minHeight: 44 }}
>
Accept
</Button>

View File

@@ -79,6 +79,8 @@ export const UpgradeRequiredDialog: React.FC<UpgradeRequiredDialogProps> = ({
position: 'absolute',
right: 8,
top: 8,
minWidth: 44,
minHeight: 44,
color: (theme) => theme.palette.grey[500],
}}
>
@@ -157,7 +159,7 @@ export const UpgradeRequiredDialog: React.FC<UpgradeRequiredDialogProps> = ({
onClick={onClose}
variant="outlined"
fullWidth={isSmall}
sx={{ order: isSmall ? 2 : 1 }}
sx={{ order: isSmall ? 2 : 1, minHeight: 44 }}
>
Maybe Later
</Button>
@@ -166,7 +168,7 @@ export const UpgradeRequiredDialog: React.FC<UpgradeRequiredDialogProps> = ({
variant="contained"
color="primary"
fullWidth={isSmall}
sx={{ order: isSmall ? 1 : 2 }}
sx={{ order: isSmall ? 1 : 2, minHeight: 44 }}
>
Upgrade (Coming Soon)
</Button>