Skip to content

DM-8833: Creates a basic download dialog based on selected rows #264

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 1 commit into from
Jan 6, 2017

Conversation

loitly
Copy link
Contributor

@loitly loitly commented Jan 5, 2017

https://jira.lsstcorp.org/browse/DM-8833

  • create download dialog with extendable options
  • create download button that connects to single table or active table of a named group
  • update LcResults.jsx to use this new download dialog as an example

To test:
http://localhost:8080/firefly/lc.html
upper right corner 'Prepare Download' button is tied to active table.
select one or more rows, then click 'Prepare Download' to show the dialog.

 - create download dialog with extendable options
 - create download button that connects to single table or active table of a named group
 - update LcResults.jsx to use this new download dialog as an example
Copy link
Contributor

@tgoldina tgoldina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as expected. I noticed that the label "Title for this download" overlaps with the input field, otherwise looks great.

<ValidationField
initialState= {{
value: 'A sample download',
label : 'Title for this download:'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to make the default title more descriptive, for example, by including the type (cutout or image) and the number of files to be downloaded?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is throw-away code. It serves as an example as well as for testing.

};

DownloadOptionPanel.defaultProps= {
groupKey: 'DownloadDialog',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just noticed all these trailing commas. Looks like Trey finally moved you on his side. :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes.. my lazy side wins.

</div>
<div>
{help_id && <HelpIcon helpId={help_id} />}
</div>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice addition.

@loitly loitly merged commit 8ab2c36 into dev Jan 6, 2017
@loitly loitly deleted the DM-8833_download_dialog branch January 6, 2017 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants