Add a switch to toggle on/off "require tags" on WorkspaceViewTagsPage#42328
Add a switch to toggle on/off "require tags" on WorkspaceViewTagsPage#42328hayata-suenaga wants to merge 22 commits intomainfrom
WorkspaceViewTagsPage#42328Conversation
WorkspaceViewTagsPage
| <View style={[styles.pv4, styles.ph5]}> | ||
| <View style={[styles.flexRow, styles.mb5, styles.mr2, styles.alignItemsCenter, styles.justifyContentBetween]}> | ||
| <Text style={[styles.textNormal]}>{translate('workspace.tags.requiresTag')}</Text> | ||
| <Switch | ||
| isOn={Boolean(policyTagList?.required)} | ||
| accessibilityLabel={translate('workspace.tags.requiresTag')} | ||
| onToggle={(on) => Policy.setWorkspaceTagListRequired(policyID, route.params.orderWeight ?? 0, on)} | ||
| /> | ||
| </View> | ||
| </View> |
There was a problem hiding this comment.
Use ToggleSettingOptionRow and pass errors and pending action
| * When the tags are imported as multi level tags, the index of the top | ||
| * most tag list item | ||
| */ | ||
| tagListIndex?: number; |
WorkspaceViewTagsPageWorkspaceViewTagsPage
WorkspaceViewTagsPageWorkspaceViewTagsPage
WorkspaceViewTagsPageWorkspaceViewTagsPage
| /** | ||
| * When the tags are imported as multi level tags, the index of the top | ||
| * most tag list item | ||
| */ |
|
thanks for the quick review. I'm working on this right now. I'll let you know once the PR is ready for review 😄 |
|
PR not ready yet for review 🙇 |
|
I'm not sure why TypeScript checks are failing here. The failed code is not a part changed by this PR. I merged the latest main but it's still failing. 🤔 @s77rt do you have any idea?
|
|
@hayata-suenaga I don't see the commit where you merged main or qbo-freeze-branch, can you double check |
…gs-per-parent-level
WorkspaceViewTagsPageWorkspaceViewTagsPage
|
@hayata-suenaga You merged both |
yep that is what I was working on last night but was having an issue with reverting the merge. I'll try this again now. |
bfc9344 to
35992e8
Compare
|
keep working on this branch/PR instead -> #42952 |
|
closing this PR |


Details
Adds the new Switch component to enable/disable "Require tags" on the parent tag level when there are multi-level tags.
Fixed Issues
$ #41374
PROPOSAL: N/A
Tests / QA Steps
Members must tag all expensesOffline tests
Do the same test as the above. You should do Steps 1 and 2 while online. and the rest offline.
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./** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop