Skip to content

Conversation

@AsadAhmedSaiyed
Copy link
Contributor

@AsadAhmedSaiyed AsadAhmedSaiyed commented Oct 21, 2025

Fixes #12

  • Description:
    This PR addresses a UX issue on the Receipts page where the extracted receipt data would flash briefly and then the user would be automatically redirected to the dashboard.

  • Changes Made

  1. Removed the automatic redirect (navigate('/dashboard')) after a successful upload.
  2. Replaced the blocking alert() with a non-blocking toast notification using react-toastify.
  3. Ensures the “Last Upload Result” card remains visible after a successful OCR scan so users can review extracted data.
  4. No functional changes to the backend or OCR processing.
  5. Added "Go to Dashboard" button for screen sizes <767px.
  • Before
  1. After uploading a receipt, the page immediately navigated to the dashboard.
  2. Users could not verify the OCR results.
  • After
  1. Users remain on the Receipts page after a successful upload.
  2. A toast notification confirms the successful transaction creation.
  3. The Last Upload Result card displays the extracted data persistently.
  • Steps to Test
  1. Log in to the application.
  2. Navigate to the Receipts page.
  3. Select a valid receipt image and click Upload & Create Transaction.
  4. Observe that the Last Upload Result card populates with the extracted data.
  5. Confirm that a toast notification appears and the page does not redirect automatically.
  • Screenshot:
Screenshot 2025-10-21 205149

@netlify
Copy link

netlify bot commented Oct 21, 2025

Deploy Preview for paisable ready!

Name Link
🔨 Latest commit b4033d2
🔍 Latest deploy log https://app.netlify.com/projects/paisable/deploys/68f7a8243d3e5c000855dde2
😎 Deploy Preview https://deploy-preview-152--paisable.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 83
Accessibility: 100
Best Practices: 100
SEO: 91
PWA: 80
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Member

@archa8 archa8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@archa8 archa8 merged commit 06b4bf3 into Code-A2Z:master Oct 31, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: OCR result on Receipts page disappears immediately after upload

2 participants