-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 for payment 2023-12-29] [$500] mWeb/Safari - Chat - Compose box disappears while editing a message #32218
Comments
👋 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:
|
Triggered auto assignment to @tgolen ( |
I'm checking this out. I didn't find anything in the list of PRs that I thought could cause this. I am now trying to run |
I was able to reproduce this on production. I am going to remove the deploy blocker label and we can work on this like a normal bug. |
Triggered auto assignment to @slafortune ( |
Bug0 Triage Checklist (Main S/O)
|
Job added to Upwork: https://www.upwork.com/jobs/~01dc941d9d412023ac |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @alitoshmatov ( |
Actually @lanitochka17 I am not able to reproduce this on staging or production either - are you still able to? |
@slafortune Only 2 out of 4 testers were able to reproduce this issue 0-02-01-60a678a07e042676074fb09d6201ac2443b2bdfe10da4a9b4375daf0238c1198_64481565b6a67213.mp4 |
ProposalPlease re-state the problem that we are trying to solve in this issue.mWeb/Safari - Chat - Compose box disappears while editing a message. Note: This only happens when edit input & composer both are blurred and we save or delete the draft message in the What is the root cause of that problem?We call
App/src/libs/actions/InputFocus/index.website.ts Lines 19 to 24 in ef3d8cd
What changes do you think we should make in order to solve the problem?IMO, the best approach is to initialize a ref to track whether the draft is published or saved. If it is, we don't need to call Resultcomposer_lost_fix.mp4 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Composer disappears when close or save the unfocused edit composer What is the root cause of that problem?When close or save the edit composer, App/src/pages/home/report/ReportActionItemMessageEdit.js Lines 288 to 290 in ef3d8cd
This changes the App/src/pages/home/report/ReportActionItemMessageEdit.js Lines 139 to 141 in ef3d8cd
If the edit composer wasn't focused, App/src/libs/actions/InputFocus/index.website.ts Lines 19 to 22 in ef3d8cd
So
This is the root cause Note: Clean up function is called when the edit composer gets unmounted. Why doesn't the main composer appear again?
All effect callbacks are called after the rendering and all clean up functions are called after the effect callbacks are called. In effect callback we focus the edit composer input and the App/src/pages/home/report/ReportActionItemMessageEdit.js Lines 194 to 196 in ef3d8cd
What changes do you think we should make in order to solve the problem?We change the App/src/pages/home/report/ReportActionItemMessageEdit.js Lines 289 to 290 in ef3d8cd
before this line This would haven't any side effects and works perfect Result32218.mp4What alternative solutions did you explore? (Optional)We can set the |
Just jumping in here to answer this question quickly:
@kpadmanabhan I think that is expected. As to whether or not it's the best UX is a different question :D |
Triggered auto assignment to @tylerkaraszewski, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @alitoshmatov 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @s-alves10 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
PR is ready for review: #32598 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.15-5 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-12-29. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
|
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:
|
@tylerkaraszewski, @slafortune, @alitoshmatov, @s-alves10 Huh... This is 4 days overdue. Who can take care of this? |
|
@slafortune This one is ready for payment |
All paid! Thanks @alitoshmatov ! |
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: 1.4.5-3
Reproducible in staging?: Y
Reproducible in production?: N
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:
Action Performed:
Expected Result:
After modifying the message, we should see the compose box
Actual Result:
The compose box disappears when we modify the message
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6295040_1701284561426.0-02-01-a6584f77571a7074a9000a1a52d6496c645f2d333667779aaa1ae23cb22c82be_359313f0c2723d11.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: