Fix - Tags - Tags RHP opens after adding a tag on Tags page - #63444
Conversation
|
@DylanDylann Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
@FitseTLT could you resolve conflict? |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-06-06.at.15.22.09.movAndroid: mWeb ChromeScreen.Recording.2025-06-06.at.15.21.21.moviOS: HybridAppScreen.Recording.2025-06-06.at.15.22.47.moviOS: mWeb SafariScreen.Recording.2025-06-06.at.15.20.51.movMacOS: Chrome / SafariScreen.Recording.2025-06-06.at.15.12.50.movMacOS: DesktopScreen.Recording.2025-06-06.at.15.14.35.mov |
|
Resolved |
|
@DylanDylann Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
@marcaaron Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
Sorry @DylanDylann and @marcaaron, accidentally re-requested review |
There was a problem hiding this comment.
Pull Request Overview
This PR fixes the issue where the Tags RHP opens unexpectedly after adding a tag by refining the quick settings flow detection logic and ensuring the proper handling of potentially missing Onyx data. The changes include updating quick settings flow checks from a boolean “backTo” flag to explicit route name comparisons, introducing union types for navigation props, and adding the {canBeMissing: true} option to various useOnyx calls.
Reviewed Changes
Copilot reviewed 22 out of 22 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/pages/workspace/tags/WorkspaceTagsSettingsPage.tsx | Updated quick settings flow detection using route.name and adjusted SCREENS import. |
| src/pages/workspace/tags/WorkspaceTagsPage.tsx | Modified quick settings flow condition with explicit route name checks. |
| src/pages/workspace/tags/WorkspaceEditTagsPage.tsx | Introduced union types for navigation props and added {canBeMissing: true} to useOnyx call. |
| src/pages/workspace/tags/WorkspaceCreateTagPage.tsx | Updated union type and useOnyx hook with {canBeMissing: true}. |
| src/pages/workspace/tags/TagSettingsPage.tsx | Updated quick settings flow logic to use route.name. |
| src/pages/workspace/tags/TagGLCodePage.tsx | Added {canBeMissing: true} to useOnyx and updated quick settings flow condition. |
| src/pages/workspace/tags/TagApproverPage.tsx | Replaced boolean check with explicit route name comparison. |
| src/pages/workspace/tags/ImportedTagsPage.tsx | Updated quick settings flow detection using route.name. |
| src/pages/workspace/tags/ImportTagsPage.tsx | Adjusted union types and quick settings flow condition for navigation consistency. |
| src/pages/workspace/tags/EditTagPage.tsx | Updated useOnyx call and quick settings flow detection using route.name. |
| src/pages/workspace/categories/WorkspaceCategoriesSettingsPage.tsx | Added {canBeMissing: true} to useOnyx calls and refined quick settings flow check. |
| src/pages/workspace/categories/WorkspaceCategoriesPage.tsx | Updated quick settings flow detection with route.name comparison. |
| src/pages/workspace/categories/ImportedCategoriesPage.tsx | Updated quick settings flow check to use route.name. |
| src/pages/workspace/categories/ImportCategoriesPage.tsx | Updated quick settings condition and improved utility function usage for accounting connections. |
| src/pages/workspace/categories/EditCategoryPage.tsx | Updated useOnyx call with {canBeMissing: true} and refined quick settings flow detection. |
| src/pages/workspace/categories/CreateCategoryPage.tsx | Adjusted useOnyx call and union type to incorporate quick settings flow updates. |
| src/pages/workspace/categories/CategorySettingsPage.tsx | Updated quick settings flow logic with route.name. |
| src/pages/workspace/categories/CategoryPayrollCodePage.tsx | Added {canBeMissing: true} to useOnyx call and updated quick settings flow detection. |
| src/pages/workspace/categories/CategoryGLCodePage.tsx | Updated useOnyx call with {canBeMissing: true} and refined quick settings flow condition. |
| src/libs/Navigation/types.ts | Updated screen route types to support new union types for settings categories and tags. |
Comments suppressed due to low confidence (1)
src/pages/workspace/tags/WorkspaceEditTagsPage.tsx:30
- Adding the {canBeMissing: true} option to the useOnyx call prevents potential crashes when the Onyx data is missing. Please verify that downstream logic properly handles cases where 'policyTags' might be undefined.
const [policyTags] = useOnyx(`${ONYXKEYS.COLLECTION.POLICY_TAGS}${route?.params?.policyID}`, {canBeMissing: true});
|
✋ 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/srikarparsi in version: 9.1.63-0 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.1.63-6 🚀
|
Details
Fixed Issues
$ #62384
PROPOSAL: #62384 (comment)
Tests
Offline tests
Same as above
QA Steps
Same as above
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel so the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
2025-06-04.17-24-25.mp4
Android: mWeb Chrome
2025-06-04.16-25-21.mp4
iOS: Native
2025-06-04.16-20-31.mp4
iOS: mWeb Safari
2025-06-04.16-17-10.mp4
MacOS: Chrome / Safari
2025-06-04.16-11-20.mp4
MacOS: Desktop
2025-06-04.16-11-49.mp4