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

[$1000] Context menu hides on click of reveal message or hide message #20532

Closed
1 of 6 tasks
kavimuru opened this issue Jun 9, 2023 · 15 comments
Closed
1 of 6 tasks

[$1000] Context menu hides on click of reveal message or hide message #20532

kavimuru opened this issue Jun 9, 2023 · 15 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors

Comments

@kavimuru
Copy link

kavimuru commented Jun 9, 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. from userA , send any message to userB
  2. from userB, mark that message as offensive
  3. click on reveal message or hide message option

Expected Result:

Context menu should not hide on click of reveal message or hide message

Actual Result:

Context menu hides on click of reveal message or hide message

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?

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

Version Number: 1.3.26-1
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-06-05.at.7.37.54.PM.mov
Recording.928.mp4

Expensify/Expensify Issue URL:
Issue reported by: @gadhiyamanan
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1685974173855139
View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0123ee093f8d7b9ffe
  • Upwork Job ID: 1668727146272120832
  • Last Price Increase: 2023-06-13
@kavimuru kavimuru added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jun 9, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 9, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Jun 9, 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

@dukenv0307
Copy link
Contributor

Proposal

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

Context menu hides on click of reveal message or hide message

What is the root cause of that problem?

When clicking the Reveal button, the Blur function here will be triggered

onBlur: (el) => {
if (!this.wrapperView.contains(el.relatedTarget)) {
this.setIsHovered(false);
}
if (_.isFunction(child.props.onBlur)) {
child.props.onBlur(el);
}
},
});
}

so that we will set IsHovered is false

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

We should prevent text input blur when the Reveal message is clicked like as Add reaction button here

// Prevent text input blur when Add reaction is clicked
onMouseDown={(e) => e.preventDefault()}

To do that in here

<Button
small
style={[styles.mt2, styles.alignSelfStart]}
onPress={() => setIsHidden(!isHidden)}
>

<Button
small
style={[styles.mt2, styles.alignSelfStart]}
onPress={() => setIsHidden(!isHidden)}
>

we should add

// Prevent text input blur when reveal message is clicked
onMouseDown={(e) => e.preventDefault()}

What alternative solutions did you explore? (Optional)

Result

My solution works well

Screen.Recording.2023-06-09.at.14.05.08.1.mp4

@bernhardoj
Copy link
Contributor

Same root cause with this #16519

@melvin-bot melvin-bot bot added the Overdue label Jun 12, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 12, 2023

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

@adelekennedy
Copy link

adelekennedy commented Jun 13, 2023

I'm able to reproduce but I noticed that the context menu will pop back up if I move my cursor up from the concierge message - I still think this is an issue as the user has to move the cursor around to get it to pop back up!

@melvin-bot melvin-bot bot removed the Overdue label Jun 13, 2023
@adelekennedy adelekennedy added the External Added to denote the issue can be worked on by a contributor label Jun 13, 2023
@melvin-bot melvin-bot bot changed the title Context menu hides on click of reveal message or hide message [$1000] Context menu hides on click of reveal message or hide message Jun 13, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 13, 2023

Job added to Upwork: https://www.upwork.com/jobs/~0123ee093f8d7b9ffe

@melvin-bot
Copy link

melvin-bot bot commented Jun 13, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Jun 13, 2023

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

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

melvin-bot bot commented Jun 13, 2023

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

@s77rt
Copy link
Contributor

s77rt commented Jun 14, 2023

@dukenv0307 Thanks for the proposal. I'm afraid that we may not need to do anything here. This issue will be fixed once #20561 is merged.

@s77rt
Copy link
Contributor

s77rt commented Jun 14, 2023

@bernhardoj Thanks!

@s77rt
Copy link
Contributor

s77rt commented Jun 14, 2023

@adelekennedy Let's close this.

@getusha
Copy link
Contributor

getusha commented Jun 15, 2023

@adelekennedy I think we should handle the payment for both here?
According to this discussion a PR solving two issues will have the compensation handled on both issues.

https://expensify.slack.com/archives/C01GTK53T8Q/p1685711548218919

@s77rt
Copy link
Contributor

s77rt commented Jun 15, 2023

@getusha I think that applies only to issues that have different root causes, it does not seem to be the case here.

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. Daily KSv2 External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors
Projects
None yet
Development

No branches or pull requests

7 participants