-
Notifications
You must be signed in to change notification settings - Fork 3k
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-05] [$250] Android - Attachment - Android - I can to switch to another attachment in PDF zoomed state #49761
Comments
Triggered auto assignment to @bfitzexpensify ( |
@bfitzexpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
Edited by proposal-police: This proposal was edited at 2023-10-02 12:00:00. ProposalPlease re-state the problem that we are trying to solve in this issue.Carousel is scrollable when PDF is zoomed in. What is the root cause of that problem?We have a shared value to determine whether the carousel is scrollable or not.
And we will disable it when the attachment is zoomed in. App/src/components/Attachments/AttachmentCarousel/useCarouselContextEvents.ts Lines 29 to 45 in b655040
However, in the PDF attachment (android file only), we have a Pan gesture that enable the scroll when lifting our finger after panning. App/src/components/Attachments/AttachmentView/AttachmentViewPdf/index.android.tsx Lines 55 to 61 in b655040
In #30050, we add the Pan gesture to disable the carousel scrolling when scrolling the PDF. Then, #33756 added the The problem is, we don't always want to re-enable the scroll after panning, especially when we are already zoomed in. What changes do you think we should make in order to solve the problem?The problem that #30050 solves is that the carousel/pager scroll conflicted with the PDF scroll, so we disable the carousel scroll when scrolling the PDF. But in our case, the PDF is zoomed in, which means the carousel/pager scroll is already disabled, so we don't need the logic to disable/re-enable it again. To solve this, only execute the logic if the zoom scale is 1 (not zoomed in). App/src/components/Attachments/AttachmentView/AttachmentViewPdf/index.android.tsx Line 35 in b655040
App/src/components/Attachments/AttachmentView/AttachmentViewPdf/index.android.tsx Lines 55 to 61 in b655040
|
Job added to Upwork: https://www.upwork.com/jobs/~021839226463966939125 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @akinwale ( |
To address the issue of navigating attachments while a PDF is zoomed in, several key solutions are proposed. First, the app should disable navigation when the PDF viewer is in a zoomed state, preventing users from accidentally switching attachments. Visual feedback, like a message or overlay, should indicate this restriction to help manage user expectations. Additionally, gesture handling needs to be modified to ignore swipes while in zoom mode, allowing only pinch gestures for zooming. Implementing a state management system will track whether the PDF is zoomed in, controlling navigation functions accordingly. Comprehensive testing is essential to ensure that the changes work across various scenarios and devices. A user settings option could also be considered, allowing users to toggle navigation while zoomed in for added flexibility. Finally, after deployment, monitoring user feedback will be crucial to assess how effective the solution is and to make further adjustments as needed. These steps aim to enhance the overall user experience when interacting with PDF attachments. |
📣 @SecretDev776! 📣
|
@akinwale, @bfitzexpensify Huh... This is 4 days overdue. Who can take care of this? |
We can move forward with @bernhardoj's proposal here. 🎀👀🎀 C+ reviewed. |
Triggered auto assignment to @youssef-lr, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
📣 @akinwale 🎉 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: @akinwale |
This issue has not been updated in over 15 days. @akinwale, @youssef-lr, @bfitzexpensify, @bernhardoj eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.54-11 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-05. 🎊 For reference, here are some details about the assignees on this issue:
|
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:
|
Regression identified in #33756.
Regression Test Steps
Do we agree 👍 or 👎? |
I think this was caused by #33756 => by this change to be exact not by #30050 @akinwale. Could you please update it? Thanks. |
You're right. I'll update the comments. |
Payment summary: @bernhardoj due $250 for contributor work - to be paid via manual request |
Requested in ND. |
$250 approved for @bernhardoj |
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.40-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: https://expensify.testrail.io/index.php?/tests/view/5010669&group_by=cases:section_id&group_id=292107&group_order=asc
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
I shouldn't be able to to switch to another attachment in PDF zoomed state.
Actual Result:
I can to switch to another attachment in PDF zoomed state.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6615307_1727298798512.az_recorder_20240925_230359.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @bfitzexpensifyThe text was updated successfully, but these errors were encountered: