Skip to content

feat: Add review and confirm for OCR #11

@archa8

Description

@archa8

Problem or Need

Currently, when a user uploads a receipt, the data extracted by the Gemini AI is used to create a transaction automatically. However, AI/OCR is not always 100% accurate. This can lead to incorrect transaction details (wrong amount, date, or merchant) being saved without the user's approval, forcing them to find and edit the transaction later.

Proposed Solution

Introduce a "Review and Confirm" step in the receipt processing workflow. After the Gemini API extracts the data, instead of creating the transaction immediately, the application should present the extracted data to the user in an editable form for their review and confirmation.

Expected Behavior

  1. The user uploads a receipt on the "Receipts" page.
  2. After the AI processing is complete, the TransactionModal opens automatically.
  3. The fields in the modal (Name, Category, Amount, Date) are pre-populated with the data extracted from the receipt.
  4. The user can review the data, make any necessary corrections, and then click "Save."
    Only after the user clicks "Save" is the new transaction created.

Benefits

  • Improved Accuracy: Gives the user full control over their data and ensures only correct information is saved.
  • Better UX: Creates a more interactive and trustworthy workflow, preventing user frustration from incorrect automatic entries.
  • Error Correction: Provides a seamless way for users to correct any mistakes made by the OCR.

Metadata

Metadata

Labels

featureSuggest a new feature for the projecthacktoberfestIssues marked with this label are part of Hacktoberfest and open for contributions

Type

No type

Projects

Status

done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions