-
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
#47927: Export Categories CSV #48687
#47927: Export Categories CSV #48687
Conversation
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, small adjustments to be done ✅
@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] |
Update: today I found a bug in exporting on Android; I've found a fix for it, but have to investigate further whether it will cause some problems. Have a great weekend! |
Downloading on android works well, I changed the downloading function for android: it works and tests well, looks like it solves this and possible problems in future. Ready for review @rushatgabhane 👌 Screen.Recording.2024-09-09.at.10.38.35.mov |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-09-09.at.23.40.59.movAndroid: mWeb ChromeiOS: NativeScreen.Recording.2024-09-09.at.22.42.34.moviOS: mWeb SafariScreen.Recording.2024-09-09.at.22.00.47.movMacOS: DesktopScreen.Recording.2024-09-09.at.21.50.29.mov |
…-fork into Guccio163/47927-ExportCSV
…-fork into Guccio163/47927-ExportCSV
We did not find an internal engineer to review this PR, trying to assign a random engineer to #47927 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
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.
One NAB, but that can be addressed in a follow up
formData.append(key, String(value)); | ||
}); | ||
|
||
fileDownload(ApiUtils.getCommandURL({command: WRITE_COMMANDS.EXPORT_CATEGORIES_CSV}), 'Categories.csv', '', false, formData, CONST.NETWORK.METHOD.POST); |
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.
Can you make the 'Categories.csv'
a CONST?
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.
Sure, I'll try to remember to add it in Members
or Tags
import/export 👍
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Details
This PR focuses on adding export function to Workspace
Categories
section. Similar exports forTags
andMembers
will probably be incorporated into their import PRs after this PR gets approved.User should have an option to click
Download CSV
button from three-dot option in the right-top corner. After that a file with categories in .csv format should be downloaded locally.Fixed Issues
$ #47927
PROPOSAL:
Tests
[Non-android]
Categories
section.Import Spreadsheet
andDownload CSV
options should appear)Download CSV
.[Android]
Categories
section.Import Spreadsheet
andDownload CSV
options should appear)Download CSV
.Offline tests
N/A
QA Steps
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.mov
Android: mWeb Chrome
mWeb-android.mov
iOS: Native
ios.mov
iOS: mWeb Safari
mWeb-ios.mov
MacOS: Chrome / Safari
Screen.Recording.2024-09-06.at.13.04.11.mov
MacOS: Desktop
Screen.Recording.2024-09-06.at.13.01.51.mov