Add import and export CSV flow for Tags#48877
Conversation
…-fork into Guccio/import-tags-csv
…-fork into Guccio/import-tags-csv
…-fork into Guccio/import-tags-csv
|
@Expensify/design PR ready to check out |
|
@rushatgabhane 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] |
…-fork into Guccio/import-tags-csv
|
@rushatgabhane in case of conflicts/change requests please ping me, I'm going to take over from Wiktor as he will be OOO in the next days 😄 |
|
@rushatgabhane When do you think you'll be able to finish the review on this one? |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-09-15.at.22.02.57.movAndroid: mWeb ChromeiOS: NativeScreen.Recording.2024-09-15.at.22.00.24.mov |
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #47870 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
|
@MonilBhavsar Merged the newest main for you 😄 |
| {text: translate('common.enabled'), value: CONST.CSV_IMPORT_COLUMNS.ENABLED, isRequired: true}, | ||
| ); | ||
|
|
||
| if (isControl) { |
There was a problem hiding this comment.
NAB, let's use isControlPolicy(policy) directly
There was a problem hiding this comment.
Or we can rename constant to isControlPolicy
|
Looks good overall! |
|
@MonilBhavsar Moved the condition, so it's used directly now 🚀 |
MonilBhavsar
left a comment
There was a problem hiding this comment.
Thanks! Looks good 👍
|
✋ 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/MonilBhavsar in version: 9.0.37-0 🚀
|
|
🚀 Deployed to production by https://github.com/grgia in version: 9.0.38-4 🚀
|
| const threeDotsMenuItems = useMemo(() => { | ||
| const menuItems: PopoverMenuItem[] = [ | ||
| { | ||
| icon: Expensicons.Table, |
There was a problem hiding this comment.
You missed to disable the import spreadsheet option when we have enabled accounting integration. This caused #54204



Details
This PR adds the import and export logic to the
Tagssections of the workspace. Right now it supports only workspaces with 1 tag list, no more. For workspaces with more than 1 tag list, the whole three-dot menu is invisible. This PR takes into account all raised and fixed bugs forCategorysection's import/export functions.Fyi: This PR is created in parallel with PR for
Membersimport/export which operates on similar files - depending on which gets merged earlier there will be few minor conflicts to take care of.Fixed Issues
$ #47870
PROPOSAL:
Tests
Import:
Export:
Offline tests
N/A
QA Steps
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.mov
android.mov
Android: mWeb Chrome
mWeb-android.mov
mWeb-android.mov
iOS: Native
ios.mov
ios.mov
iOS: mWeb Safari
mWeb-ios.mov
mWeb-ios.mov
MacOS: Chrome / Safari
web.mov
web.mov
MacOS: Desktop
desktop.mov
desktop.mov