-
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 2023-05-03] [$1000] Long click on IOU, code block, and attachment shows a context menu #17487
Comments
Triggered auto assignment to @twisterdotcom ( |
Bug0 Triage Checklist (Main S/O)
|
Asking in Slack: https://expensify.slack.com/archives/C049HHMV9SM/p1681773304832889?thread_ts=1681567443.058609&cid=C049HHMV9SM. Not sure why this is a bug. |
Okay this is a bug. I reproduced it on desktop and web. Clicking a code block (must be ```) for a "long" time - basically simulating a long press, shows the context menu when it shouldn't. We should mirror right click only for long press on web and desktop. |
Job added to Upwork: https://www.upwork.com/jobs/~01bb6ea1d77a046b27 |
Current assignee @twisterdotcom is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane ( |
Triggered auto assignment to @francoisl ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Long click/press opens the context menu on web/desktop for IOU, code block and attachment. What is the root cause of that problem?Let's say for code block, in here App/src/components/HTMLEngineProvider/HTMLRenderers/PreRenderer/BasePreRenderer.js Line 44 in ad78781
It was added from this PR #12987 where we fix a bug that cause long press not to work for some specific cases for mobile device. What changes do you think we should make in order to solve the problem?In
DeviceCapabilities.canUseTouchScreen() ), if yes then we'll show the context menu, if not do nothing since the correct action is to right click.
We should probably rename the function to something else as well to be more clear. What alternative solutions did you explore? (Optional)NA |
Thanks for the proposal @tienifr. The proposal looks good to me. Let's make sure to include screen recordings for iPad as well in PR. 🎀👀🎀 C+ reviewed cc: @francoisl |
Yeah pretty straightforward 👍 |
📣 @tienifr You have been assigned to this job by @francoisl! |
The PR is ready for review #17782 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.5-6 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-05-03. 🎊 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.
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:
|
@sobitneupane - could you complete the BugZero checklist? @sobitneupane, @tienifr and @bernhardoj - could you apply to the job for $1000, $1000 and $250 respectively? https://www.upwork.com/jobs/~01bb6ea1d77a046b27 |
I don't think any update in PR review checklist should be added. This particular feature was added and implemented across all platforms. I would say it is an improvement in the app rather than bug fixing. |
Regression Test Proposal:
Do we agree 👍 or 👎 |
Sorry folks, I thought I was still waiting for you to accept offers, but I need to make them. I forget that this process needs so many steps still. I've done this now - please accept when you can and I'll get the payment sorted. |
|
@twisterdotcom I get "This offer is not available anymore" |
I've sent it again now. I have no clue why this happens. |
Thanks! Accepted. |
Done |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
code block message
Expected Result :
Long click/press should work on mobile screen only
Actual Result :
Long click/press opens the context menu on web/desktop
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.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:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Screen.Recording.2023-04-15.at.21.59.48.mov
Recording.249.mp4
Expensify/Expensify Issue URL:
Issue reported by: @bernhardoj
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1681567443058609
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: