-
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
[HOLD for payment 2024-08-14] [$250] iOS - Search - User lands on blank workspace chat after paying report from search #46139
Comments
Triggered auto assignment to @lschurr ( |
We think that this bug might be related to ##wave-collect - Release 1 |
@lschurr 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/~018d43e8aee3c9a22d |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mananjadhav ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.When paying an expense from the search tab, after confirming payment, the app is navigated to an empty Report View. What is the root cause of that problem?It seems like we aren't waiting for the navigator to be ready before we navigate back to the original report. What changes do you think we should make in order to solve the problem?We should change these lines here Navigation.dismissModalWithReport(chatReport); To the following: Navigation.isNavigationReady().then(() => {
Navigation.dismissModalWithReport(chatReport);
Report.notifyNewAction(chatReport.reportID)
}) Here is a test branch with my changes What alternative solutions did you explore? (Optional)Additionally, I think it might also be helpful to convert the ReportView component from the depreciated withOnyx to useOnyx. const [transactionThreadReportActions] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${transactionThreadReportID}`,
{
canEvict: false,
},
({ reportActions }) => ReportActionsUtils.getSortedReportActionsForDisplay(reportActions, true))
const [transactionThreadReport] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT}${transactionThreadReportID}`,
{
initialValue: {}
}
)
const [session] = useOnyx(ONYXKEYS.SESSION) |
ProposalPlease re-state the problem that we are trying to solve in this issue.User is navigated to the blank workspace chat after paying money request from report RHP. What is the root cause of that problem?I haven't investigated why the workspace chat opens with only background image, but the blank issue is the same as #45727. The other issue here is that paying the money request closes the report RHP and navigate to the workspace chat. It's because we call dismiss modal when paying money request. Lines 6961 to 6964 in b0f810d
The dismiss modal code is old, but I don't think the code should be there. The dismiss modal never really works before because all the pay buttons are never in an RHP, but now it's possible that the pay button is in an RHP, that is the report RHP. So, before the report RHP, the dismiss modal is useless, and no one notices that. What changes do you think we should make in order to solve the problem?I suggest that we remove the dismiss modal code. Paying money request should let the user stay on the money request report. |
Will review the proposals in a while. |
Yeah I am not sure why we need to 🎀 👀 🎀 C+ reviewed. |
Triggered auto assignment to @Gonals, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@mananjadhav, @lschurr Eep! 4 days overdue now. Issues have feelings too... |
Quick bump @Gonals |
PR is ready cc: @mananjadhav |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.17-2 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-14. 🎊 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:
|
Payment summary:
|
This has been existed since a long time and hence I don't have an offending PR as such. We updated the logic for navigation as well as RHP during the course of time. Also I think the regression test is not necessary for this one. |
$250 approved for @mananjadhav |
Requested in ND. |
$250 approved for @bernhardoj |
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: 9.0.11.2
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team
Issue found when executing PR #45465
Action Performed:
Expected Result:
User is navigated to the workspace chat and can view the chat history
Actual Result:
User is navigated to the blank workspace chat, and it empty until user swipes down
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6551710_1721839950202.IMG_8414.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @lschurrThe text was updated successfully, but these errors were encountered: