Prevent the user from requiring tags when there is no active tag#42004
Conversation
|
To disable all tags, this App PR might be needed |
|
@marcochavezf 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] |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-05-24.at.03.49.53.moviOS: mWeb Safarihttps://github.com/Expensify/App/assets/29673073/d2d5216f-cb71-4fba-ad88-24417a7e28caMacOS: Chrome / SafariScreen.Recording.2024-05-24.at.03.42.50.movScreen.Recording.2024-05-24.at.03.48.25.mov |
|
Hold can be removed. @hayata-suenaga please remove the |
|
@rushatgabhane, I forgot to push this commit 😓 Now this PR is ready for review 😄 |
…s-when-there-is-no-active-tags
…s-when-there-is-no-active-tags
|
We can actually test for cases other than multi-tag. |
|
@rushatgabhane, while we're waiting for the merge freeze to be lifted, could you review and complete the checklist, please? |
|
sure thing! |
|
I changed the base branch to use the branch for testing all QBO related changes while we have merge freeze against the main branch. |
|
@hayata-suenaga it doesn't test well
Screen.Recording.2024-05-21.at.11.43.43.mov |
|
@rushatgabhane, I tested this locally but I couldn't reproduce the issue you're facing Screen.Recording.2024-05-22.at.10.41.12.AM.movAlso, I have a question about the screen recordings you provided. Where did you get the tags being shown? 🤔 If you're importing Classes and Customers/Projects from QBO, you should be seeing the multi-level tags as captured in the screenshot -> #42004 (comment) |
|
@rushatgabhane, please retest this when you have time 🙇 This has an external deadline |
|
@Beamanator 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] |
|
🎯 @rushatgabhane, thanks for reviewing and testing this PR! 🎉 An E/App issue has been created to issue payment here: #42564. |
|
Shall we remove the hold from this PR as we'll merge it into the freeze branch? |
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.4.79-11 🚀
|
| const {translate} = useLocalize(); | ||
| const [policyTagLists, isMultiLevelTags] = useMemo(() => [PolicyUtils.getTagLists(policyTags), PolicyUtils.isMultiLevelTags(policyTags)], [policyTags]); | ||
|
|
||
| const hasEnabledOptions = OptionsListUtils.hasEnabledOptions(Object.values(policyTags ?? {}).flatMap(({tags}) => Object.values(tags))); |
There was a problem hiding this comment.
these changes are partly the cause of this issue
But root cause related with this PR and these changes
Since in this PR we pass errors separately from tag objects, we can't retrieve tags from the error object




…gs in the workspace
Details
$ #41309
PROPOSAL: #41309 (comment)
Tests / QA Steps
Members must tag all spendtoggle buttonMembers must tag all spendtoggle button is off and locked.Members must tag all spendtoggle buttonMembers must tag all spendtoggle button is off and locked.Offline tests
N/A
PR 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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop