-
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-02] [$500] "Go back to home page" in LHN doesn't work when WS deleted from secondary device #36266
Comments
Job added to Upwork: https://www.upwork.com/jobs/~0170390297c07d44ce |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @DylanDylann ( |
Triggered auto assignment to @MitchExpensify ( |
We think that this bug might be related to #wave8-collect-admins |
ProposalPlease re-state the problem that we are trying to solve in this issue.The Go back to home page link is not taking you back home What is the root cause of that problem?The link actions is defined to dismiss the modal it's expected to be in. The Component is FullPageNotFoundView. however we are not in a modal. This is part of navigation previous navigation changes. What changes do you think we should make in order to solve the problem?We should update the link action from What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue."Go back to home page" in LHN doesn't work when WS deleted from What is the root cause of that problem?As discussed in the below comment. Firstly, we need to change text In the
we, are dismissing
we are just moving back to What changes do you think we should make in order to solve the problem?Firstly, we need to add in place of
in the And also, we need to add this :
only, this in the Working Video of the SolutionScreen.Recording.2024-02-19.at.6.33.41.PM.mp4What alternative solutions did you explore? (Optional)N/A |
ProposalPlease re-state the problem that we are trying to solve in this issue.The Go back to home page link is not taking you back to settings What is the root cause of that problem?The link is not doing anything because the button action is trying to dismiss a modal. The Component is this logic is in is, FullPageNotFoundView. however we are not in a modal. This is part of navigation previous navigation changes. What changes do you think we should make in order to solve the problem?If we want to navigate back to the workspace settings, we want it to be specific to this flow as not all FullPageNotFoundView will want to go to settings. We should update the link action from |
@jeremy-croff Just wanted to put it that, he just updated his new proposal after, I have put mine. |
I added a second proposal for navigating to settings, since I believe yours is lacking. Instead of updating the original, to accurately reflect the order and not take advantage of you! |
My proposal is lacking or not that should be rather decided by Expensify / Proposal Reviewing Team, but for the matter of fact, I believe that inital comments on the second proposal speaks something different, but I am not here to take up or hold any things against anyone. As the the reviewers think is right. I will accept it. |
I have posted a second proposal after yours that is different from my original one because I am unsure of the expected behaviour to go back home, as the current text indicates, or if should go back to work space settings, like the github issue expects. My second proposal is different from yours, as we would avoid regression for a commonly re-used screen, as hardcoding a navigation action to settings ( like you proposed ) is specific to this flow, but not other error screens. I hope you agree that this is a key difference in our proposals and it is listed after yours, so no worry about first come first serve. This is purely a matter of solution chosen. I did not edit/add an alternative solution to my first proposal, precisely to respect the order and give you the first proposal regarding navigating to workspace-settings. |
ProposalPlease re-state the problem that we are trying to solve in this issue."Go back to home page" in LHN doesn't work when WS deleted from secondary device What is the root cause of that problem?We do not have a App/src/pages/workspace/WorkspaceInitialPage.tsx Lines 177 to 181 in bfae5b2
We also don't have it passed to the App/src/pages/workspace/WorkspaceMembersPage.js Lines 425 to 429 in bfae5b2
If we don't pass any prop to the
What changes do you think we should make in order to solve the problem?We need to pass the Now as we wish to have same functionality for App/src/pages/workspace/WorkspacePageWithSections.tsx Lines 149 to 151 in bfae5b2
So in const goBack = () => {
Navigation.goBack(ROUTES.SETTINGS_WORKSPACES);
// Needed when workspace with given policyID does not exist
Navigation.navigateWithSwitchPolicyID({route: ROUTES.ALL_SETTINGS});
}; And then use the const in the <FullPageNotFoundView
onBackButtonPress={goBack}
onLinkPress={goBack} Note If we want the subtitile to be The implementation below are totally optional (I think we are having a confusion here as this issue only deals with the above proposed solution :)Also from the latest comments from @shawnborton , we need to have only one page not found and not two: We just need to wrap the App/src/pages/workspace/WorkspaceInitialPage.tsx Lines 170 to 171 in bfae5b2
|
@DylanDylann, my solution doesn't focus on changing the subtitle or anything. My solution more focuses on
@DylanDylann, My solution doesn't focuses on changing the subtitle on the page from "Go back to home page" to
In both the cases you will be redirected to |
@godofoutcasts94 Where do you apply this change
|
I am planning to apply this change here (that's just an idea maybe I can be right or wrong. Just wanted more clarity if I am wrong as well) :
|
Proposal UpdatedUpdated my proposal, to match the expectations from the comments #36266 (comment) by @DylanDylann |
Depending on which way the copy goes my proposal still holds, but will have to follow copy guidance. Main focus of my proposal is to use the Navigation stack to go back to the non error screen, so that this screen generically goes back. With a fallback to HOME if there is no stack. |
Not overdue, progressing |
@Expensify/design Please help to check my comment here |
First of all, I think we are fixing this view so that only one "Not found" view can show at all times. Is that right? Second, we could just use something way more generic like "Get me out of here" for the link. |
Yeah, this is wave8 -- an issue born from ideal nav. |
@godofoutcasts94 Sorry, It is my mistake. Please update the proposal to cover the case as mentioned here |
Sure! Updated proposal will be ready in sometime for review. @DylanDylann |
Hey, I'm from SWM expert's agency. This issue will be fixed in this PR, as those are closely related. button.fix.mov |
@kosmydel , this works fine for the profile page(even with the current code base), the bug occurs for the members page as we change the component, can you test this again with members page with youe current code? |
Here you are: members-button.mov |
@trjExpensify and @DylanDylann is this the required behaviour? |
Updated Proposal, i dont know links are not working on the proposal pointing to specific points in the codebase. |
Yeah, I think @kosmydel has resolved this issue by the looks of things. So @DylanDylann, this can be closed right? |
@trjExpensify Yes. Let's close this one |
Cool, sounds good! |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.12-0 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-02. 🎊 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:
|
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: 1.4.39-0
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: applause internal team
Slack conversation:
Action Performed:
Prerequisite: Main and secondary devices logged in to the same user in New Expensify
Expected Result:
User should be redirected to Workspaces settings.
Actual Result:
Nothing happens when user clicks on "Go back to home page" in LHN
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6373526_1707483142078.2024-02-08_23-53-05.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @MitchExpensifyThe text was updated successfully, but these errors were encountered: