Skip to content
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] Scan - Error shows up when tapping on capture button #31328

Closed
2 of 6 tasks
kbecciv opened this issue Nov 15, 2023 · 14 comments
Closed
2 of 6 tasks

[$500] Scan - Error shows up when tapping on capture button #31328

kbecciv opened this issue Nov 15, 2023 · 14 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors

Comments

@kbecciv
Copy link

kbecciv commented Nov 15, 2023

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.3.99.0
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:

  1. Launch New Expensify app.
  2. Tap + > Request money > Scan.
  3. Tap Continue.
  4. Allow camera access.
  5. Tap capture button.

Expected Result:

User is able to take a photo.

Actual Result:

Error shows up when tapping on capture button

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6276705_1700008946890.Screen_Recording_20231115_082000_New_Expensify.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~016c56226964146dd4
  • Upwork Job ID: 1724589749726212096
  • Last Price Increase: 2023-11-29
Issue OwnerCurrent Issue Owner: @eVoloshchak
@kbecciv kbecciv added External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Nov 15, 2023
@melvin-bot melvin-bot bot changed the title Scan - Error shows up when tapping on capture button [$500] Scan - Error shows up when tapping on capture button Nov 15, 2023
Copy link

melvin-bot bot commented Nov 15, 2023

Job added to Upwork: https://www.upwork.com/jobs/~016c56226964146dd4

Copy link

melvin-bot bot commented Nov 15, 2023

Triggered auto assignment to @strepanier03 (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Nov 15, 2023
Copy link

melvin-bot bot commented Nov 15, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

Copy link

melvin-bot bot commented Nov 15, 2023

Triggered auto assignment to Contributor-plus team member for initial proposal review - @eVoloshchak (External)

@tienifr
Copy link
Contributor

tienifr commented Nov 15, 2023

Proposal

Please re-state the problem that we are trying to solve in this issue.

Error shows up when tapping on capture button

What is the root cause of that problem?

We're not forwarding ref properly inside withTabAnimation, so the ref of camera is undefined, causing the error to show. Particularly, we're just passing ref as a prop to WithTabAnimation and WrappedComponentWithTabAnimation without using React.forwardRef, which will not work.

What changes do you think we should make in order to solve the problem?

Forward ref properly inside withTabAnimation by using React.forwardRef. We need to use it for both WithTabAnimation and WrappedComponentWithTabAnimation as well, not just WithTabAnimationWithRef.

After we implement it properly for WithTabAnimation and WrappedComponentWithTabAnimation, we can potentially remove WithTabAnimationWithRef since it doesn't serve any purpose now.

The final code for withTabAnimation will look like:

const WrappedComponentWithTabAnimation = React.forwardRef((props, ref) => {
...
}

const WithTabAnimation = React.forwardRef((props, ref) => {
...
}

return WithTabAnimation;

What alternative solutions did you explore? (Optional)

NA

@strepanier03
Copy link
Contributor

Able to repro on 1.3.99.0. Looks like we had a fix for this that produced a regression.

@melvin-bot melvin-bot bot added the Overdue label Nov 20, 2023
@strepanier03
Copy link
Contributor

Gentle bump @eVoloshchak for the proposal here.

@melvin-bot melvin-bot bot removed the Overdue label Nov 21, 2023
Copy link

melvin-bot bot commented Nov 22, 2023

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

Copy link

melvin-bot bot commented Nov 24, 2023

@eVoloshchak, @strepanier03 Whoops! This issue is 2 days overdue. Let's get this updated quick!

@melvin-bot melvin-bot bot added the Overdue label Nov 24, 2023
@eVoloshchak
Copy link
Contributor

I cannot reproduce the issue on both iOS and Android, looks like this has been resolved
@tienifr, could you double-check if this is still reproducible for you?

@melvin-bot melvin-bot bot removed the Overdue label Nov 27, 2023
@strepanier03
Copy link
Contributor

I can no longer repro either. My guess is the fix that caused a regression is back in place now. I think we can likely close this one but I'll wait for @tienifr to weigh in before taking any action.

Copy link

melvin-bot bot commented Nov 29, 2023

@eVoloshchak @strepanier03 this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

Copy link

melvin-bot bot commented Nov 29, 2023

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@melvin-bot melvin-bot bot added the Overdue label Nov 29, 2023
@strepanier03
Copy link
Contributor

Going to close this out, we can reopen if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors
Projects
None yet
Development

No branches or pull requests

4 participants