chore: UX design audit cleanup and receipt flow improvements #186

Merged
egullickson merged 25 commits from issue-162-ux-design-audit-cleanup into main 2026-02-14 03:50:23 +00:00
2 changed files with 6 additions and 4 deletions
Showing only changes of commit 5877b531f9 - Show all commits

View File

@@ -15,12 +15,13 @@ const SUPPORTED_TYPES = new Set([
'application/pdf', 'application/pdf',
]); ]);
/** Image-only MIME types for receipt extraction (no PDF) */ /** Image-only MIME types for receipt extraction */
const SUPPORTED_IMAGE_TYPES = new Set([ const SUPPORTED_IMAGE_TYPES = new Set([
'image/jpeg', 'image/jpeg',
'image/png', 'image/png',
'image/heic', 'image/heic',
'image/heif', 'image/heif',
'application/pdf',
]); ]);
export class OcrController { export class OcrController {
@@ -268,7 +269,7 @@ export class OcrController {
}); });
return reply.code(415).send({ return reply.code(415).send({
error: 'Unsupported Media Type', error: 'Unsupported Media Type',
message: `Unsupported file type: ${contentType}. Supported: JPEG, PNG, HEIC`, message: `Unsupported file type: ${contentType}. Supported: JPEG, PNG, HEIC, PDF`,
}); });
} }
@@ -380,7 +381,7 @@ export class OcrController {
}); });
return reply.code(415).send({ return reply.code(415).send({
error: 'Unsupported Media Type', error: 'Unsupported Media Type',
message: `Unsupported file type: ${contentType}. Supported: JPEG, PNG, HEIC`, message: `Unsupported file type: ${contentType}. Supported: JPEG, PNG, HEIC, PDF`,
}); });
} }

View File

@@ -31,12 +31,13 @@ const SUPPORTED_TYPES = new Set([
'application/pdf', 'application/pdf',
]); ]);
/** Image-only MIME types for receipt extraction (no PDF) */ /** MIME types for receipt extraction */
const SUPPORTED_IMAGE_TYPES = new Set([ const SUPPORTED_IMAGE_TYPES = new Set([
'image/jpeg', 'image/jpeg',
'image/png', 'image/png',
'image/heic', 'image/heic',
'image/heif', 'image/heif',
'application/pdf',
]); ]);
/** /**