Add import and export CSV flow for Members#48876
Conversation
…/import-members-csv
…-fork into filip-solecki/import-members-csv
blazejkustra
left a comment
There was a problem hiding this comment.
Overall looks good! 👍
Co-authored-by: Błażej Kustra <46095609+blazejkustra@users.noreply.github.com>
…-fork into Guccio163/import-members-csv
…-fork into Guccio163/import-members-csv
…-fork into Guccio163/import-members-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] |
|
@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.09.34.movScreen.Recording.2024-09-15.at.22.12.20.movAndroid: mWeb ChromeiOS: NativeScreen.Recording.2024-09-15.at.22.18.13.moviOS: mWeb SafariScreen.Recording.2024-09-15.at.22.16.40.mov |
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #47869 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
|
@madmax330 Merged the newest main for you 😄 |
…-fork into Guccio163/import-members-csv
…-fork into Guccio163/import-members-csv
…-fork into Guccio163/import-members-csv
|
@madmax330 just LYK I think it's ready for merge |
…-fork into Guccio163/import-members-csv
…-fork into Guccio163/import-members-csv
…-fork into Guccio163/import-members-csv
|
@madmax330 bumping, ready for merge |
|
@madmax330 looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
|
All tests were passing |
|
✋ 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/madmax330 in version: 9.0.40-0 🚀
|
| } | ||
| return ( | ||
| <View style={styles.w100}> | ||
| <View style={[styles.flexRow, styles.gap2, shouldUseNarrowLayout && styles.mb3]}> |
There was a problem hiding this comment.
This seems to have caused this: #49749, why did we change the style here? @Guccio163
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 9.0.40-6 🚀
|
| const policyID = route.params.policyID; | ||
|
|
||
| return ( | ||
| <ImportSpreedsheet |
There was a problem hiding this comment.
We need to wrap it with AccessOrNotFoundWrapper to avoid issue #51129
| key: ONYXKEYS.IMPORTED_SPREADSHEET, | ||
| value: { | ||
| shouldFinalModalBeOpened: true, | ||
| importFinalModal: {title: translateLocal('spreadsheet.importSuccessfullTitle'), prompt: translateLocal('spreadsheet.importMembersSuccessfullDescription', membersLength)}, |
There was a problem hiding this comment.
Not sure if it is considered a bug, but we improved the messages to show exactly how many members were added and how many updated: #56941




Details
This PR adds the import and export logic to the
Memberssections of the workspace. 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
Tagsimport/export which operates on similar files - depending on which gets merged earlier there will be few minor conflicts to take care of.Fixed Issues
$ #47869
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