-
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
[Fix]: App returns to tag page after tapping back button on workspace editor #51568
Conversation
c.c. @paultsimura : Please refer issue #50695, this issue exists in our current codebase, refer to this comment for RCA. I think the current changes are fine to solve our problem. we can put the route as undefined and we when we dismiss the RHP we would be on the tags view page. do you have any questions about the solution ? |
@twilight2294 there were a couple of other places in our original PR where before we used just |
@paultsimura i checked this is the only place left out, for all other places we send undefined, this was probably missed because this bug occurs for multi-level tags and we cannot add them in ND |
What about these? App/src/pages/workspace/categories/EditCategoryPage.tsx Lines 52 to 56 in 13982f1
App/src/pages/workspace/tags/EditTagPage.tsx Lines 64 to 68 in 13982f1
App/src/pages/workspace/tags/EditTagPage.tsx Lines 87 to 93 in 13982f1
App/src/pages/workspace/tags/TagApproverPage.tsx Lines 29 to 31 in 13982f1
App/src/pages/workspace/tags/WorkspaceEditTagsPage.tsx Lines 79 to 81 in 13982f1
|
Those are level 2 pages (Meaning that they don't immediately navigate to the tags/category main page, if we remove that route then when the user would refresh and then press back button then RHP would get dismissed) Also the bug is for only level 1 pages (Pages which on back press go to the main category/tags page) |
This sounds reasonable, let me check further 🤔 |
I'll save you a bit more time, look below all the level 1 pages have undefined here, we just missed it on that particular page because we are not able to add multi-level tags and test on newdot: App/src/pages/workspace/categories/WorkspaceCategoriesSettingsPage.tsx Lines 105 to 107 in 13982f1
App/src/pages/workspace/tags/WorkspaceTagsSettingsPage.tsx Lines 135 to 137 in 13982f1
|
Got it. Please proceed with the checklist & recordings. |
Reviewer Checklist
Screenshots/VideosAndroid: Native2024-10-30.-.20.23.-.android.mp4Android: mWeb Chrome2024-10-30.-.20.23.-.chrome.mp4iOS: Native2024-10-30.-.20.23.-.Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-10-30.at.20.21.57.mp4iOS: mWeb Safari2024-10-30.-.20.23.-.Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-10-30.at.18.48.54.mp4MacOS: Chrome / Safari2024-10-30.-.20.23.-.Screen.Recording.2024-10-30.at.18.47.19.mp4MacOS: Desktop2024-10-30.-.20.23.-.Screen.Recording.2024-10-30.at.20.11.28.mp4 |
@paultsimura where do i get the multi-level tags file? can you share it with me please, its blocking my testing |
@twilight2294 please also update the PR description with the tests included |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ✔️
Updated @paultsimura |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/Julesssss in version: 9.0.57-0 🚀
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.0.57-10 🚀
|
Details
Fixed Issues
$ #51414
PROPOSAL: N/A
Tests
Workspace has imported dependent tags (attached below).
Offline tests
Workspace has imported dependent tags (attached below).
QA Steps
Workspace has imported dependent tags (attached below).
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
Screen.Recording.2024-10-31.at.5.46.47.PM.mov
iOS: mWeb Safari
Screen.Recording.2024-10-31.at.5.48.17.PM.mov
MacOS: Chrome / Safari
Screen.Recording.2024-10-31.at.5.22.22.PM.mov
MacOS: Desktop
Screen.Recording.2024-10-31.at.5.27.14.PM.mov