-
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 for payment 2025-01-17] [$250] Page not scroll down when hold and unhold expense #54580
Comments
Triggered auto assignment to @anmurali ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Page not scroll down when hold and unhold expense What is the root cause of that problem?We have added Lines 8369 to 8370 in 918488a
Lines 8487 to 8488 in 918488a
What changes do you think we should make in order to solve the problem?We should add the + Navigation.dismissModal(isSearchTopmostCentralPane() ? undefined : currentReportID); Line 8370 in 918488a
Line 8488 in 918488a
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N/A What alternative solutions did you explore? (Optional)To simplify the implementation, we can create a unified common |
ProposalPlease re-state the problem that we are trying to solve in this issue.Page not scroll down when hold and unhold expense What is the root cause of that problem?In this PR, we wrap this function into the App/src/pages/home/report/ReportActionsList.tsx Lines 415 to 417 in 918488a
And in hold and unhold expense, we don't update What changes do you think we should make in order to solve the problem?We should update
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?NA What alternative solutions did you explore? (Optional)Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
@anmurali I can take it as C+ since I have the prior context on it |
ProposalPlease re-state the problem that we are trying to solve in this issue.Page not scroll down when hold and unhold expense What is the root cause of that problem?We are notifying new action in hold and unhold but when the scrollToBottom is called hasNewestReportActionRef will be false App/src/pages/home/report/ReportActionsList.tsx Lines 423 to 424 in 12e0941
This is because we haven't correctly set the transaction thread report lastVisibleActionCreated in optimsitcData to created of the last action we added optimistically
What changes do you think we should make in order to solve the problem?We need to also optimistically set lastVisibleActionCreated of the transactionThreadReport to the last action.created. In putOnHold we need to set the lastVisibleActionCreated to
and in unHoldRequest we set it to
Note:1.Setting it to Line 8251 in 12e0941
so hasNewestReportActionRef will still be false. 2. We need to update created of the transactionThreadReport not getDisplayedReportID (as getDisplayedReportID is the parent report id of the transactionThread for the case of the single transaction thread) as we are adding the actions to the transactionThread and that is exactly what the BE sets too 👍 What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?What alternative solutions did you explore? (Optional) |
@anmurali Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Job added to Upwork: https://www.upwork.com/jobs/~021874221658907997827 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @paultsimura ( |
Reviewing soon 👀 |
Important A note for all the contributors in this GH: please do not ignore the "Automated tests" section of the proposal. This solution can and should be covered with a unit test. The proposal by @FitseTLT is the most complete and points out important pros over the previous similar proposal. I'd go with it. 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @techievivek, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @paultsimura 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @FitseTLT 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.82-12 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 2025-01-17. 🎊 For reference, here are some details about the assignees on this issue:
|
@paultsimura @anmurali @paultsimura The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button] |
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test ProposalTest:
Do we agree 👍 or 👎 |
BTW, this summary is incorrect - only me and @FitseTLT require payment. |
@paultsimura, @anmurali, @techievivek, @FitseTLT Huh... This is 4 days overdue. Who can take care of this? |
Payment completed! |
Added regression test as well. |
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.78-2
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?:
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: @dukenv0307
Slack conversation (hyperlinked to channel name): expensify_bugs
Action Performed:
Expected Result:
After hold and unhold expense, it scrolls to bottom
Actual Result:
After hold and unhold expense, it isn't scrolling to the comment section
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
bug-resize.mp4
Recording.867.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @anmuraliThe text was updated successfully, but these errors were encountered: