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

[$500] mWeb – Attachment - Unable to open image in new tab. #27896

Closed
1 of 6 tasks
lanitochka17 opened this issue Sep 20, 2023 · 30 comments
Closed
1 of 6 tasks

[$500] mWeb – Attachment - Unable to open image in new tab. #27896

lanitochka17 opened this issue Sep 20, 2023 · 30 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering Internal Requires API changes or must be handled by Expensify staff

Comments

@lanitochka17
Copy link

lanitochka17 commented Sep 20, 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. Go to https://staging.new.expensify.com/
  2. Log in with any Gmail account
  3. Open 1:1 conversation, click on the + button in the compose box
  4. Tap on add attachment
  5. Upload an image (jpeg or png)
  6. Tap on Send
  7. Tap on the image
  8. Press and hold over the image

Expected Result:

The context menu opens and tap “Open image in new tab”. Verify the URL starts with "https://staging.new.expensify.com/chat-attachments/".

Actual Result:

Nothing happens. The context menu does not open. Unable to open image in new tab

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.72-6

Reproducible in staging?: Yes

Reproducible in production?: Yes

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

Bug6207980_Unable_to_open_image_in_new_tab.mp4

Expensify/Expensify Issue URL:

Issue reported by: Applause - Internal Team

Slack conversation:

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~014bc07c9f376c4612
  • Upwork Job ID: 1714382069331976192
  • Last Price Increase: 2023-10-17
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Sep 20, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 20, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Sep 20, 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

@abdel-h66
Copy link
Contributor

Proposal

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

Unable to open image in new tab on long pressing the attachment

What is the root cause of that problem?

The issue only happens on Chrome due to this line of code

const defaultLongPressHandler = Browser.isMobileChrome() ? () => {} : undefined;

This passes an empty longPressHandler when the browser is chrome.
This line of code was added to fix an issue with the emojies being highlighted when long pressed. this is the issue
#24654 (comment)
And this is the PR fixing #26931

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

The changes that I have made are basically avoid passing the empty handler in all cases and pass undefined instead to the Pressable
onLongPress={!isDisabled && onLongPress ? onLongPressHandler : undefined}

Being aware of the Emojies issue I also tested that to make sure it won't introduce a regression. and it didn't.

I believe @s-alves10 can have more information about that fix, and what could this proposal break, beside the emojies styling that I made sure it stayed behaving the same.

What alternative solutions did you explore? (Optional)

N/A

@melvin-bot melvin-bot bot added the Overdue label Sep 23, 2023
@s-alves10
Copy link
Contributor

We're preventing default context menus. Is this worth fixing?

@abdel-h66
Copy link
Contributor

Do you mean by passing the undefined we are preventing the default context menu ? Or that's the behavior that we are looking for ?

@melvin-bot
Copy link

melvin-bot bot commented Sep 26, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Sep 28, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Oct 2, 2023

@JmillsExpensify 10 days overdue. I'm getting more depressed than Marvin.

@melvin-bot
Copy link

melvin-bot bot commented Oct 4, 2023

@JmillsExpensify this issue was created 2 weeks ago. Are we close to a solution? Let's make sure we're treating this as a top priority. Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@melvin-bot
Copy link

melvin-bot bot commented Oct 4, 2023

@JmillsExpensify 12 days overdue now... This issue's end is nigh!

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels Oct 9, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 9, 2023

This issue has not been updated in over 14 days. @JmillsExpensify eroding to Weekly issue.

@melvin-bot melvin-bot bot removed the Overdue label Oct 9, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 11, 2023

@JmillsExpensify this issue is now 3 weeks old. There is one more week left before this issue breaks WAQ. What needs to happen to get a PR in review this week? Please create a thread in #expensify-open-source to discuss. Thanks!

@melvin-bot
Copy link

melvin-bot bot commented Oct 16, 2023

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

@JmillsExpensify
Copy link

Triaging for proposals.

@melvin-bot melvin-bot bot removed the Overdue label Oct 17, 2023
@JmillsExpensify JmillsExpensify added the External Added to denote the issue can be worked on by a contributor label Oct 17, 2023
@melvin-bot melvin-bot bot changed the title mWeb – Attachment - Unable to open image in new tab. [$500] mWeb – Attachment - Unable to open image in new tab. Oct 17, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 17, 2023

Job added to Upwork: https://www.upwork.com/jobs/~014bc07c9f376c4612

@melvin-bot
Copy link

melvin-bot bot commented Oct 17, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Oct 18, 2023

@JmillsExpensify @0xmiroslav this issue is now 4 weeks old and preventing us from maintaining WAQ, can you:

  • Decide whether any proposals currently meet our guidelines and can be approved as-is today
  • If no proposals meet that standard, please take this issue internal and treat it as one of your highest priorities
  • If you have any questions, don't hesitate to start a discussion in #expensify-open-source

Thanks!

@melvin-bot melvin-bot bot added Internal Requires API changes or must be handled by Expensify staff and removed 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 labels Oct 18, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 18, 2023

Current assignee @0xmiroslav is eligible for the Internal assigner, not assigning anyone new.

@melvin-bot melvin-bot bot added the Overdue label Oct 20, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 23, 2023

@JmillsExpensify, @0xmiroslav Eep! 4 days overdue now. Issues have feelings too...

@0xmiros
Copy link
Contributor

0xmiros commented Oct 23, 2023

@abdel-h66 this is fixed already, right?

@melvin-bot melvin-bot bot removed the Overdue label Oct 23, 2023
@abdel-h66
Copy link
Contributor

Not sure, we need to double-check again.

@JmillsExpensify
Copy link

@applausebot Can we have someone re-test this issue to see if it's still outsanding?

@melvin-bot melvin-bot bot added the Overdue label Oct 26, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 30, 2023

@JmillsExpensify, @0xmiroslav Eep! 4 days overdue now. Issues have feelings too...

@JmillsExpensify
Copy link

@lanitochka17 Are you able to re-test this one when you get a chance?

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Nov 1, 2023
Copy link

melvin-bot bot commented Nov 6, 2023

@JmillsExpensify, @0xmiroslav Huh... This is 4 days overdue. Who can take care of this?

@JmillsExpensify
Copy link

In the queue for QA to re-test.

@bernhardoj
Copy link
Contributor

This is already fixed in #28915

@melvin-bot melvin-bot bot added the Overdue label Nov 10, 2023
Copy link

melvin-bot bot commented Nov 13, 2023

@JmillsExpensify, @0xmiroslav Huh... This is 4 days overdue. Who can take care of this?

@0xmiros
Copy link
Contributor

0xmiros commented Nov 13, 2023

@JmillsExpensify let's close this

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Nov 13, 2023
@greg-schroeder
Copy link
Contributor

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. Daily KSv2 Engineering Internal Requires API changes or must be handled by Expensify staff
Projects
None yet
Development

No branches or pull requests

7 participants