-
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-07-26] [$1000] App loses focus from compose box on clicking same chat in LHN for the 2nd time #20865
Comments
Triggered auto assignment to @jliexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
I'm on Staging (v1.3.28-5) and I don't think this is anb issue anymore? 2023-06-16_17-01-31.mp4Please re-test on the newest version and re-open with a video + repro steps if it is an issue, thanks! |
Hi @jliexpensify, you will need to click twice i.e. reclick on same chat in LHN to reproduce it. 2023-06-17.09-07-32.mp4 |
On v1.3.29-0, can reproduce - thanks @dhanashree-sawant Updated the issue to make it clearer. |
Job added to Upwork: https://www.upwork.com/jobs/~015fc6dbe666a661d7 |
Current assignee @jliexpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Santhosh-Sellavel ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.App loses focus from compose box on clicking same chat in LHN for the 2nd time What is the root cause of that problem?If users click on the different chat, the ReportActionCompose will be unmounted and mounted again so the input is focused, but if they click on the same chat, the ReportActionCompose is not unmounted, that why we can see the text input is blurred. Additionally, in App/src/libs/Navigation/Navigation.js Lines 76 to 79 in 238e8be
we have the logic to blur the active element when we navigate to the screen (e.x: click on LHN option to open chat). It's used to prevent tooltip visible on What changes do you think we should make in order to solve the problem?In OptionRowLHN we should add
And in App/src/pages/home/sidebar/SidebarLinks.js Lines 148 to 155 in 238e8be
we can add the condition to prevent navigate to the same chat
ResultScreen.Recording.2023-06-19.at.11.54.17.mov |
Looks like something related to As a reminder, please make sure that all proposals are not workarounds and that any and all attempt to fix the issue holistically have been made before proceeding with a solution. Proposals to change our Feel free to drop a note in #expensify-open-source with any questions. |
Bump @Santhosh-Sellavel as we have a proposal |
@tienifr |
Sorry for the delay somehow I missed this! |
@Santhosh-Sellavel using |
@tienifr your proposal is not working for me! |
@Santhosh-Sellavel I think it's because of this line
the Screen.Recording.2023-06-24.at.02.35.35.movThis issue still happen on staging and will be fixed in #16098 So can you please reset Screen.Recording.2023-06-24.at.02.39.14.mov |
@jliexpensify |
@Santhosh-Sellavel It seems weird. Did you add e.preventDefault() in onMouseDown in OptionRowLHN and the condition to prevent navigating to the same page as what I mentioned in the proposal. Thanks |
Yeah, I did add that. I messed up the other condition. 🤦 I used showReportPage(option) {
if (this.props.isCreateMenuOpen || this.props.currentReportId === option.reportID) {
// Prevent opening Report page when click LHN row quickly after clicking FAB icon
return;
}
Navigation.navigate(ROUTES.getReportRoute(option.reportID));
this.props.onLinkClick();
} |
📣 @Santhosh-Sellavel We're missing your Upwork ID to automatically send you an offer for the Reviewer role. |
📣 @tienifr 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Upwork job |
📣 @dhanashree! 📣
|
The BZ member will need to manually hire dhanashree for the Reporter role. Please store your Upwork details and apply to our Upwork job so this process is automatic in the future! |
The PR ready for review #21552! |
Hired @dhanashree-sawant . @Santhosh-Sellavel are you being paid via New.Dot? |
@jliexpensify Yes will be via Newdot, please cancel offer thanks! |
Weird, no offer to cancel! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.42-26 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-07-26. 🎊 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.
As a reminder, here are the bonuses/penalties that should be applied for any External 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:
|
As far as I see this is not broken by any PR this was just a case we missed handling, from the initial implementation. @MonilBhavsar Let me know if you differ on any of the above, thanks! |
Regression StepsTest on Desktop App & Desktop Web only
👍 or 👎 |
@jliexpensify Can you leave a comment confirm amount to be paid for C & C+ So I can proceed with Request on ND, thanks! |
Payments:
@MonilBhavsar - are you good with this as the Regression Test before I pay out? |
Yes, looks good to me |
Paid out, job closed. @Santhosh-Sellavel please request payment via New.Dot. |
Reviewed details for @Santhosh-Sellavel. These details are accurate based on summary from Business Reviewer and are now approved for payment in NewDot. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
App should keep the focus on compose box whenever we click on chat in LHN
Actual Result:
App loses focus from compose box on reclicking on same chat in LHN
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.29.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
Notes/Photos/Videos: Any additional supporting documentation
app.loses.focus.on.reclick.on.chat.LHN.mp4
Recording.982.mp4
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1686293905214069
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: