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

[$250] iOS Chat - Main composer instead of edit composer is focused when tapping Edit comment #51464

Closed
2 of 8 tasks
izarutskaya opened this issue Oct 25, 2024 · 28 comments
Closed
2 of 8 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering 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

@izarutskaya
Copy link

izarutskaya commented Oct 25, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: 9.0.54-0
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Y
Email or phone of affected tester (no customers): [email protected]
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team

Action Performed:

  1. Launch ND app.
  2. Go to DM.
  3. Send a message.
  4. Tap on the composer.
  5. Long press on the message sent in Step 3.
  6. Tap Edit comment.

Expected Result:

The edit composer will be in focus.

Actual Result:

The main composer is in focus.

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6645370_1729849780282.edit_message.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021850882933004334828
  • Upwork Job ID: 1850882933004334828
  • Last Price Increase: 2024-11-11
Issue OwnerCurrent Issue Owner: @
@izarutskaya izarutskaya added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Oct 25, 2024
Copy link

melvin-bot bot commented Oct 25, 2024

Triggered auto assignment to @mjasikowski (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

Copy link

melvin-bot bot commented Oct 25, 2024

💬 A slack conversation has been started in #expensify-open-source

Copy link

melvin-bot bot commented Oct 25, 2024

Triggered auto assignment to @anmurali (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Oct 25, 2024
Copy link
Contributor

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@izarutskaya
Copy link
Author

Production

P.1.MP4

@mjasikowski
Copy link
Contributor

checking

@mjasikowski
Copy link
Contributor

reproduced in dev

@mjasikowski
Copy link
Contributor

Reverting #51477 does alter the behavior

Screen.Recording.2024-10-25.at.17.12.28.mov

@Beamanator
Copy link
Contributor

@hungvu193 is helping look into reverting #51309 in slack - https://expensify.slack.com/archives/C01GTK53T8Q/p1729858771902939

@Beamanator
Copy link
Contributor

Seems like the revert is not good enough - i'm trying to get my VM working to help debug iOS

@Beamanator Beamanator added the External Added to denote the issue can be worked on by a contributor label Oct 28, 2024
@melvin-bot melvin-bot bot changed the title iOS Chat - Main composer instead of edit composer is focused when tapping Edit comment [$250] iOS Chat - Main composer instead of edit composer is focused when tapping Edit comment Oct 28, 2024
Copy link

melvin-bot bot commented Oct 28, 2024

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 28, 2024
Copy link

melvin-bot bot commented Oct 28, 2024

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

@Beamanator
Copy link
Contributor

Hoping to get some help by making this external

@Beamanator
Copy link
Contributor

@289Adam289
Copy link
Contributor

Hi! I am from SWM, an expert agency. I've looked at this issues and adding autoFocus prop seems to work but I will investigate root cause off the problem tomorrow.

Copy link

melvin-bot bot commented Oct 28, 2024

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

@Beamanator Beamanator added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Oct 29, 2024
@Beamanator
Copy link
Contributor

Discussed a bit in slack here, got some other opinions and overall agreed this isn't a big enough bug to block deploy

@Beamanator
Copy link
Contributor

Unassigning myself & @hungvu193 b/c I believe this will be investigated deeply by SWM

@289Adam289
Copy link
Contributor

289Adam289 commented Oct 29, 2024

Hi! Fix proposed by @shahinyan11 with setTimeout seems to work well. Apparently ios native side needs more time to change focus and proposed code ensures the callback will be executed after event stack is cleared. I am still not entirely sure what the root cause is.

@yuwenmemon
Copy link
Contributor

@shahinyan11 does your solution also fix #51482

@melvin-bot melvin-bot bot added the Overdue label Oct 31, 2024
Copy link

melvin-bot bot commented Nov 1, 2024

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

@mjasikowski
Copy link
Contributor

@289Adam289 will you investigate this further or shall we consider the workaround good enough and close this one out?

@melvin-bot melvin-bot bot removed the Overdue label Nov 4, 2024
@289Adam289
Copy link
Contributor

I think the workaround is good enough.

Copy link

melvin-bot bot commented Nov 4, 2024

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

@melvin-bot melvin-bot bot added the Overdue label Nov 11, 2024
Copy link

melvin-bot bot commented Nov 11, 2024

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

@Jaeta01
Copy link

Jaeta01 commented Nov 11, 2024

Proposal

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

iOS Chat - Main composer instead of edit composer is focused when tapping Edit comment

What is the root cause of that problem?

We implemented the isWindowReadyToFocus function differently for Android and other platforms. For other platforms, it resolves immediately.

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

Update isWindowReadyToFocus to bellow

const isWindowReadyToFocus = () => new Promise(resolve => {
    setTimeout(resolve, 0);
});

What alternative solutions did you explore? (Optional)

Copy link

melvin-bot bot commented Nov 11, 2024

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

@anmurali
Copy link

anmurali commented Nov 12, 2024

@mjasikowski - based on #51464 (comment), should we be closing this issue? I am OOO for a week, so if yes - can you close it? And if no, pls re-add the Bug label to get another BZ member assigned.

@melvin-bot melvin-bot bot removed the Overdue label Nov 12, 2024
@anmurali anmurali removed their assignment Nov 12, 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. Daily KSv2 Engineering 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

8 participants