App icon indicating copy to clipboard operation
App copied to clipboard

[HOLD for payment 2024-12-17] [$250] iOS - Attachment - No sliding in animation when opening attachment

Open IuliiaHerets opened this issue 1 year ago • 22 comments

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: 9.0.69-1 Reproducible in staging?: Y Reproducible in production?: N If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Y Email or phone of affected tester (no customers): [email protected] Issue reported by: Applause Internal Team

Action Performed:

  1. Launch ND or hybrid app.
  2. Go to DM.
  3. Tap on the chat header.
  4. Tap on the user avatar.
  5. Note that there is no sliding in animation when opening avatar.
  6. Submit an expense with a receipt.
  7. Send an image to the chat.
  8. Open the receipt from the expense.
  9. Open the image attachment.

Expected Result:

There will be sliding in animation when opening attachment (production behavior).

Actual Result:

There is no sliding in animation when opening attachment. The app blinks slightly when the attachment is opened.

Workaround:

Unknown

Platforms:

  • [ ] Android: Standalone
  • [ ] Android: HybridApp
  • [ ] Android: mWeb Chrome
  • [x] iOS: Standalone
  • [x] iOS: HybridApp
  • [ ] iOS: mWeb Safari
  • [ ] MacOS: Chrome / Safari
  • [ ] MacOS: Desktop

Screenshots/Videos

https://github.com/user-attachments/assets/01669cc4-aeab-42b4-bbcb-b9835be86f19

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021863486574634374199
  • Upwork Job ID: 1863486574634374199
  • Last Price Increase: 2024-12-02
  • Automatic offers:
    • ikevin127 | Reviewer | 105182252
Issue OwnerCurrent Issue Owner: @Christinadobrzyn

IuliiaHerets avatar Dec 01 '24 22:12 IuliiaHerets

Triggered auto assignment to @Christinadobrzyn (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 01 '24 22:12 melvin-bot[bot]

Triggered auto assignment to @marcaaron (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

melvin-bot[bot] avatar Dec 01 '24 22:12 melvin-bot[bot]

💬 A slack conversation has been started in #expensify-open-source

melvin-bot[bot] avatar Dec 01 '24 22:12 melvin-bot[bot]

:wave: Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

github-actions[bot] avatar Dec 01 '24 22:12 github-actions[bot]

Thai must be coming from the native stack change

@chrispader @hannojg @kirillzyusko for eyes

I dont think this is a blocker as users can open and view the attachment fine, teated on ios too

mountiny avatar Dec 02 '24 07:12 mountiny

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

melvin-bot[bot] avatar Dec 02 '24 07:12 melvin-bot[bot]

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

melvin-bot[bot] avatar Dec 02 '24 07:12 melvin-bot[bot]

Catching up here - I think we're waiting on proposals, is that right @ikevin127?

Christinadobrzyn avatar Dec 02 '24 17:12 Christinadobrzyn

Yes, unless somebody from our expert agencies wants to handle this - we're open for proposals based on the context mentioned in https://github.com/Expensify/App/issues/53362#issuecomment-2510775039.

ikevin127 avatar Dec 02 '24 18:12 ikevin127

Margelo will handle this one

mountiny avatar Dec 03 '24 12:12 mountiny

This was scheduled to @chrispader who already started looking into it, can you pls comment @chrispader. Thanks!

hannojg avatar Dec 03 '24 12:12 hannojg

Yes, i'm looking into it right now

chrispader avatar Dec 03 '24 14:12 chrispader

I've created a PR with a fix for this specific issue here: https://github.com/Expensify/App/pull/53475

This fix is a hacky workaround tbh, since we're basically just delaying the navigation by 200ms.

The problem we see in this issue is the same as previous problems we had with RN modals/react-native-modals in the NativeStack PR. When modals are mounted/opened on a new screen - essentially at the same the time the screen mounts - the slide in animation will not be visible. Same thing for unmounting a modal. If the modal is hidden/unmounted at the same time as we navigate back from a screen, the animation cannot be seen.

This should ultimately by fixed with a more holistic solution, where we replace all legacy modals with modal (screens) from @react-navigation, though i think this should be handled in a separate PR.

For example in this issue, the problem is with the AttachmentModal component used in ProfileAvatar. It is used in many places. Same thing goes for other screens, that are essentially just modals. This won't work with NativeStack.

chrispader avatar Dec 03 '24 15:12 chrispader

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

Offer link Upwork job

melvin-bot[bot] avatar Dec 03 '24 22:12 melvin-bot[bot]

Thanks @chrispader - I added you to this GH. @mountiny and @ikevin127 does this solution sound good? https://github.com/Expensify/App/issues/53362#issuecomment-2514954175

Christinadobrzyn avatar Dec 03 '24 22:12 Christinadobrzyn

Yes, we're already working on the PR - should be merged today or tomorrow!

ikevin127 avatar Dec 03 '24 23:12 ikevin127

PR here - https://github.com/Expensify/App/pull/53475

moving this to weekly while the PR is worked on.

Christinadobrzyn avatar Dec 04 '24 15:12 Christinadobrzyn

⚠️ 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 Dec 09 '24 20:12 melvin-bot[bot]

Monitoring PR https://github.com/Expensify/App/pull/53475

Christinadobrzyn avatar Dec 09 '24 23:12 Christinadobrzyn

PR was reverted as it had 2 regressions, we're probably looking at a re-work. No compensation required since the PR was reverted.

ikevin127 avatar Dec 10 '24 04:12 ikevin127

The solution for this issue has been :rocket: deployed to production :rocket: in version 9.0.73-8 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:

  • https://github.com/Expensify/App/pull/53475

If no regressions arise, payment will be issued on 2024-12-17. :confetti_ball:

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

  • @chrispader does not require payment (Contractor)
  • @ikevin127 requires payment automatic offer (Reviewer)

melvin-bot[bot] avatar Dec 10 '24 22:12 melvin-bot[bot]

@ikevin127 @Christinadobrzyn @ikevin127 The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

melvin-bot[bot] avatar Dec 10 '24 22:12 melvin-bot[bot]

Looks like we're ready for payment but I don't see anything about a regression test.

@ikevin127 do we need a regression test for this?

Contributor+: @ikevin127  owed $250 via Upwork (https://www.upwork.com/nx/wm/offer/105182252)

Christinadobrzyn avatar Dec 17 '24 21:12 Christinadobrzyn

PR was reverted as it had 2 regressions, we're probably looking at a re-work. No compensation required since the PR was reverted.

@Christinadobrzyn No payment required here as the PR was reverted. Not sure where we are with the issue, maybe @chrispader has more context on what happened after the revert regarding the issue.

ikevin127 avatar Dec 17 '24 21:12 ikevin127

Ah thank you @ikevin127 - really appreciate the clarity. @chrispader can you let us know your thoughts on next steps?

Christinadobrzyn avatar Dec 17 '24 21:12 Christinadobrzyn

@chrispader, @mountiny, @Christinadobrzyn, @ikevin127 Huh... This is 4 days overdue. Who can take care of this?

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

I think this still has to be handled, gonna make it weekly over the holidays

mountiny avatar Dec 23 '24 11:12 mountiny

This issue would get fixed by https://github.com/Expensify/App/issues/53493, so i'm going to further push forward the modal migration solution

chrispader avatar Dec 23 '24 14:12 chrispader

@chrispader @mountiny @Christinadobrzyn @ikevin127 this issue is now 4 weeks old, please consider:

  • Finding a contributor to fix the bug
  • Closing the issue if BZ has been unable to add the issue to a VIP or Wave project
  • If you have any questions, don't hesitate to start a discussion in #expensify-open-source

Thanks!

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

Thanks for the update @chrispader! We'll add a HOLD to this and monitor - https://github.com/Expensify/App/issues/53493

(or let me know if there's a better course of action). TY!

Christinadobrzyn avatar Jan 03 '25 21:01 Christinadobrzyn