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

[HOLD for payment 2024-04-25] [$250] [HOLD for payment 2024-04-17] [Android] VisionCamera not displaying when permission first given #38796

Closed
Julesssss opened this issue Mar 22, 2024 · 28 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Weekly KSv2

Comments

@Julesssss
Copy link
Contributor

Julesssss commented Mar 22, 2024

Problem

When first approving the camera permission, the camera doesn't display:

  • Create a non-scan money request to someone
  • Remove camera permissions
  • Kill and reopen app
  • Tap request money
  • Try to scan receipt
  • Permission prompt is shown
  • Choose 'Just this time'
  • Camera view remains black
  • Close the page, then reopen it
  • Camera view works as expected

We're resolving this seperately as discussed here.

314057395-c4f31173-ca78-446f-9f7f-c256fc6fd68e.mp4
Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01cf28de4f7cebf39a
  • Upwork Job ID: 1779703287335849984
  • Last Price Increase: 2024-04-15
  • Automatic offers:
    • DylanDylann | Contributor | 0
@Julesssss Julesssss added Weekly KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Mar 22, 2024
@Julesssss Julesssss self-assigned this Mar 22, 2024
Copy link

melvin-bot bot commented Mar 22, 2024

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

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Mar 22, 2024
@melvin-bot melvin-bot bot added the Overdue label Mar 25, 2024
@mrousavy
Copy link
Contributor

👋

@greg-schroeder
Copy link
Contributor

Hey @Julesssss this will be Internal right? Or handled by an agency?

@melvin-bot melvin-bot bot removed the Overdue label Mar 25, 2024
@Julesssss
Copy link
Contributor Author

@mrousavy from Margelo is handling this one for, so it's external but not open to contributors

@greg-schroeder
Copy link
Contributor

Based on roadmap I would guess #wave-collect makes the most sense

@greg-schroeder
Copy link
Contributor

Assigning @mrousavy per #38796 (comment)

@mrousavy
Copy link
Contributor

mrousavy commented Apr 3, 2024

Isn't this a duplicate of #39043?

@Julesssss
Copy link
Contributor Author

Thanks I closed the other one

@chrispader
Copy link
Contributor

The problem here, is that useTabNavigatorFocus() gives us a current tabIndex of 0 instead of 1 once we render the NavigationAwareCamera. Because it is 0 and not 1, isCameraActive will be false and therefore the camera will not be activated.

const isCameraActive = useTabNavigatorFocus({tabIndex: cameraTabIndex});

I suppose, the reason for this is that because we just requested camera permissions, which opens up the system Android dialog, the logic in @react-navigation/material-top-tabs will not calculate the correct position somewhere in this file/package: https://github.com/react-navigation/react-navigation/blob/main/packages/react-native-tab-view/src/PanResponderAdapter.tsx

I will try to update the react-navigation patch later today. A dirty hack to fix this in the Expensify codebase would be to just programmatically "swipe" between the tabs by like 1px. This will trigger the logic again and the tabIndex will be updated.

Copy link

melvin-bot bot commented Apr 5, 2024

@Julesssss @mrousavy @greg-schroeder this issue was created 2 weeks ago. Are we close to a solution? Let's make sure we're treating this as a top priority. Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@melvin-bot melvin-bot bot added the Overdue label Apr 5, 2024
@greg-schroeder
Copy link
Contributor

Pending @mrousavy's progress here

@melvin-bot melvin-bot bot removed the Overdue label Apr 5, 2024
@greg-schroeder greg-schroeder added the External Added to denote the issue can be worked on by a contributor label Apr 15, 2024
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2024-04-17] [Android] VisionCamera not displaying when permission first given [$250] [HOLD for payment 2024-04-17] [Android] VisionCamera not displaying when permission first given Apr 15, 2024
Copy link

melvin-bot bot commented Apr 15, 2024

Job added to Upwork: https://www.upwork.com/jobs/~01cf28de4f7cebf39a

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 15, 2024
@greg-schroeder
Copy link
Contributor

Adding External to create an upwork job

Copy link

melvin-bot bot commented Apr 15, 2024

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

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Apr 15, 2024
@greg-schroeder greg-schroeder added Weekly KSv2 and removed Help Wanted Apply this label when an issue is open to proposals by contributors Daily KSv2 labels Apr 15, 2024
@greg-schroeder
Copy link
Contributor

Offer sent to @DylanDylann for the C+ role

@DylanDylann
Copy link
Contributor

@greg-schroeder As this announcement

Any issues created before this date will maintain their original stated price.

Should we update the original price of this issue to $500?

@greg-schroeder
Copy link
Contributor

You can just accept the offer, I'll pay an extra $250 as a bonus on 4/17

@DylanDylann
Copy link
Contributor

@greg-schroeder accepted. Thanks

@trjExpensify trjExpensify added the Awaiting Payment Auto-added when associated PR is deployed to production label Apr 18, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Apr 18, 2024
@melvin-bot melvin-bot bot changed the title [$250] [HOLD for payment 2024-04-17] [Android] VisionCamera not displaying when permission first given [HOLD for payment 2024-04-25] [$250] [HOLD for payment 2024-04-17] [Android] VisionCamera not displaying when permission first given Apr 18, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Apr 18, 2024
Copy link

melvin-bot bot commented Apr 18, 2024

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented Apr 18, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.62-17 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-25. 🎊

For reference, here are some details about the assignees on this issue:

  • @mrousavy does not require payment (Contractor)
  • @thesahindia requires payment through NewDot Manual Requests

Copy link

melvin-bot bot commented Apr 18, 2024

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:

  • [@thesahindia] The PR that introduced the bug has been identified. Link to the PR:
  • [@thesahindia] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@thesahindia] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@thesahindia] Determine if we should create a regression test for this bug.
  • [@thesahindia] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@greg-schroeder] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@greg-schroeder
Copy link
Contributor

Paid

Copy link

melvin-bot bot commented Apr 18, 2024

📣 @DylanDylann 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@github-project-automation github-project-automation bot moved this from Polish to Done in [#whatsnext] #wave-collect Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Weekly KSv2
Projects
No open projects
Archived in project
Development

No branches or pull requests

7 participants