-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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-11-22] [$250] Attachment - Image moves to the bottom when swiping down slightly #51465
Comments
Triggered auto assignment to @Julesssss ( |
Triggered auto assignment to @CortneyOfstad ( |
💬 A slack conversation has been started in #expensify-open-source |
👋 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:
|
Production P.2.MP4 |
Thanks! This is annoying, and I will seek out the cause, but I won't mark this as a blocker. |
Reverting the 'Swipe attatchement' PR didn't resolve the issue |
Job added to Upwork: https://www.upwork.com/jobs/~021849822965045405568 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @brunovjk ( |
Hi @Anaslancer,Thank you for the proposal. I reproduced the issue, but I'm unclear about your suggestion. Did you mean we should completely disable the swipe feature in this scenario? From my understanding, we want the image to fade away after a swipe, like in production. The problem currently is that when you swipe slightly, the image doesn’t close or return to the center; instead, it gets left in an awkward position: Screen.Recording.2024-10-28.at.14.16.07.mov |
Update: Still looking for proposals. |
👋 @Anaslancer, have you had a chance to investigate this issue a bit further? Thanks. |
Edited by proposal-police: This proposal was edited at 2024-10-30 12:25:29 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Swiping image doesn't close the attachment and instead moves the image permanently. What is the root cause of that problem?The logic to bring the image back to center is handled inside App/src/components/MultiGestureCanvas/usePanGesture.ts Lines 105 to 164 in f806997
App/src/components/MultiGestureCanvas/usePanGesture.ts Lines 69 to 100 in f806997
The problem is, canvas size is initially 0. We get the canvas size from the view App/src/components/Lightbox/index.tsx Lines 204 to 213 in f806997
App/src/components/Lightbox/index.tsx Lines 94 to 95 in f806997
App/src/components/Modal/BaseModal.tsx Lines 272 to 277 in f806997
What changes do you think we should make in order to solve the problem?I think this happens after we enable bridgeless mode, but nevertheless, we need to fix the issue where the App/src/components/MultiGestureCanvas/usePanGesture.ts Lines 105 to 164 in f806997
We can optionally replace we can update isCanvasLoading to return it as true if the canvas size is 0, but I don't think it fixes the root cause |
Thank you for the proposal bernhardoj. I tested it and @bernhardoj's proposal seems good to me. The RCA analysis seems correct to me too.
🎀👀🎀 C+ reviewed |
Triggered auto assignment to @justinpersaud, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@justinpersaud and @bernhardoj do you think it's worth replacing all |
I think it should be save to replace them all. |
Nice, yeah lets replace all uses please. |
📣 @brunovjk 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
PR is ready cc: @brunovjk |
PR actively being worked on so no update |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.62-4 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-11-22. 🎊 For reference, here are some details about the assignees on this issue:
|
@brunovjk @CortneyOfstad @brunovjk 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] |
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.54-0
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]
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team
Action Performed:
Expected Result:
The image will be dismissed (production behavior).
Actual Result:
The image moves to the bottom.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6645372_1729849782889.swiipe.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @CortneyOfstadThe text was updated successfully, but these errors were encountered: