-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[$500] Android - IOU - Validation message not shown when file above 25mb for Smart Recipe was selected #27389
Comments
Triggered auto assignment to @sakluger ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalProblemValidation message not shown when file above 25mb for Smart Recipe was selected Root causeThere is no validation of file size or any other validation on after image is picked ChangesValidate the image picked by user for fileSize.(Asset picked by user has a fileSize property https://www.npmjs.com/package/react-native-image-picker) showImagePicker(launchImageLibrary)
.then((receiptImage) => {
if (receiptImage[0].fileSize > CONST.IOU.MAX_RECEIPT_FILE_SIZE) {
// show error modal if the file size is too large
} else if (receiptImage[0].fileSize < CONST.IOU.MIN_RECEIPT_FILE_SIZE) {
// show error modal if the file size is too small
} |
ProposalPlease re-state the problem that we are trying to solve in this issue.Android - IOU - Validation message not shown when file above 25mb for Smart Recipe was selected What is the root cause of that problem?In the callback after select file in Native platforms, we haven't validate the valid of file, including file type & file size yet App/src/pages/iou/ReceiptSelector/index.native.js Lines 260 to 269 in 6764fd1
Like we did for default platform here App/src/pages/iou/ReceiptSelector/index.js Lines 80 to 82 in 6764fd1
Lines 12 to 30 in 6764fd1
What changes do you think we should make in order to solve the problem?
|
Looks like this may be a regression from #25865, I've commented in that issue for clarification. |
Okay it's not a regression because we didn't ever have the size validation on mobile. As part of this fix, let's make sure we add the validation across all platforms where it hasnt been added yet. |
Job added to Upwork: https://www.upwork.com/jobs/~01898f68a06cf0cea0 |
Current assignee @sakluger is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @allroundexperts ( |
Thanks for your proposal @hoangzinh. However, I think your proposal has the same approach as previously mentioned by @ishpaul777. As such, I think we should go with the first proposal. @ishpaul777's proposal looks good to me. @ishpaul777 Let's use the validation function we already have instead of re-writing the validation logic. 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @deetergp, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Good enough for me, let's go with @ishpaul777's proposal. |
📣 @allroundexperts Please request via NewDot manual requests for the Reviewer role ($500) |
📣 @ishpaul777 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
This issue has not been updated in over 15 days. @deetergp, @sakluger, @allroundexperts, @ishpaul777 eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
@ishpaul777 Any updates? Do we need to raise the price and make this generally available agin? |
Sorry for no update @deetergp, i don't think raising price is necessary but i'd request for reset of days limit, i already completed the most part but there is a unresolved issue that requires you thoughts and approval |
gentle bump @deetergp |
My apologies but the thread on this one is very hard to follow. Can someone please summarize what is going on and where we are at with this issue? @ishpaul777 @allroundexperts |
I suggest to put this on hold for #29963 |
On IOS, sometimes the transition when opening the modal is not smooth, I believe the Root cause is that closing of photos gallery and Confirm modal overlaps, so i have added a delay in opening in the modal @allroundexperts has not approved the change and didn't provide any feedback |
@ishpaul777 Please see #27960 (comment) |
Okay i see there is some missunderstanding i replied everytime @allroundexperts bumped but my reply didn't get to them because of some issue with GH thread showing pending (i didn't realized the pending label is for not delivered) |
I'd like to understand why we are using the Native Alert Modal instead of a Custom Modal in our project. This might create inconsistency since we use Custom Modals on the web. Is there a specific reason for this choice? I'm concerned that my work in #27960 might be wasted if the issue is already addressed in #29963. Should I close the PR? |
Native alert is already used in various parts: corrupted image, download, permission, camera errors |
I meant for similar case like validation error on web has a custom modal I think? |
yes because web native alert is ugly |
If we should use custom alert for all platforms for consistency, we should fix it for all cases, not only this one. |
In summary, we are addressing this issue in #29663. I agree with @situchan we place this issue on hold for #29663. Additionally, I'm closing #27960 since there's already a pull request handling the issue. Given that there is decent effort invested, should I expect of receiving a partial payment for this issue? Do we agree 👍 or 👎 |
Hm... Yes, holding makes sense. @ishpaul777 I'm not sure if we consider partial payments for issues that are on hold. |
@deetergp, @sakluger, @allroundexperts, @ishpaul777, this Monthly task hasn't been acted upon in 6 weeks; closing. If you disagree, feel encouraged to reopen it -- but pick your least important issue to close instead. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Issue found when executing PR #27089
Action Performed:
Expected Result:
The validation message should be show when user tries use the photo larger than 25mb for Smart Recipe
Actual Result:
Validation message not shown and user able to request money with smart recipe option when file is larger than 25mb
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.69-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Bug6199398_screen-20230913-181013.mp4
Bug6199398_screen-20230913-195040.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: