-
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-06-20] [HOLD for payment 2024-06-18] [$250] Chat - Unable to navigate to LHN, back button loops between WS details & main chat page #41514
Comments
Triggered auto assignment to @johncschuster ( |
We think this issue might be related to the #vip-vsb. |
ProposalPlease re-state the problem that we are trying to solve in this issue.The back button loops if we open the report detail page after visiting a linked message of a report. What is the root cause of that problem?If we open the detail page from a report, App/src/pages/ReportDetailsPage.tsx Lines 269 to 270 in 7483d10
App/src/components/HeaderWithBackButton/index.tsx Lines 154 to 157 in 7483d10
But the navigation type will be changed to PUSH because the params are different. The topmost report has reportID and reportActionID in the params (linked message), but we navigate to a report without reportActionID. App/src/libs/Navigation/linkTo.ts Lines 166 to 179 in 7483d10
If we update the logic to only compares the reportID, this issue won't happen anymore, but it will remove the reportActionID from the param, so the message won't be linked anymore. What changes do you think we should make in order to solve the problem?To solve the issue correctly, we just need to remove if we want the user to see the report screen when going back after refresh, then it should be handled in this issue |
@johncschuster Eep! 4 days overdue now. Issues have feelings too... |
Job added to Upwork: https://www.upwork.com/jobs/~0110f0cb9e34f0e6c4 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rayane-djouah ( |
Reviewing now |
@bernhardoj, Thank you for the proposal. The root cause in your proposal makes sense. For the solution, can you ensure that removing |
This bug is not related to this issue, right? |
#30101 introduced the If you want, we can hold for https://www.github.com/Expensify/App/issues/41017 |
@bernhardoj, we can hold for that, but, I think the expected result is that when we click the back button, we should navigate to the linked reportAction. Can we find a solution to consider the linked reportAction when navigating to the top most report? I think of using backTo param or a linkedReportActionID prop. Wdyt? This way we don't need to remove |
If you don't refresh the page, then you will be navigated to the previous report. If the previous report has a linked action, then you will see the linked action. If you refresh and wait for #41017, then going back will show the report without the linked report action ID. This is the behavior on main too, so it's completely oos. We can achieve it by having a new param for the reportActionID for many report-related pages, but it's better to just stick the scope of this issue. |
@bernhardoj - what I mean is provided that the root cause of this issue is when we click the back button we navigate to the top most report with a push type because the params are differents, can we just include the App/src/components/HeaderWithBackButton/index.tsx Lines 154 to 157 in 7483d10
|
Ah I see, but that means you would need to modify App/src/components/HeaderWithBackButton/index.tsx Lines 153 to 158 in 1e5c18c
if there is a topmost report, we want to navigate to the report. It can be achieved by simply going back because going back will go back to the topmost report most of the time. If there is no topmost report, then we also go back. This also means we don't need to wait for #41017 (my bad) because it's already happening on main for details page too. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Yeah I tried removing |
@bernhardoj's proposal looks good to me. 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @hayata-suenaga, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
I agree that we can remove the |
PR is ready cc: @rayane-djouah |
Weekly update: PR C+ approved |
Heads up, I'll be mostly offline until June 5th, 2024. I can still review this issue, but my response might be slower. If there is something urgent, please reassign it. Thanks! |
thank you for the update. we're just waiting for the merge freeze to be lifted so probably not much we need from you 😄 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.81-11 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-06-18. 🎊 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:Contributor: @bernhardoj - $250 - paid via Upwork |
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.82-4 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-06-20. 🎊 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:
|
Regression Test Proposal 1. Open a workspace chat Do we agree 👍 or 👎 |
I've added the QA issue and will work on payment shortly. |
@hayata-suenaga I'm trying to make sense of the payment here. As far as I can tell, it looks like @rayane-djouah introduced the bug in this PR, which was reviewed by @rushatgabhane. It also looks like @bernhardoj has worked on the fix for the regression (here), and @rayane-djouah reviewed that PR. Have I understood that correctly? |
Yes that seems to be correct. The C+ authored a PR that introduced the regression and the same C+ reviewed the PR that fixed it. |
Melvin, we're just handling payments 😄 |
Ok! Thanks for confirming my understanding, @hayata-suenaga! Payment Summary:@rayane-djouah was originally paid in this issue |
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.70-0
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers): applausetester+1088ck@applause.expensifail.com
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL: Applause-Internal team
Issue reported by: Applause-Internal team
Action Performed:
Expected Result:
Unable should redirected to LHN, on tapping back button in main chat page
Actual Result:
Unable to navigate to LHN, back button loops between WS details & main chat page
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6468992_1714664353275.RPReplay_Final1714664285.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @johncschusterThe text was updated successfully, but these errors were encountered: