App icon indicating copy to clipboard operation
App copied to clipboard

Add back the QR code download button

Open lakchote opened this issue 1 year ago • 7 comments

QR code download doesn't work anymore (as of today) since the new arch (Fabric PR) got merged.

TL;DR: react-native-view-shot does not support new arch yet.

It was decided here to hide the Download button for QR code in the meantime, to prevent users from encountering bugs and degrading user experience.

When the update 0.74 for react-native is available, we should:

  • use it so react-native-view-shot works again as intended
  • Revert PR here and show back the Download button.
Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01d1641a383b71483e
  • Upwork Job ID: 1778781286743756800
  • Last Price Increase: 2024-04-12

lakchote avatar Apr 11 '24 13:04 lakchote

Proposal

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

QR code download using react-native-view-shot doesn't work after moving to the new arch.

What is the root cause of that problem?

The react-native-view-shot library has introduced the new architecture support in latest version, but we are still using 3.8.0. (https://github.com/gre/react-native-view-shot/pull/516)

Also, these changes in react-native need to be included.

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

Add patch for the view-shot library with the changes for the new architecture or bump the version to 4.0.0-alpha.0. Add patch for these changes in react-native.

Note: This is same as my proposal here.

ShridharGoel avatar Apr 12 '24 09:04 ShridharGoel

@ShridharGoel thanks for your proposal but please refrain posting proposals in issues where the Help wanted label is not present.

Instead, post (like you did) in the issue where proposals are allowed, thank you!

lakchote avatar Apr 12 '24 13:04 lakchote

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

melvin-bot[bot] avatar Apr 12 '24 13:04 melvin-bot[bot]

Triggered auto assignment to Contributor Plus for review of internal employee PR - @ahmedGaber93 (Internal)

melvin-bot[bot] avatar Apr 12 '24 13:04 melvin-bot[bot]

Still waiting for RN 0.74 to be effective. Tracking PR here.

lakchote avatar Apr 29 '24 14:04 lakchote

Still waiting for RN 0.74 to be effective. Tracking PR here.

Still waiting for RN 0.74 PR to be available. Putting this as a monthly in the meantime.

lakchote avatar May 08 '24 06:05 lakchote

Not overdue, Still hold on #37374

ahmedGaber93 avatar Jun 10 '24 10:06 ahmedGaber93

Not overdue, Still hold on #37374

Same.

lakchote avatar Jul 12 '24 07:07 lakchote

Not overdue, Still hold on https://github.com/Expensify/App/issues/37374

ahmedGaber93 avatar Aug 13 '24 13:08 ahmedGaber93

I will unassign me to clean up my k2.

ahmedGaber93 avatar Aug 13 '24 13:08 ahmedGaber93

Alternative solution: @s77rt/react-native-viewshot

s77rt avatar Sep 12 '24 13:09 s77rt

PR https://github.com/Expensify/App/issues/37374 was merged, will take a look to add it back as soon as I can.

lakchote avatar Sep 19 '24 06:09 lakchote

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

melvin-bot[bot] avatar Sep 28 '24 08:09 melvin-bot[bot]

PR didn't solve the issue, see https://github.com/Expensify/App/issues/49868#issuecomment-2381918469. We're going to wait for a new stable version.

lakchote avatar Sep 30 '24 03:09 lakchote

I don't have a physical iOS device, I only have Android. I'm available to test if necessary. Thanks.

brunovjk avatar Oct 02 '24 14:10 brunovjk

Still waiting for a stable version of react-native-viewshot v4.0.0 (see https://github.com/Expensify/App/issues/49868#issuecomment-2381918469).

lakchote avatar Nov 04 '24 14:11 lakchote

Still waiting for a stable version of react-native-viewshot v4.0.0 (see #49868 (comment)).

Stable version is now available. As such, I've raised a new PR here.

lakchote avatar Dec 09 '24 14:12 lakchote

@lakchote Can you please assign me as C+ reviewer in https://github.com/Expensify/App/pull/53757 ? Thank you.

fedirjh avatar Dec 13 '24 16:12 fedirjh

Triggered auto assignment to @jliexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

melvin-bot[bot] avatar Dec 16 '24 09:12 melvin-bot[bot]

@lakchote @fedirjh - heads up that I am OOO from 19th - 29th Dec. I'm happy to still be assigned and can sort out any payments when I'm back, but feel free to unassign me and reassign someone else if any urgent action is needed from B0.

jliexpensify avatar Dec 16 '24 22:12 jliexpensify

@jliexpensify please process payment for @fedirjh for the C+ review.

If the timing is too short for you no worries, let me know and I'll reassign.

lakchote avatar Dec 17 '24 16:12 lakchote

Easy, here's a Payment Summary:

  • C+: @fedirjh $250 (to be paid via New.Dot)

@lakchote @fedirjh if there's a checklist, feel free to add that and ic an get to it when I'm back.

Otherwise this can be closed?

jliexpensify avatar Dec 17 '24 21:12 jliexpensify

Otherwise this can be closed?

No checklist is needed for this one, we just re-enabled a feature.

fedirjh avatar Dec 17 '24 21:12 fedirjh

Cool, feel free to request on ND then - closing!

jliexpensify avatar Dec 17 '24 22:12 jliexpensify

$250 approved for @fedirjh

garrettmknight avatar Jan 29 '25 21:01 garrettmknight