Fix: Background report changes to Tags page after clicking Custom tag name in RHP#50332
Fix: Background report changes to Tags page after clicking Custom tag name in RHP#50332twilight2294 wants to merge 35 commits into
Conversation
|
@paultsimura 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] |
| route: 'settings/:policyID/tags/settings', | ||
| getRoute: (policyID: string, backTo = '') => getUrlWithBackToParam(`settings/${policyID}/tags/settings` as const, backTo), | ||
| }, | ||
| SETTINGS_EDIT_TAGS: { |
There was a problem hiding this comment.
Let's keep the naming consistent with other sections, like Categories:
| SETTINGS_EDIT_TAGS: { | |
| SETTINGS_TAGS_EDIT: { |
| SETTINGS_TAGS: { | ||
| SETTINGS_TAGS_ROOT: 'Settings_Tags', | ||
| SETTINGS_TAGS_SETTINGS: 'Settings_Tags_Settings', | ||
| SETTINGS_EDIT_TAGS: 'Settings_Tags_Edit', |
There was a problem hiding this comment.
| SETTINGS_EDIT_TAGS: 'Settings_Tags_Edit', | |
| SETTINGS_TAGS_EDIT: 'Settings_Tags_Edit', |
| const [policyTagLists, isMultiLevelTags] = useMemo(() => [PolicyUtils.getTagLists(policyTags), PolicyUtils.isMultiLevelTags(policyTags)], [policyTags]); | ||
| const canSelectMultiple = !isMultiLevelTags && (shouldUseNarrowLayout ? selectionMode?.isEnabled : true); | ||
|
|
||
| const backTo = route.params.backTo; |
There was a problem hiding this comment.
Let's move it up to keep the route params close, above this line:
const policyID = route.params.policyID ?? '-1';
| const hasEnabledOptions = OptionsListUtils.hasEnabledOptions(Object.values(policyTags ?? {}).flatMap(({tags}) => Object.values(tags))); | ||
| const {canUseWorkspaceRules} = usePermissions(); | ||
|
|
||
| const backTo = route.params.backTo; |
| policyTags: OnyxEntry<OnyxTypes.PolicyTagLists>; | ||
| }; | ||
| type WorkspaceTagsSettingsPageProps = WorkspaceTagsSettingsPageOnyxProps & StackScreenProps<SettingsNavigatorParamList, typeof SCREENS.WORKSPACE.TAGS_SETTINGS>; | ||
| type WorkspaceTagsSettingsPageProps = StackScreenProps<SettingsNavigatorParamList, typeof SCREENS.WORKSPACE.TAGS_SETTINGS>; |
There was a problem hiding this comment.
Good job on handling this 👍
|
Also, please add the remaining pages similar to the Categories. 2024-10-08.-.12.28.-.Screen.Recording.2024-10-08.at.12.27.09.mp4 |
|
@twilight294 could you please:
|
Signed-off-by: twilight294 <twitteruser902@gmail.com>
…-tag Signed-off-by: twilight294 <twitteruser902@gmail.com>
|
I messed Up with the commits, I will bring up a new PR fixing it, will update here |
|
Please refer this PR: #50416 @paultsimura sorry for the extra work, I have fixed the requested changes there |
Details
Fixed Issues
$ #49883
PROPOSAL: #49883 (comment)
Tests
Verify that
The report in the background will remain after clicking Custom tag nameOffline tests
N/A can't test offline
QA Steps
Verify that
The report in the background will remain after clicking Custom tag namePR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso 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
Screen.Recording.2024-10-07.at.8.45.54.PM.mov
Android: mWeb Chrome
Screen.Recording.2024-10-07.at.8.48.45.PM.mov
iOS: Native
Screen.Recording.2024-10-07.at.8.44.21.PM.mov
iOS: mWeb Safari
Screen.Recording.2024-10-07.at.8.43.29.PM.mov
MacOS: Chrome / Safari
Screen.Recording.2024-10-07.at.7.58.45.PM.mov
MacOS: Desktop
Screen.Recording.2024-10-07.at.8.03.38.PM.mov