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

[HOLD] [$1000] mWeb - Contact gets highlighted on long press #19766

Closed
6 tasks
kbecciv opened this issue May 29, 2023 · 40 comments
Closed
6 tasks

[HOLD] [$1000] mWeb - Contact gets highlighted on long press #19766

kbecciv opened this issue May 29, 2023 · 40 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Needs Reproduction Reproducible steps needed Reviewing Has a PR in review Weekly KSv2

Comments

@kbecciv
Copy link

kbecciv commented May 29, 2023

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. Tap on the search icon
  2. Long press on a contact just after the page opens

Expected Result:

It shouldn't get highlighted

Actual Result:

The contact gets highlighted

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.19.2

Reproducible in staging?: n/a

Reproducible in production?: n/a

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

video_20230525_164732_edit.mp4

Expensify/Expensify Issue URL:

Issue reported by: @thesahindia

Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1685013467217839

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01458f36110327280c
  • Upwork Job ID: 1663571956217389056
  • Last Price Increase: 2023-06-06
@kbecciv kbecciv added Daily KSv2 Needs Reproduction Reproducible steps needed Bug Something is broken. Auto assigns a BugZero manager. labels May 29, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 29, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented May 29, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@puneetlath puneetlath added the External Added to denote the issue can be worked on by a contributor label May 30, 2023
@melvin-bot melvin-bot bot changed the title mWeb - Contact gets highlighted on long press [$1000] mWeb - Contact gets highlighted on long press May 30, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 30, 2023

Job added to Upwork: https://www.upwork.com/jobs/~01458f36110327280c

@melvin-bot
Copy link

melvin-bot bot commented May 30, 2023

Current assignee @puneetlath is eligible for the External assigner, not assigning anyone new.

@melvin-bot
Copy link

melvin-bot bot commented May 30, 2023

Triggered auto assignment to Contributor-plus team member for initial proposal review - @Santhosh-Sellavel (External)

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label May 30, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 30, 2023

Current assignee @puneetlath is eligible for the External assigner, not assigning anyone new.

@kushu7
Copy link
Contributor

kushu7 commented May 30, 2023

Proposal

Please re-state the problem that we are trying to solve in this issue.

Contact gets highlighted on long press

What is the root cause of that problem?

On touch devices, long press sometimes fire hover event. its default behaviour can easily replicate and its not related to only search screen.

bug video

bug720p.mov

What changes do you think we should make in order to solve the problem?

We can prevent it by checking DeviceCapabilities.hasHoverSupport()

const child = _.isFunction(this.props.children)
? this.props.children(this.state.isHovered)
: this.props.children

We have two options.

  1. We can simply add this condition here.
// should allow hover only when device hasHoverSupport capability.
const isHovered = DeviceCapabilities.hasHoverSupport() && this.state.isHovered;
const child = _.isFunction(this.props.children) ? this.props.children(isHovered) : this.props.children;
  1. We can return children same as index.native.js
render() {
    if(!DeviceCapabilities.hasHoverSupport()) {
    const childrenWithHoverState = _.isFunction(props.children) ? props.children(false) : props.children;
    return <View style={props.containerStyles}>{childrenWithHoverState}</View>;
    }
    .....
}

both will solve our problem globally.

What alternative solutions did you explore? (Optional)

None

@melvin-bot melvin-bot bot added the Overdue label May 31, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 2, 2023

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

@puneetlath
Copy link
Contributor

@Santhosh-Sellavel thoughts on the proposal?

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Jun 2, 2023
@Santhosh-Sellavel
Copy link
Collaborator

@kushu7's proposal Looks good to me! @puneetlath

@melvin-bot melvin-bot bot removed the Overdue label Jun 5, 2023
@puneetlath
Copy link
Contributor

Looks to me like @kushu7 offered two different options. @kushu7 which do you prefer and why?

@kushu7
Copy link
Contributor

kushu7 commented Jun 6, 2023

Looks to me like @kushu7 offered two different options. @kushu7 which do you prefer and why?

I prefer 2nd option, in this we can skip unnecessary function callbacks that are related to hovering.

@melvin-bot
Copy link

melvin-bot bot commented Jun 6, 2023

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@Santhosh-Sellavel
Copy link
Collaborator

Santhosh-Sellavel commented Jun 6, 2023

Looks to me like @kushu7 offered two different options. @kushu7 which do you prefer and why?

I prefer 2nd option, in this we can skip unnecessary function callbacks that are related to hovering.

@puneetlath Sorry Yeah 2nd option looks good to me!

@kushu7
Copy link
Contributor

kushu7 commented Jun 7, 2023

Any update?
cc @puneetlath @Santhosh-Sellavel

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Jun 7, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 7, 2023

📣 @kushu7 You have been assigned to this job by @puneetlath!
Please apply to this job in Upwork and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@melvin-bot
Copy link

melvin-bot bot commented Jun 12, 2023

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

@amyevans amyevans removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Jun 12, 2023
@Santhosh-Sellavel
Copy link
Collaborator

Santhosh-Sellavel commented Jun 12, 2023

Thanks, @amyevans!

@Santhosh-Sellavel
Copy link
Collaborator

@abekkala Sorry for the delay. Can you add a hold to the issue title for issue #20585?

@Santhosh-Sellavel
Copy link
Collaborator

@abekkala we need to add a hold to this issue. Sorry for not being clear, test the PR is blocked by a regression. And it is being worked on the other issue #20585. So we need to hold this until the other PR is merged.

@abekkala
Copy link
Contributor

Ah ok - got it!

@abekkala abekkala changed the title [$1000] mWeb - Contact gets highlighted on long press [HOLD] [$1000] mWeb - Contact gets highlighted on long press Jun 16, 2023
@abekkala abekkala added Weekly KSv2 and removed Daily KSv2 labels Jun 21, 2023
@abekkala abekkala removed their assignment Jun 21, 2023
@puneetlath
Copy link
Contributor

@Santhosh-Sellavel it looks like #20585 is done. Does this still need to be held?

@Santhosh-Sellavel
Copy link
Collaborator

Santhosh-Sellavel commented Jun 23, 2023

@puneetlath This issue is what we discussed yesterday!

@puneetlath
Copy link
Contributor

@Santhosh-Sellavel @kushu7 it looks like this was made obsolete by another PR. However, since you were hired and already did the work, we'll still go ahead and pay you out (no bonus) for the effort.

I'll go ahead and close the PR and I've sent you both hiring offers. Ping me here once you've accepted and I'll pay them out. Thanks for the hard work!

@puneetlath
Copy link
Contributor

Alright. @Santhosh-Sellavel will be paid via this. @kushu7 has been paid via Upwork.

Thanks everyone!

@thesahindia
Copy link
Member

Hey @puneetlath, I think it is eligible for the reporting compensation.

@puneetlath puneetlath reopened this Jun 28, 2023
@puneetlath
Copy link
Contributor

@thesahindia sorry about that. Sent you an offer.

@Santhosh-Sellavel do you need me to leave the issue open for tracking your payment? Or am I good to close once I pay sahil?

@Santhosh-Sellavel
Copy link
Collaborator

Santhosh-Sellavel commented Jun 29, 2023

Let's just keep it open till next week, if it's not affecting anything!

@puneetlath
Copy link
Contributor

Ok sounds good.

@thesahindia please accept the contract when you have a chance.

@thesahindia
Copy link
Member

Accepted, thanks!

@puneetlath
Copy link
Contributor

Ok, @thesahindia has been paid. So we can close this once @Santhosh-Sellavel has confirmed he's been paid via Expensify.

@puneetlath
Copy link
Contributor

@Santhosh-Sellavel did you receive payment yet?

@puneetlath
Copy link
Contributor

Everyone has been paid. Closing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Needs Reproduction Reproducible steps needed Reviewing Has a PR in review Weekly KSv2
Projects
None yet
Development

No branches or pull requests

8 participants