-
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 c+ newdot payment][$1000] Compose box loses focus when reclicking same chat in LHN #23676
Comments
Triggered auto assignment to @kadiealexander ( |
Bug0 Triage Checklist (Main S/O)
|
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?This issue has been fixed previously in #21552 where we prevent opening Report page when re-clicking the active report. Here we retrieved the App/src/pages/home/sidebar/SidebarLinks.js Lines 148 to 158 in 5ffd4e6
However after the major refactor in #21406, What changes do you think we should make in order to solve the problem?Lift the check const isActiveReport = useCallback((option) => currentReportID === option.reportID, [currentReportID]); Declare proper prop types for Update: For the callback, in order not to use const prevCurrentReportID = usePrevious(currentReportID);
const isActiveReport = useCallback((option) => prevCurrentReportID === option.reportID, [prevCurrentReportID]); |
Repro: 2023-07-27_19-21-06.mp4 |
Job added to Upwork: https://www.upwork.com/jobs/~01a795f9206baa2f0c |
Current assignee @kadiealexander is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Santhosh-Sellavel ( |
I can take care |
📣 @Santhosh-Sellavel Please request via NewDot manual requests for the Reviewer role ($1000) |
📣 @0xmiroslav You have been assigned to this job! |
📣 @daveSeife 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app! |
@kadiealexander, @Santhosh-Sellavel, @0xmiroslav Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@0xmiroslav @Santhosh-Sellavel any updates? |
There's 1 proposal pending review. I will provide feedback tomorrow. |
Checking … |
Every time the current report page would change, the callback would change, and thus the Here is what we could do instead: |
We can save the For this part
we already have a hook called function SidebarLinksData({currentReportID}) {
const currentReportIDRef = usePrevious(currentReportID);
const isReportActive = useCallback((reportID) =>
reportID === currentReportIDRef.current,
// 👀 Notice how the useCallback has no dependency now and thus it reference will stay the same!
[]);
return (
<SidebarLinks {...} isReportActive={isReportActive} />
);
} @tienifr Feel free to use that to update your proposal 😊 |
Thanks @Santhosh-Sellavel!! I can't reproduce anymore, can you? |
@kadiealexander I've explained in the PR about why we should proceed even though the issue is no longer reproducible. |
Thanks @tienifr!! |
Based on my calculations, the pull request did not get merged within 3 working days of assignment. Please, check out my computations here:
On to the next one 🚀 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.65-7 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-09-15. 🎊 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:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
Bumping to weekly |
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:
|
@kadiealexander Please leave a payment summary here. |
Payouts due:
Eligible for 50% #urgency bonus? No Upwork job is here. |
Requested on ND |
Not overdue. |
I got paid lets close this one, thanks! |
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:
Compose box don't lose focus when Clicking on the same chat in LHN
Actual Result:
Compose box loses focus
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.46-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
Test87.Composerlosefocus-1.mp4
Recording.1360.mp4
Expensify/Expensify Issue URL:
Issue reported by: @daveSeife
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1690317170412039
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: