-
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 2023-09-11] [$1000] Web - Inconsistency bug: Incorrect Hand Cursor Displayed Throughout PDF Document in Attachment Viewer #25796
Comments
ProposalPlease re-state the problem that we are trying to solve in this issue.display normal cursor and not clickable when hovering on white space What is the root cause of that problem?This issue has been fixed once in here App/src/components/PDFView/index.js Lines 283 to 287 in a03a21d
Here we are passing onPress. App/src/components/Attachments/AttachmentCarousel/index.js Lines 137 to 142 in a03a21d
In the previous fix, we had set the default for onPress to undefined to prevent when using PDFView without passing the onPress prop. But here we always pass a boolean in.
What changes do you think we should make in order to solve the problem?We should update in here: onPress={ canUseTouchScreen ? () => setShouldShowArrows(!shouldShowArrows): undefined} What alternative solutions did you explore? (Optional)N/A |
Triggered auto assignment to @kevinksullivan ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.There's an inconsistency in the cursor behavior when viewing a PDF attachment. The hand cursor is displayed throughout the entire PDF document in the attachment viewer, even when not hovering over hyperlinks or interactive elements. What is the root cause of that problem?The cursor behavior for the PDF viewer in the attachment viewer is being influenced by global or inherited CSS styles, causing it to display the hand cursor throughout. What changes do you think we should make in order to solve the problem?To ensure consistent cursor behavior in the attachment viewer, we need to explicitly set the cursor style for the PDF viewer component. PDFView: {
...
cursor: 'default',
}, Apply this style in: Lines 2106 to 2117 in 8d5ae3a
Result: pdfview.mp4What alternative solutions did you explore? (Optional)N/A |
@kevinksullivan Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Job added to Upwork: https://www.upwork.com/jobs/~0103449447ce220c8a |
Current assignee @kevinksullivan is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ArekChr ( |
Thanks for the proposals! The proposal from @namhihi237 looks good to me! 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @srikarparsi, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@ArekChr @srikarparsi I'd like to advocate for my proposal over the other for addressing the cursor inconsistency issue in our PDF attachment viewer. Here's why:
a CSS-centric solution, as in my proposal, diminishes chances of future regression.
In light of the above points and considering the issue's regression history, I believe that my proposal offers a more robust and long-term solution. Looking forward to your thoughts! |
@rayane-djouah I guess you haven't tested the case of image preview and protected pdf. Your solution does not cover this. |
It works perfectly with this cases. 27.New.Expensify.-.Google.Chrome.2023-08-29.12-49-36.mp4 |
Videos with your solution Screen.Recording.2023-08-29.at.18.59.26.mov |
Thanks @ArekChr! @namhihi237's proposal looks good to me as well. |
📣 @namhihi237 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@ArekChr @srikarparsi The PR is already for review. But I am not sure why PR does not assign anyone |
Ah, PR has been assigned for review |
🎯 ⚡️ Woah @ArekChr / @namhihi237, great job pushing this forwards! ⚡️ The pull request got merged within 3 working days of assignment, so this job is eligible for a 50% #urgency bonus 🎉
On to the next one 🚀 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.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 2023-09-11. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External 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 test proposal
Do we agree 👍 or 👎 |
Waiting on payment |
@kevinksullivan Any update payment. Thanks. |
Paid and closed! |
@kevinksullivan, I'm the reporter of the bug, and I already applied for the job on Upwork, but haven't heard from anyone since then. |
Ah my apologies @Habben101 . Offer sent! Lmk when you accept and I'll get that paid. |
No worries and Thanks @kevinksullivan. I've accepted the offer. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
The hand cursor should only be displayed when hovering over hyperlinks or other interactive elements within the PDF document, both in the initial attachment previewer and the attachment viewer. When the mouse cursor is not over any interactive element, it should display the default cursor.
Actual Result:
The hand cursor is displayed throughout the entire PDF document in the attachment viewer, unlike the correct behavior observed in the initial attachment previewer.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: v1.3.56-20
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
PDFcursor.mp4
Recording.1303.mp4
Expensify/Expensify Issue URL:
Issue reported by: @Habben101
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1691710745839059
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: