
# Stage 2 – Retailer mobile interface

Added:
- Compose bottom navigation for Today and Overall history
- Search across customer name, CNIC and transaction reference
- Add transaction form
- Gallery image selection for CNIC front, CNIC back and receipt
- Camera capture for the same image types
- Multipart upload to private backend storage
- Retailer-scoped transaction image metadata endpoint
- Today's filter (`GET /api/transactions?today=1`)

## Image handling note
Camera capture currently uses the Android preview capture contract and stores a compressed JPEG in app cache. Gallery selection copies the selected content URI into app cache. Both are uploaded immediately after transaction creation. A future improvement is full-resolution camera capture and visual previews in the form/history.

## Build notes
Set `BASE_URL` in `android/app/build.gradle.kts` to your API endpoint. The server API must be deployed over HTTPS. For cPanel, keep private upload files outside `public_html` where possible.
