-
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
[$250] Workflows - Back button on workspace editor reopens Workflows after adding workflow #47458
Comments
Triggered auto assignment to @isabelastisser ( |
Triggered auto assignment to @blimpich ( |
👋 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:
|
We think this issue might be related to the #wave-control |
Production Screen_Recording_20240814_225656_Chrome.mp4 |
This feature is behind a beta so I am removing the feature flag cc @blazejkustra @DylanDylann |
ProposalPlease re-state the problem that we are trying to solve in this issue.After submitting a new approval workflow, pressing back from the workspace reopens the workflow page again. What is the root cause of that problem?When we are creating a new approval workflow, we go from selecting members step -> selecting approver step. At this point, the rhp nav stack is: [select member, select approver]. When we go next again, both screens are removed and replaced with the confirmation page. App/src/pages/workspace/workflows/approvals/WorkspaceWorkflowsApprovalsApproverPage.tsx Lines 186 to 188 in 57ef25c
So, the confirm page will be the only one in the RHP stack. When we submit the confirmation, the app will call goBack with a fallback to the workflow page. App/src/pages/workspace/workflows/approvals/WorkspaceWorkflowsApprovalsCreatePage.tsx Lines 47 to 48 in 57ef25c
Because the confirm page is the only screen in the RHP, the confirm page will be replaced with the fallback route, so there is a duplicate workflow page in the nav stack. This happens too if we refresh the page while on the confirm page. What changes do you think we should make in order to solve the problem?We should remove the fallback route, so till be just It's the same as we did when editing the approval. App/src/pages/workspace/workflows/approvals/WorkspaceWorkflowsApprovalsEditPage.tsx Lines 53 to 54 in 57ef25c
|
Job added to Upwork: https://www.upwork.com/jobs/~0122ee0f611f968eaa |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @shubham1206agra ( |
@blazejkustra it seems this relates to the navigation bug that we discussed before. Should we want to take over this one with a navigation bug here |
@DylanDylann I am not sure that the fix will be simple since I encountered this problem before too. And @bernhardoj's proposal fixes the issue without any side effects. So lets go with that right now. 🎀👀🎀 C+ reviewed |
Current assignee @blimpich is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
@DylanDylann Thread for reference https://expensify.slack.com/archives/C01GTK53T8Q/p1719319215720149 |
@shubham1206agra @bernhardoj You mean that we should remove naviagte function and only use goBack, right? |
No remove fallback route |
@tgolen @blazejkustra I believe that this bug has the same RCA as the navigation bug that we discussed in previous PR @blimpich @shubham1206agra Maybe the navigation in the approval workflow feature will be updated soon and this bug will no longer reproduce. Let's wait for a thought from @blazejkustra |
I agree with @DylanDylann, let's wait with this issue for now. |
On hold! |
Hold: #47697 |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Should be resolved now with #47845 merged |
@shubham1206agra @bernhardoj are either of you able to reproduce the issue here? |
It's not reproducible anymore. |
Thanks for confirming, @bernhardoj! Closing this. |
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: v9.0.20-0
Reproducible in staging?: Y
Reproducible in production?: N
Email or phone of affected tester (no customers): applausetester+kh050806@applause.expensifail.com
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-internal team
Action Performed:
Precondition:
Expected Result:
App will return to workspace list.
Actual Result:
App reopens Workflows page when tapping on back button on workspace editor page after adding workflow.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6572333_1723664222742.w_57b3cc356d3fcdff84e08e75aed1e34f10be7b0b-2024-08-14_19_31_55.679.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @shubham1206agraThe text was updated successfully, but these errors were encountered: