-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[$250] Search - Report always auto scroll down after editing the expense from RHP #45434
Comments
Triggered auto assignment to @aldo-expensify ( |
👋 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:
|
We think that this bug might be related to #wave-collect - Release 1 |
This behaviour is also in production, so removing the deploy blocker label: Screen.Recording.2024-07-15.at.3.51.53.PM.mov |
Triggered auto assignment to @greg-schroeder ( |
Job added to Upwork: https://www.upwork.com/jobs/~01254f76c66b3ced64 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @alitoshmatov ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.The report chat list always scroll to bottom when editing the money request info if we open it from the search page. What is the root cause of that problem?When we open the report screen from the search page, it's inside an RHP navigator. In RHP navigator, a previous screen is hidden, that is the display is set to 'none' (you can check this yourself from the element inspector). In our case, when we open the report RHP, and then open the description page, the report RHP is hidden. The list in the report screen uses a custom FlatList which sets up a mutation observer. The mutation observer will scroll to the last scroll offset if it's different than the current offset. App/src/components/FlatList/index.tsx Lines 123 to 134 in 7d58aa6
We continuously save the last scroll offset here. App/src/components/FlatList/index.tsx Lines 77 to 78 in 7d58aa6
But somehow, after updating the money request, the last scroll offset is 0 and the current scroll offset is the correct scroll offset. That is because, when a view has a display of none, the scroll offset is 0 (scrollTop). App/src/components/FlatList/index.tsx Lines 50 to 55 in 7d58aa6
The flow is like this:
What changes do you think we should make in order to solve the problem?Ignore the mutation observer if the list is hidden. One way to check if it's hidden is to check whether the height is 0 or not. A hidden view will have a height (or width) of 0. App/src/components/FlatList/index.tsx Lines 123 to 134 in 7d58aa6
OR Don't save the scroll offset in App/src/components/FlatList/index.tsx Lines 72 to 78 in 7d58aa6
|
Proposal review underway |
@greg-schroeder, @alitoshmatov, @aldo-expensify Whoops! This issue is 2 days overdue. Let's get this updated quick! |
bump @alitoshmatov |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.16-8 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 2024-08-13. 🎊 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:
|
Processing |
Payment summary: Contributor: @bernhardoj - $250 - You can make a manual request via ND cc @alitoshmatov can you complete the checklist so we can close this out? Thanks! |
Requested in ND. |
$250 approved for @bernhardoj |
Friendly bump @alitoshmatov on completing the list |
@greg-schroeder, @bernhardoj, @alitoshmatov, @aldo-expensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
|
@greg-schroeder was everyone payed? are we ready to close this? |
yup! closing |
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.7-3
Reproducible in staging?: Y
Reproducible in production?: N
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
The report will not auto scroll down after editing the expense
Actual Result:
The report always auto scroll down after editing the expense from RHP
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6543218_1721078509312.scroll_4n41xoPu.mov
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: