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 for payment 2022-05-02] [$500] While trying to open the context menu on mWeb(Safari) on image attachment, it shows a blue box on the app - reported by @parasharrajat #8246

Closed
mvtglobally opened this issue Mar 21, 2022 · 50 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor

Comments

@mvtglobally
Copy link

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. Send a message with link on any Chat on Safari mWeb.
  2. Hold press the link to open the context Menu.

Expected Result:

Context Menu should be shown and no blue boxes.

Actual Result:

No Context menu is shown instead a blue box covers most part of the screen.

Workaround:

unknown

Platform:

Where is this issue occurring?

  • Mobile Web

Version Number: 1.1.43-0
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Require fixing different component than issue - #8245
image - 2022-03-21T001357 307

Expensify/Expensify Issue URL:
Issue reported by: @parasharrajat
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1646674279978599

View all open jobs on GitHub

@mvtglobally mvtglobally added AutoAssignerTriage Auto assign issues for triage to an available triage team member Daily KSv2 labels Mar 21, 2022
@melvin-bot
Copy link

melvin-bot bot commented Mar 21, 2022

Triggered auto assignment to @laurenreidexpensify (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

@melvin-bot melvin-bot bot removed the AutoAssignerTriage Auto assign issues for triage to an available triage team member label Mar 21, 2022
@laurenreidexpensify laurenreidexpensify removed their assignment Mar 21, 2022
@melvin-bot
Copy link

melvin-bot bot commented Mar 21, 2022

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

@flodnv flodnv removed their assignment Mar 21, 2022
@flodnv flodnv added the External Added to denote the issue can be worked on by a contributor label Mar 21, 2022
@melvin-bot
Copy link

melvin-bot bot commented Mar 21, 2022

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

@dylanexpensify
Copy link
Contributor

@melvin-bot
Copy link

melvin-bot bot commented Mar 21, 2022

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

@MelvinBot

This comment was marked as outdated.

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Mar 21, 2022
@melvin-bot
Copy link

melvin-bot bot commented Mar 21, 2022

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

@MelvinBot MelvinBot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Mar 21, 2022
@dylanexpensify
Copy link
Contributor

cc @parasharrajat

@Beamanator
Copy link
Contributor

Hmm looks like some of our automation broke when melvin-bot came alive 🤔 I'm going to re-add Help Wanted and hopefully fix some broken automation today that made Melvin think melvin-bot actually assigned someone already

@Beamanator Beamanator added the Help Wanted Apply this label when an issue is open to proposals by contributors label Mar 22, 2022
@Beamanator Beamanator changed the title While trying to open the context menu on mWeb(Safari) on image attachment, it shows a blue box on the app - reported by @parasharrajat [$250] While trying to open the context menu on mWeb(Safari) on image attachment, it shows a blue box on the app - reported by @parasharrajat Mar 22, 2022
@mollfpr
Copy link
Contributor

mollfpr commented Mar 22, 2022

Proposal

Adding css to display none of callout information will be enough to resolve this. There's a function to add disable-select to body. The class will set some style -webkit-user-select: none !important and -webkit-touch-callout: none !important; so the callout information from ios will not showing.

Call the function ControlSelection.block(); before showing the bottom modal and only apply the function on small device and touchscreen device.

showPopover(event, selection) {
// Block menu on the message being Edited
if (this.props.draftMessage) {
return;
}

    showPopover(event, selection) {
        // Block menu on the message being Edited
        if (this.props.draftMessage) {
            return;
        }

+        if (this.props.isSmallScreenWidth && canUseTouchScreen()) {
+            ControlSelection.block();
+        }
        ReportActionContextMenu.showContextMenu(
            ContextMenuActions.CONTEXT_MENU_TYPES.REPORT_ACTION,
            event,
            selection,
            this.popoverAnchor,
            this.props.reportID,
            this.props.action,
            this.props.draftMessage,
            this.checkIfContextMenuActive,
            this.checkIfContextMenuActive,
        );
    }

Before

Screen.Recording.2022-03-22.at.23.45.59.mov

After

Screen.Recording.2022-03-22.at.23.47.03.mov

@parasharrajat
Copy link
Member

parasharrajat commented Mar 22, 2022

Question is that it was working before and what broke it? I would rather get the broken behavior fixed instead of patching more code.

The same location where you found ControlSelection.block(); should be attempted to be fixed first.

@MelvinBot
Copy link

📣 @mollfpr You have been assigned to this job by @Beamanator!
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 📖

@mollfpr
Copy link
Contributor

mollfpr commented Mar 30, 2022

Thank you, guys! 🎉

I applied to Upwork, and will create the PR ASAP!

@dylanexpensify
Copy link
Contributor

How we doing here?

@melvin-bot melvin-bot bot removed the Overdue label Apr 8, 2022
@mollfpr
Copy link
Contributor

mollfpr commented Apr 8, 2022

PR is still on review.

@mollfpr
Copy link
Contributor

mollfpr commented Apr 18, 2022

Raise new PR with a new approach.

cc @rushatgabhane @Beamanator

@melvin-bot melvin-bot bot removed the Overdue label Apr 18, 2022
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Apr 25, 2022
@melvin-bot melvin-bot bot changed the title [$500] While trying to open the context menu on mWeb(Safari) on image attachment, it shows a blue box on the app - reported by @parasharrajat [HOLD for payment 2022-05-02] [$500] While trying to open the context menu on mWeb(Safari) on image attachment, it shows a blue box on the app - reported by @parasharrajat Apr 25, 2022
@melvin-bot
Copy link

melvin-bot bot commented Apr 25, 2022

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.1.56-0 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 2022-05-02. 🎊

@mollfpr
Copy link
Contributor

mollfpr commented May 2, 2022

@dylanexpensify The Upwork job is expired, can you please create a new one?

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 Daily KSv2 labels May 2, 2022
@dylanexpensify
Copy link
Contributor

@dylanexpensify
Copy link
Contributor

Getting payments sent today!

@mollfpr
Copy link
Contributor

mollfpr commented May 3, 2022

@dylanexpensify applied, thanks!

@dylanexpensify
Copy link
Contributor

@parasharrajat please apply for reporting bonus 😄

@parasharrajat
Copy link
Member

Done.

@dylanexpensify
Copy link
Contributor

Offers sent!

@rushatgabhane
Copy link
Member

Danke!

@dylanexpensify
Copy link
Contributor

Payments sent, contracts ended, post closed. Thanks everyone!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

10 participants