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 #10414] [$1000] mWeb/Safari - Chat - Focus is lost and keyboard does not open when selecting ‘Edit comment’ #25477

Open
1 of 6 tasks
lanitochka17 opened this issue Aug 18, 2023 · 33 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 Monthly KSv2

Comments

@lanitochka17
Copy link

lanitochka17 commented Aug 18, 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. Open staging.new.expensify.com in Mobile Safari on iPhone
  2. Login with any account
  3. Go to any chat with existing messages or send new message
  4. Long tap on message
  5. Select 'Edit comment' in context menu

Expected Result:

Message in 'Edit' mode > Keyboard is open and focus on the edited message

Actual Result:

Focus is lost and keyboard does not open when selecting ‘Edit comment’

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.55-3

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

Bug6168903_mWeb-Edit-Focus-Lost.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/~019d806d4cf680deb9
  • Upwork Job ID: 1693666426126630912
  • Last Price Increase: 2023-09-04
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Aug 18, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 18, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Aug 18, 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

@melvin-bot melvin-bot bot added the Overdue label Aug 21, 2023
@sakluger
Copy link
Contributor

Different issue, but slightly related to #24555 in that they are both unexpected behaviors when selecting Edit Comment in the mobile app.

@melvin-bot melvin-bot bot removed the Overdue label Aug 21, 2023
@sakluger sakluger added the External Added to denote the issue can be worked on by a contributor label Aug 21, 2023
@melvin-bot melvin-bot bot changed the title mWeb/Safari - Chat - Focus is lost and keyboard does not open when selecting ‘Edit comment’ [$1000] mWeb/Safari - Chat - Focus is lost and keyboard does not open when selecting ‘Edit comment’ Aug 21, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 21, 2023

Job added to Upwork: https://www.upwork.com/jobs/~019d806d4cf680deb9

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

melvin-bot bot commented Aug 21, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Aug 21, 2023

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

@shubham1206agra
Copy link
Contributor

Unable to repro in DEV
Is there any extra steps?

@swakeert
Copy link

Proposal

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

After clicking Edit Comment, the text input box is not getting focussed, resulting in keyboard not opening automatically on mobile phones.

What is the root cause of that problem?

https://github.com/Expensify/App/blob/main/src/pages/home/report/ContextMenu/ContextMenuActions.js#L283

In the editAction function, we are not calling the focus method when closePopover is true. In all the other functions, ReportActionComposeFocusManager.focus(); is called in one way or the other, making sure the focus is correctly and manually set.

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

We need to ensure the focus gets set on the correct text input. The ReportActionComposeFocusManager only handles focus on the default text input box for the main chat.

I would suggest creating a FocusManager that focuses on the newly created Edit Textbox and switches focus to it.

What alternative solutions did you explore? (Optional)

We can open the edit in its own page like 'reply in thread' functionality and set the focus to the default chat box using ReportActionComposeFocusManager, but that changes the UI and is not a bugfix.
PS: Seems like reply in thread is also not setting the focus correctly.

@jjcoffee
Copy link
Contributor

@swakeert Your RCA is missing an explanation of why this would only apply to Safari mWeb (if that is indeed the case!). I'm also curious if you're able to reproduce the issue on latest main?

@sakluger
Copy link
Contributor

Waiting on more proposals.

@melvin-bot melvin-bot bot added the Overdue label Aug 28, 2023
@jjcoffee
Copy link
Contributor

@lanitochka17 are you still able to reproduce? We've reports that it's no longer reproducible.

@melvin-bot melvin-bot bot removed the Overdue label Aug 28, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 28, 2023

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

@pradeepmdk
Copy link
Contributor

pradeepmdk commented Aug 30, 2023

this is a webkit issue https://bugs.webkit.org/show_bug.cgi?id=195884. both chrome and safari we will face this issue.

@jjcoffee
Copy link
Contributor

@pradeepmdk Are you able to reproduce the issue on latest main? You're welcome to raise a proposal to fix the issue if so!

@pradeepmdk
Copy link
Contributor

yes, @jjcoffee is still an issue there. i will try prepare the solution

@sakluger
Copy link
Contributor

I was still able to reproduce this on staging and prod. @pradeepmdk looking forward to your proposal!

@melvin-bot
Copy link

melvin-bot bot commented Sep 1, 2023

@sakluger @jjcoffee this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@sakluger
Copy link
Contributor

sakluger commented Sep 1, 2023

@pradeepmdk how's it coming?

If we don't get any proposals soon, I'll ask our expert contributors to help out with this one.

@pradeepmdk
Copy link
Contributor

@sakluger not yet. because they are allowing only user touch events based on their showing. We can't do anything here
We can check with expert contributors as well.

@sakluger sakluger removed the Daily KSv2 label Sep 5, 2023
@melvin-bot melvin-bot bot added the Overdue label Sep 14, 2023
@sakluger
Copy link
Contributor

No response, asked again.

@sakluger
Copy link
Contributor

sakluger commented Sep 26, 2023

Parashat said we can leave this issue on hold for #10414. Setting to Monthly to match the hold issue.

@melvin-bot melvin-bot bot removed the Overdue label Sep 26, 2023
@sakluger sakluger added Monthly KSv2 and removed Weekly KSv2 Help Wanted Apply this label when an issue is open to proposals by contributors labels Sep 26, 2023
@melvin-bot melvin-bot bot added the Overdue label Oct 27, 2023
@sakluger
Copy link
Contributor

sakluger commented Oct 31, 2023

Still on hold for #10414, which ended up getting delayed when an edge case was discovered that made the fix not work.

@melvin-bot melvin-bot bot removed the Overdue label Oct 31, 2023
@melvin-bot melvin-bot bot added the Overdue label Dec 2, 2023
@sakluger
Copy link
Contributor

sakluger commented Dec 4, 2023

Still no updates on the hold issue.

@melvin-bot melvin-bot bot removed the Overdue label Dec 4, 2023
@melvin-bot melvin-bot bot added the Overdue label Jan 5, 2024
@sakluger
Copy link
Contributor

sakluger commented Jan 5, 2024

Still on hold.

@melvin-bot melvin-bot bot removed the Overdue label Jan 5, 2024
@melvin-bot melvin-bot bot added the Overdue label Feb 6, 2024
@sakluger
Copy link
Contributor

sakluger commented Feb 7, 2024

Still on hold for #10414. I commented on that issue to see if we still planned to fix that one.

@melvin-bot melvin-bot bot removed the Overdue label Feb 7, 2024
@melvin-bot melvin-bot bot added the Overdue label Mar 11, 2024
@sakluger
Copy link
Contributor

Still on hold for #10414.

@melvin-bot melvin-bot bot removed the Overdue label Mar 11, 2024
@sakluger
Copy link
Contributor

sakluger commented Apr 3, 2024

Adding to vip-vsb since this is chat-related funcationality.

@melvin-bot melvin-bot bot added the Overdue label May 6, 2024
@sakluger
Copy link
Contributor

sakluger commented May 8, 2024

Still on hold for #10414

@melvin-bot melvin-bot bot removed the Overdue label May 8, 2024
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 Monthly KSv2
Projects
Status: No status
Development

No branches or pull requests

6 participants