-
Notifications
You must be signed in to change notification settings - Fork 3k
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 #41128] [$500] mWeb - Chat - The keyboard appears for a moment when leaving the thread #35494
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01278478c2e7ed2136 |
Triggered auto assignment to @Christinadobrzyn ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane ( |
We think that this bug might be related to #vip-vsb |
I can reproduce this based on the steps in the OP. I think this can be External so waiting for proposals. |
ProposalPlease re-state the problem that we are trying to solve in this issue.The keyboard appears for a moment when leaving the thread What is the root cause of that problem?When we are in a thread and the composer is focused the keyboard going to be displayed, but when we click on the three dots the keyboard get hide (as part of the behavior of this component), here no matter what option we select the keyboard going to be displayed again after three dots menu get hide, because of this when we leave the thread the keyboard seems to appear (expected behavior) and then disappears when the leave action makes we navigates back to main thread because the composer loose the focus. What changes do you think we should make in order to solve the problem?We can keep the focus on the composer when navigating backwards and the keyboard is displayed. To do this we should modify the ReportScreen Component to add a variable that determine if the user got to the screen using the navigation component with path (this let us know if the user is not getting to the Report from LHN), like:
And pass this to ReportFooter as a prop:
With the prop isReportOpenedFromNavigationPath we can now determinate when to force the input focus, to do this we can pass as a prop the result of this variable on ReportActionCompose, like:
Finally we should receive the new prop and use it to focus the composer when is true inside of ReportActionCompose component, like:
Result: Leaving.thread.keyboard.issue.mp4 |
collecting proposals! |
@samilabud Thanks for your proposal App/src/components/ThreeDotsMenu/index.tsx Lines 102 to 108 in ed95bc0
Above code block was introduced by this PR. As per the discussion in the PR, the change was made to refocus the text input after closing the modal.
We refocus the text input after closing the modal in Native and mWeb. If we remove the code, the text input will not get refocused even if we close the modal without taking any action. |
Still accepting proposals! |
Proposal@sobitneupane I have added the details of alternative proposal, please check it out. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@sobitneupane can you review this proposal when possible? #35494 (comment) |
@sobitneupane, @Christinadobrzyn Whoops! This issue is 2 days overdue. Let's get this updated quick! |
I will review the proposal asap. |
@samilabud Thanks for the update. But I am quite confused about the solution. It looks like a work around to me. What we want is to prevent the keyboard to close and reopen after leaving the thread. Can you please re-sate the problem, the root cause and how your solution is going to deal with the root cause. Please do explain your solution as well. |
Proposal@sobitneupane I have explained the solution better, please let me know if it makes sense to you. 🙏🏼 |
@Julesssss, @sobitneupane, @Christinadobrzyn Whoops! This issue is 2 days overdue. Let's get this updated quick! |
hi sorry @sobitneupane or @Julesssss can you provide an update, I'm not sure if we looking for proposals for the issue reported #35494 (comment) or if that should be a different issue. I'm wondering if that is an issue at all... |
Dmd Jules to see if I can get some guidance on what to do next for this |
Hey @Christinadobrzyn I was ooo.
As the user is going back to a parent thread I'm not sure this is a big issue. The pre-fix keyboard issue was far worse in my opinion, but lets see if we can further improve. Some questions first though:
|
@Julesssss, @sobitneupane, @Christinadobrzyn Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Sorry for the delay here - I'll test these on Monday unless someone @sobitneupane you have time.
|
I tested it on IOS. But it looks like there is some Issue in IOS with navigation. Each time I leave the thread instead of going back to the parent thread, it opens a new report(parent report). When I go back, I will end up in the same report(parent report). This issue can only be tested once the issue gets resolved. RPReplay_Final1714374664.MP4I could not test it on android though. I am having some issue while trying to build android. |
Hey @sobitneupane, the issue you mention sounds like this issue. Maybe we can wait for this one to be resolved |
Agreed. It seems like there might be a connection there. |
added Hold for #41128 to the subject. Let me know if that doesn't seem like the best next move. |
watching - #41128 |
Hey @Christinadobrzyn, I'm going to try and move that linked issue forward. |
thanks @Julesssss! I'll keep an eye on #41128 |
monitoring - #41128 |
1 similar comment
monitoring - #41128 |
PR - #41128 is done and I think this is resolved. Testing again and the keyboard shows after leaving a thread. screenRecording-28-5-2024-16-8.mp4Gonna ask QA to test again. https://expensify.slack.com/archives/C9YU7BX5M/p1716883797729199 |
Issue is still reproducible on Android mWeb 1953885561340247456az_recorder_20240528_103525.mp4 |
hum @sobitneupane can you restest? I'm not able to reproduce as is above #35494 (comment) |
@Christinadobrzyn I could not reproduce the issue in Android/Chrome. |
Awesome - let's close! thanks for checking @sobitneupane! |
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: v1.4.34-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
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Issue found when executing PR #35202
Action Performed:
Expected Result:
The keyboard doesn't appear for a moment when leaving the thread
Actual Result:
The keyboard appears for a moment when leaving the thread
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6362602_1706721121608.video_2024-01-31_17-29-22.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: