-
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 2024-04-09] [$500] Expense - Page scrolls back down when dismissing add receipt RHP in transaction thread #38935
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 @flodnv ( |
We think that this bug might be related to #wave-collect - Release 1 |
@flodnv FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
Job added to Upwork: https://www.upwork.com/jobs/~01e4b313e99e0a0eca |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mananjadhav ( |
I couldn't reproduce this on dev but it is still there on staging. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Page scrolls back down when dismissing add receipt RHP in transaction thread What is the root cause of that problem?the app makes a request to App/src/pages/home/ReportScreen.tsx Lines 430 to 439 in 6873f24
What changes do you think we should make in order to solve the problem?
if (!isFocused || prevIsFocused || !ReportUtils.isChatThread(report) || !isSmallScreenWidth || report.notificationPreference !== CONST.REPORT.NOTIFICATION_PREFERENCE.HIDDEN) {
if (
!isFocused ||
prevIsFocused ||
!ReportUtils.isChatThread(report) ||
ReportUtils.isMoneyRequest(report) ||
report.notificationPreference !== CONST.REPORT.NOTIFICATION_PREFERENCE.HIDDEN
) { alternativelysince the previous We can introduce a new boolean value, |
If it is caused by this PR then is it not a regression? |
+1, are we saying the bug is reproducible on production? |
I can confirm this bug is reproducible only in staging and not on production. |
Taking over for @flodnv who needs to run |
The proposal by @abzokhattab is not the solution, we still call |
i see .. but why would we send an when dismissing the panel, the report data should be the same, so there is no need to send an |
@abzokhattab Fair point, but I don't think that's a concern for this issue. Feel free to bring up that concern in #expensify-open-source 🙂 |
Okay, started a conversation here on slack |
Still looking for reasons why the scrolling is happening and possible solutions, but this is a minor issue so I won't let this block the deploy. |
Triggered auto assignment to @kadiealexander ( |
Okay, so just to recap, the issue occurs when we call Firstly, it's important to note that this fix is only valid for mobile devices. The bug was originally a mobile-only issue based on my testing. The behavior of I tried using Given the numerous blockers we're facing, I need to jump on them :). Therefore, as a temporary solution, I suggest adding So, TL;DR: We've gotta avoid calling |
thanks @perunt, that's a very good observation, i have updated my proposal to check for the |
It doesn't fix the origin of the issue, which I believe is this PR |
@perunt Sounds good to me - can we prep the PR for review? |
@yuwenmemon @perunt @roryabraham let me know what you think about the alternative proposal here, it fixes the join issue in a more robust way which doesn't cause the current issue or any other issue related to the current |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.58-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-04-09. 🎊 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:
|
@mananjadhav please complete the checklist! |
Thanks for the bump @kadiealexander. We already discussed the offending PR with the explanation. I don't think we need a regression test for this one. |
Payment Summary
BugZero Checklist (@kadiealexander)
|
$500 approved for @mananjadhav based on checklist above. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.56-2
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by:
Slack conversation:
Action Performed:
Expected Result:
The page will not scroll down when closing the RHP (production behavior)
Actual Result:
The page scrolls down when closing the RHP
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6425973_1711372872772.20240325_151949.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @mananjadhavThe text was updated successfully, but these errors were encountered: