-
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
[Awaiting Payment 30th May] [Search v1] Chat - "From" link in IOU report details page navigates to the main chat twice #41198
Comments
Triggered auto assignment to @trjExpensify ( |
We think this issue might be related to the #collect project. |
ProposalPlease re-state the problem that we are trying to solve in this issue.The navigation to the parent report happens twice. What is the root cause of that problem?When we press the "From" link, it will call goBack with the report screen as the fallback which will be used twice. One without the report action ID and the other one with the report action ID for comment linking. App/src/components/ParentNavigationSubtitle.tsx Lines 38 to 43 in 35890a0
The issue happens after this PR where we will push the screen if the params is different, in this case, the report action ID param. App/src/libs/Navigation/linkTo.ts Lines 155 to 176 in 35890a0
Previously, we only compare the report ID to decide whether to push the report screen or not. What changes do you think we should make in order to solve the problem?I think we want to have the old behavior, that is to push the report screen only if the topmost report ID is different than the destination report ID, if it's other screen, then we will use the current condition.
|
@trjExpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@luacmartins @grgia putting this on your radar! I'll file it under Search v1. |
Job added to Upwork: https://www.upwork.com/jobs/~01c414e0c471cc81d1 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt ( |
@bernhardoj Thanks for the proposal. Your RCA makes sense. Can we get ride of the double navigation? That change is also recent #40315. |
@s77rt I think we can't get rid of the double but it doesn't work because App/src/libs/Navigation/Navigation.ts Lines 121 to 124 in 90b67a5
App/src/libs/Navigation/Navigation.ts Lines 224 to 236 in 90b67a5
The fallback route path contains a reportActionID, while the parent thread in the stack doesn't contain a reportActionID, so FORCED_UP navigation is used instead as shown in this video. |
CC @adamgrzybowski @WojtekBoman @Kicu if you wanna take a look at this one. |
@bernhardoj With the two goBack we still end up with a FORCED_UP navigation. With one goBack are you still able to reproduce this bug #40315 (review)? |
Yes, I can reproduce it with one goBack. Screen.Recording.2024-05-07.at.11.56.35.movThe real issue is actually the send button becomes unresponsive when coming back from a thread. We have an issue for that here. So, the double goBack is a workaround so the user doesn't need to press back to go back to the parent chat. If we fix the unresponsive button issue, then I think we won't need the double goBack anymore. The issue might be related to fabric updates. The gesture here doesn't respond at all. App/src/pages/home/report/ReportActionCompose/SendButton.tsx Lines 26 to 28 in 84118d8
With the solution that I propose, at least there won't be 2 report screen pushes to the nav stack anymore. There will only be 1 report screen pushed and it will be replaced with a report screen that has a reportActionID param. |
@bernhardoj Thanks for checking. I was able to reproduce the bug too. I think we should hold on #41528 and then remove the double goBack.
This could break #40280 |
@bernhardoj What I meant to say is that change is intended and it's probably needed to fix some case, reverting may cause an issue but perhaps we can fix the issue they faced in another way. I have left a comment here #40280 (comment) |
@bernhardoj We got some context; That change is only needed for the new search page, for the reports we should rely only on the report ids as you suggested 👍 🎀 👀 🎀 C+ reviewed |
Current assignee @luacmartins is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
📣 @s77rt 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @bernhardoj 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
PR is ready cc: @s77rt |
This issue has not been updated in over 15 days. @trjExpensify, @s77rt, @luacmartins, @bernhardoj eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
Payment summary as follows:
Paid. Closing! |
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.67-0
Reproducible in staging?: Y
Reproducible in production?: Y
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team
Action Performed:
Expected Result:
App will return to report details page.
Actual Result:
App returns to the same main chat. It only returns to report details page after tapping on the back button again.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6464770_1714364034837.RPReplay_Final1714363561.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @s77rtThe text was updated successfully, but these errors were encountered: