-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[C+ Checklist Needs Completion] [$500] Android - Scan - Second tap on capture button causes error to show up #36520
Comments
Job added to Upwork: https://www.upwork.com/jobs/~017ba8b79a30323bee |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @hoangzinh ( |
Triggered auto assignment to @greg-schroeder ( |
We think that this bug might be related to #wave5 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Android - Scan - Second tap on capture button causes error to show up What is the root cause of that problem?This is multiple levels of issues causing the problem.
What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional)See previous proposal. original proposalProposalPlease re-state the problem that we are trying to solve in this issue.Android - Scan - Second tap on capture button causes error to show up What is the root cause of that problem?In What changes do you think we should make in order to solve the problem?Add a new flag What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.Android - Scan - Second tap on capture button causes error to show up What is the root cause of that problem?When we call App/src/pages/iou/request/step/IOURequestStepScan/index.native.js Lines 234 to 237 in 04d7efd
What changes do you think we should make in order to solve the problem?We need to use Result |
So I see these on upwork. Are they taken or finished since they have a proposal? If I apply there am I wasting connects? I can update this one for sure. You can also disable the button or remove the click handler and add it back later. |
📣 @EnderKilledYou! 📣
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
ProposalUpdate the button handler to disable the button to prevent further inputs Please re-state the problem that we are trying to solve in this issue.The button is able to be clicked multiple times before being prevented What is the root cause of that problem?Not disabling the button via a state on first click What changes do you think we should make in order to solve the problem?Update the button handler to disable the button to prevent further inputs USe the disabled tag. This is very common practice and is well tested. |
@agent3bood @Krishna2323 @EnderKilledYou Thanks for proposals, everyone. I think we found the reason why it shows error but I don't think we found the root cause yet. The capture button is using
We need to find out why it doesn't work in this case. |
Still waiting on new proposals given @hoangzinh's comment above |
The issue is because of the async function
Buy why are we still to click twice? |
I think @agent3bood is correct here. |
great found @agent3bood. Btw App/src/hooks/useSingleExecution/index.native.ts Lines 25 to 34 in e3331db
|
@hoangzinh yes it is possible, I have checked the code, for the native
Should I update my proposal with the new fix? |
@agent3bood yes please, could you check if it works on Web platform as well? |
@hoangzinh proposal updates, web is not affected by this issue. |
Thanks @agent3bood. Could you include your previous root cause analytics in your current proposal? Because your current root cause is explaining why Beside that,
Do you mean child components in IOURequestStepScan?
Could you elaborate on what you mean here? Thanks |
@hoangzinh updated.
I added two places where it need to be updated, |
Thanks. @agent3bood proposal #36520 (comment) looks good to me. He pointed out the correct root cause and provided a solution that helped solve the issue well. 🎀👀🎀 C+ reviewed |
@agent3bood @hoangzinh @greg-schroeder @techievivek this issue is now 4 weeks old and preventing us from maintaining WAQ, can you:
Thanks! |
Current assignee @hoangzinh is eligible for the Internal assigner, not assigning anyone new. |
PR is merged. Awaiting deploy to staging -> prod |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.60-13 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-04-15. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Payment summary: @agent3bood - $500 - C |
The upwork issue closed for inactivity, creating a new one via #40222 Offers sent manually - please accept them and I can pay them out tomorrow. Last up is @hoangzinh to take care of the checklist :) |
Accepeted. Thanks @greg-schroeder. I will complete the checklist today |
Regression Test ProposalOn Native Apps/mWeb:
Do we agree 👍 or 👎 |
BugZero Checklist:
|
Regression test looks good to me. @greg-schroeder Can we get this added? Thanks. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.41-3
Reproducible in staging?: Y
Reproducible in production?: Y
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
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:
Precondition: Camera access is allowed
Expected Result:
The second tap on the capture button should be disabled and no error will show up
Actual Result:
The second tap on the capture button is enabled, causing error to show up
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6379529_1707925292817.Screen_Recording_20240214_215216_New_Expensify.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: