Skip to content
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

[Pay 8/27] Long pressing on iOS shows native menu instead of action menu #4200

Closed
1 of 5 tasks
isagoico opened this issue Jul 23, 2021 · 22 comments
Closed
1 of 5 tasks
Assignees
Labels
Engineering External Added to denote the issue can be worked on by a contributor Weekly KSv2

Comments

@isagoico
Copy link

isagoico commented Jul 23, 2021

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:

  1. Open app in iOS
  2. Navigate to a conversation
  3. Long press on a message

Expected Result:

App action menu should be displayed.

Actual Result:

Native iOS menu is displayed.

Workaround:

User has to press on a specific place in the message to trigger the action menu.

Platform:

Where is this issue occurring?

  • Web
  • iOS
  • Android
  • Desktop App
  • Mobile Web

Version Number: 1.0.79-4

Logs: https://stackoverflow.com/c/expensify/questions/4856

Notes/Photos/Videos: Any additional supporting documentation

Expensify/Expensify Issue URL:

View all open jobs on Upwork


From @JmillsExpensify https://expensify.slack.com/archives/C01GTK53T8Q/p1626826264051300

Long press is broken again on iOS 1.0.79-1. Pulls up the native copy action rather than the comment action menu.

Upwork job: https://www.upwork.com/jobs/~011723749fa516e7c9

@MelvinBot
Copy link

Triggered auto assignment to @Gonals (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@MelvinBot
Copy link

@Gonals Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@MelvinBot
Copy link

@Gonals Huh... This is 4 days overdue. Who can take care of this?

@MelvinBot
Copy link

@Gonals Now this issue is 8 days overdue. Are you sure this should be a Daily? Feel free to change it!

@Gonals Gonals added Weekly KSv2 and removed Daily KSv2 labels Aug 4, 2021
@MelvinBot MelvinBot removed the Overdue label Aug 4, 2021
@Gonals Gonals added the External Added to denote the issue can be worked on by a contributor label Aug 4, 2021
@MelvinBot
Copy link

Triggered auto assignment to @puneetlath (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

@MelvinBot MelvinBot added Daily KSv2 and removed Weekly KSv2 labels Aug 4, 2021
@Gonals Gonals removed their assignment Aug 4, 2021
@Gonals
Copy link
Contributor

Gonals commented Aug 4, 2021

Good candidate for external!

@puneetlath
Copy link
Contributor

@MelvinBot MelvinBot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Aug 6, 2021
@arpitdeveloper
Copy link

In this case I add a actionSheet or alert in app action on long press the message in "main/src/pages/home/report/ReportActionItem.js"

@parasharrajat
Copy link
Member

parasharrajat commented Aug 6, 2021

Proposal

  1. We are using canUseTouchScreen to manage the text selection which controls the Copy native menu.
  2. This is really meant for Web devices so its usages for Native devices is wrong which gives false.
  3. But we have to use this to control selection on the Mobile Web. That's why we can noop this function on native devices which returns true as all of the native devices will always have touch (based on the code architecture we have so far in the app).

we can create a index.native.js for canUseTouchScreen

export default () => true;

It will fix this issue.

@RushirajJhala
Copy link

Hi @parasharrajat
this will solve issue of long press in message, but long press on username still shows native menu.

@MelvinBot
Copy link

@puneetlath Whoops! This issue is 2 days overdue. Let's get this updated quick!

@parasharrajat
Copy link
Member

parasharrajat commented Aug 10, 2021

I feel like this is urgent and causes a bad UX for native users. @puneetlath Any thoughts?

this will solve issue of long press in message, but long press on username still shows native menu.

It opens the details page of the user, not the contextMenu. ContextMenu is set up for messages but not for users avatars.

@MelvinBot
Copy link

@puneetlath Eep! 4 days overdue now. Issues have feelings too...

@parasharrajat
Copy link
Member

@puneetlath This can be quickly solved. The proposal here #4200 (comment).

@MelvinBot
Copy link

@puneetlath 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

@puneetlath
Copy link
Contributor

@parasharrajat sorry for the delay. Let's go ahead with your solution.

@MelvinBot MelvinBot removed the Overdue label Aug 16, 2021
@MelvinBot MelvinBot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Aug 16, 2021
@puneetlath puneetlath added Weekly KSv2 and removed Daily KSv2 labels Aug 16, 2021
@parasharrajat
Copy link
Member

parasharrajat commented Aug 16, 2021

I am curious if this job needs to be doubled as no one was hired for 11 days. cc: @mallenexpensify

@mallenexpensify mallenexpensify self-assigned this Aug 16, 2021
@mallenexpensify
Copy link
Contributor

@parasharrajat That's a tough one. The purpose of doubling prices is to encourage contributors to submit proposals and fixes. If that doesn't happen in a week we then double until we find a proposal we approve.

The issue here is two fold.

  1. There will be times when there are internal priorities that delay our contributor process. They should be rare but we happen to have one of those going on now which was addressed last week here
  2. You helped uncover a potential bottleneck in our process. Puneet is both a Contributor Manager (CM) and Contributor Manager Engineer (CME). Because of this, he became the single assignee on an issue because he's on both teams so our bot didn't assign a new CME when he assigned the Exported label.

Based on the above, I don't think this qualifies for 'double price'. Related, in the near future, there should be an automated 'double price' issue comment that will help regulate this (but it's more of a guide than a set-in-stone rule).

It looks like we're awaiting your acceptance for the job here https://www.upwork.com/jobs/~011723749fa516e7c9

@parasharrajat
Copy link
Member

Thanks for clarifying and taking the time to answer it. I have accepted the offer. Thanks.

@mallenexpensify
Copy link
Contributor

@puneetlath will review your PR once submitted, I've added myself as an assignee as a CM so I'll handle payment once completed.

@puneetlath puneetlath changed the title Long pressing on iOS shows native menu instead of action menu [Hold for payment] Long pressing on iOS shows native menu instead of action menu Aug 24, 2021
@mallenexpensify
Copy link
Contributor

Will pay on Friday, would like this to get to staging for testing/review

@MelvinBot MelvinBot removed the Overdue label Aug 25, 2021
@mallenexpensify mallenexpensify changed the title [Hold for payment] Long pressing on iOS shows native menu instead of action menu [Pay 8/27] Long pressing on iOS shows native menu instead of action menu Aug 25, 2021
@mallenexpensify
Copy link
Contributor

Forgot to pay on Friday, apologies @parasharrajat , paid just now in Upwork

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Engineering External Added to denote the issue can be worked on by a contributor Weekly KSv2
Projects
None yet
Development

No branches or pull requests

8 participants