Skip to content

[HOLD for payment 2023-05-03] [$1000] Long click on IOU, code block, and attachment shows a context menu #17487

Closed

Description

@kavimuru

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 any chat
  2. Send code block message, i.e.
    code block message
  3. Long click the code block message
  4. Notice a context menu appear

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?

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

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
  • Upwork Job URL: https://www.upwork.com/jobs/~01bb6ea1d77a046b27
  • Upwork Job ID: 1648367452137742336
  • Last Price Increase: 2023-04-18

Activity

  1. added
    Daily
    Bug
    on Apr 16, 2023
  2. MelvinBot commented on Apr 16, 2023

    @MelvinBot
    Contributor

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

  3. MelvinBot commented on Apr 16, 2023

    @MelvinBot
    Contributor

    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
  4. twisterdotcom commented on Apr 17, 2023

    @twisterdotcom
    Contributor
  5. twisterdotcom commented on Apr 18, 2023

    @twisterdotcom
    Contributor

    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.

  6. added
    External
    on Apr 18, 2023
  7. changed the title [-] Long click on IOU, code block, and attachment shows a context menu[/-] [+][$1000] Long click on IOU, code block, and attachment shows a context menu[/+] on Apr 18, 2023
  8. MelvinBot commented on Apr 18, 2023

    @MelvinBot
    Contributor
  9. MelvinBot commented on Apr 18, 2023

    @MelvinBot
    Contributor

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

  10. MelvinBot commented on Apr 18, 2023

    @MelvinBot
    Contributor

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

  11. added
    Help Wanted
    on Apr 18, 2023
  12. 22 remaining items

  13. twisterdotcom commented on May 5, 2023

    @twisterdotcom
    Contributor

    @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

  14. sobitneupane commented on May 8, 2023

    @sobitneupane
    Contributor

    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] The PR that introduced the bug has been identified. Link to the PR:

    #12987

    • [@sobitneupane] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:

    #12987 (comment)

    • [@sobitneupane] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:

    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.

  15. sobitneupane commented on May 8, 2023

    @sobitneupane
    Contributor

    Regression Test Proposal:

    1. Login with any account
    2. Open any chat
    3. Send code block as a message (wrapped around by three back-ticks ```)
    4. Long click/press the message
    5. (Web, Desktop) Verify that context menu doesn't show
    6. (mWeb, Native) Verify that context menu shows
    7. Send an attachment
    8. Repeat step 4-6
    9. Send a link
    10. Repeat step 4-6

    Do we agree 👍 or 👎

  16. twisterdotcom commented on May 11, 2023

    @twisterdotcom
    Contributor

    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.

  17. twisterdotcom commented on May 11, 2023

    @twisterdotcom
    Contributor

    Here's the Issue timeline analysis:
    🐛 Issue created at: Sun, 16 Apr 2023 20:59:20 GMT
    🧯 Help Wanted at: Tue, 18 Apr 2023 16:46:57 GMT
    🕵🏻 Contributor assigned at: Fri, 21 Apr 2023 21:30:27 GMT
    🛸 PR created at: Thu, 24 Nov 2022 10:34:00 GMT
    🎯 PR merged at: Thu, 12 Jan 2023 23:15:17 GMT
    ⌛ Business Days Elapsed between assignment and PR merge: -76

    💰 Timeline Bonus/Penalty: 50% Bonus! 🎉

    If there were any OOO days holidays, please reconsider the bonus based on above timeline!

  18. bernhardoj commented on May 11, 2023

    @bernhardoj
    Contributor

    @twisterdotcom I get "This offer is not available anymore"

  19. twisterdotcom commented on May 11, 2023

    @twisterdotcom
    Contributor

    I've sent it again now. I have no clue why this happens.

  20. bernhardoj commented on May 11, 2023

    @bernhardoj
    Contributor

    Thanks! Accepted.

  21. twisterdotcom commented on May 11, 2023

    @twisterdotcom
    Contributor

    Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentBugDailyExternal

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions