-
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
Prevent the user from requiring tags when there is no active tag #42004
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 |
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
@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 🚀
|
@@ -32,7 +33,7 @@ function WorkspaceTagsSettingsPage({route, policyTags}: WorkspaceTagsSettingsPag | |||
const styles = useThemeStyles(); | |||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 spend
toggle buttonMembers must tag all spend
toggle button is off and locked.Members must tag all spend
toggle buttonMembers must tag all spend
toggle button is off and locked.Offline tests
N/A
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
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop