-
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
[WAITING FOR PAYMENT MAY 29] [$250] Categories & Tags - App closes RHP instead of returning to previous RHP after saving name #41339
Comments
Triggered auto assignment to @abekkala ( |
@abekkala 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. |
We think this bug might be related to #wave-collect - Release 1 |
ProposalPlease re-state the problem that we are trying to solve in this issue.App closes RHP instead of returning to previous RHP after saving name What is the root cause of that problem?We dismiss the RHP explicitly when editing Category in
This is called after submitting the form. What changes do you think we should make in order to solve the problem?We should call
Alternatively:We can remove Navigation.goBack(ROUTES.WORKSPACE_CATEGORY_SETTINGS.getRoute(policyID, categoryName)); |
ProposalPlease re-state the problem that we are trying to solve in this issue.Categories & Tags - App closes RHP instead of returning to previous RHP after saving name What is the root cause of that problem?We are dismissing modal instead of goBack
What changes do you think we should make in order to solve the problem?Remove Navigation.dismissModal()
App/src/pages/workspace/categories/EditCategoryPage.tsx Lines 53 to 55 in 05793d1
In the code block above, use Navigation.goBack with true as the second argument. If we just use goBack(), the URL will change due to the name change, causing the user to be redirected to a 'not found' page. We can do something like this
Optional
We should do the same thing for tags App/src/pages/workspace/tags/EditTagPage.tsx Lines 56 to 67 in 35772b2
Note We should use new category name or new tag name instead of categoryName/currentTagName What alternative solutions did you explore?We can use Navigation.navigate here. |
Job added to Upwork: https://www.upwork.com/jobs/~0136827bdfe625bc6c |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @akinwale ( |
@akinwale we've already received some proposals! 🎉 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Categories & Tags - App closes RHP instead of returning to previous RHP after saving name What is the root cause of that problem?We dismiss the modal here so after editing category/tag name, App closes RHP
What changes do you think we should make in order to solve the problem?
App/src/libs/actions/Policy.ts Line 3232 in 0ae357e
and we will use this to get the new category in
OPTIONAL: In
Do the same way for Tag page
What alternative solutions did you explore? (Optional)For point 2: we can change the struct of
|
@Nodebrute's proposal makes sense here. 🎀👀🎀 C+ reviewed. |
Triggered auto assignment to @blimpich, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@akinwale The selected proposal will cause the regression as this video. When we edit tag and back to tag setting page and click on the back button, not found page will appear instead of go back to tags page. Can you please check my proposal #41339 (comment)? It can cover this case as well. Screen.Recording.2024-05-05.at.19.57.23.mov |
I tested the proposal with the second parameter for Considering this, @nkdengineer's proposal has the correct approach to solving the issue. |
👍 Sounds good. Feel free to raise a PR @nkdengineer. For some reason the automation for commenting on this issue with a confirmation of the contract offer didn't work, but we can proceed business as usual and make sure that everything gets paid out as normal. |
The PR is here. |
Deployed to Production May 22 |
PAYMENT SUMMARY:
|
@akinwale payment sent and contract ended - thank you! 🎉 |
@abekkala I accepted the offer, thanks! |
@nkdengineer payment sent and contract ended - thank you! 🎉 |
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.68-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
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:
Expected Result:
App will return to previous RHP (with toggle, three-dot menu and name) after saving the category name, which is the behavior with taxes and distance rates.
Actual Result:
RHP closes after saving category and tag name.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop
Screenshots/Videos
Add any screenshot/video evidence
Bug6466672_1714486645846.20240430_221313.mp4
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: