-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
CSV Export of class data #1494
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
Merged
Merged
CSV Export of class data #1494
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
fd69239
Added CSV export function to menu
Vortec4800 86a76d5
Lint fixes
Vortec4800 37f829c
Removed debug log
Vortec4800 0813117
Taking columns preferences into account during CSV export (#1)
404-html f31fa5f
Merge branch 'master' into csv-export
Vortec4800 eb708b4
Apply suggestions from code review
Vortec4800 3bdb5d3
Added 10k limit notice to export dialog
Vortec4800 503808c
Remove child after click
Vortec4800 2ea056f
Update src/dashboard/Data/Browser/Browser.react.js
Vortec4800 27ad851
Merge branch 'master' into csv-export
Vortec4800 ae153ac
Fixed delimiter and quotes in column data
Vortec4800 c75a06a
Added README and Changelog entries
Vortec4800 e3fe2ad
rewording
mtrezza c1c9acb
rewording
mtrezza af673bb
Moved menu item to root option
Vortec4800 523b4b9
export empty fields in CSV; stringify object values
mtrezza 8454c56
rewording
mtrezza e5632f9
rewording
mtrezza 0ce5f15
removed "to CSV" as it's the only export option
mtrezza 6990f9e
removed "to CSV"
mtrezza a0bc140
fixed export array
mtrezza c9d3d81
Update CHANGELOG.md
mtrezza eb5db9b
fix export empty fields
mtrezza File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
src/dashboard/Data/Browser/ExportSelectedRowsDialog.react.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* Copyright (c) 2016-present, Parse, LLC | ||
* All rights reserved. | ||
* | ||
* This source code is licensed under the license found in the LICENSE file in | ||
* the root directory of this source tree. | ||
*/ | ||
import Modal from 'components/Modal/Modal.react'; | ||
import React from 'react'; | ||
|
||
export default class ExportSelectedRowsDialog extends React.Component { | ||
constructor() { | ||
super(); | ||
|
||
this.state = { | ||
confirmation: '' | ||
}; | ||
} | ||
|
||
valid() { | ||
return true; | ||
} | ||
|
||
render() { | ||
let selectionLength = Object.keys(this.props.selection).length; | ||
return ( | ||
<Modal | ||
type={Modal.Types.INFO} | ||
icon='warn-outline' | ||
title={this.props.selection['*'] ? 'Export all rows?' : (selectionLength === 1 ? `Export 1 selected row?` : `Export ${selectionLength} selected rows?`)} | ||
subtitle={this.props.selection['*'] ? 'Note: Exporting is limited to the first 10,000 rows.' : ''} | ||
disabled={!this.valid()} | ||
confirmText={'Yes export'} | ||
cancelText={'Never mind, don\u2019t.'} | ||
onCancel={this.props.onCancel} | ||
onConfirm={this.props.onConfirm}> | ||
{} | ||
</Modal> | ||
Vortec4800 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
); | ||
} | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.