Skip to content

Update manual entry form: Add image upload, remove product name/cateory fields, improve error handling#2

Open
Charleschtsoi wants to merge 1 commit intomainfrom
inventory-setup-8ca16
Open

Update manual entry form: Add image upload, remove product name/cateory fields, improve error handling#2
Charleschtsoi wants to merge 1 commit intomainfrom
inventory-setup-8ca16

Conversation

@Charleschtsoi
Copy link
Copy Markdown
Owner

@Charleschtsoi Charleschtsoi commented Jan 14, 2026

Update manual entry form: Add image upload, remove product name/cateory fields, improve error handling


Note

Introduces a new manual entry flow focused on image + batch code, and adjusts error handling to seamlessly guide users when AI analysis fails.

  • Integrates expo-image-picker (and expo-image-loader) to upload and preview a required product image; adds related styles and permission handling
  • Replaces manual name/category fields with required Product Image and Batch Code plus Expiry Date; pre-fills batch code with scanned code and allows editing
  • On AI analysis failure, suppresses error overlays, shows friendly guidance, and immediately opens the manual entry modal
  • Manual submit computes status from expiry, sets name to Manual Entry, flags isManualEntry, and stores imageUri for potential future use
  • Adds cancel/reset logic for manual modal state and updates UI copy/styles throughout App.js

Written by Cursor Bugbot for commit 63234eb. This will update automatically on new commits. Configure here.

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.

1 participant