Skip to content
This repository has been archived by the owner on Sep 10, 2021. It is now read-only.

feat(Export): export different versions #477

Open
ramfox opened this issue Apr 9, 2019 · 0 comments
Open

feat(Export): export different versions #477

ramfox opened this issue Apr 9, 2019 · 0 comments

Comments

@ramfox
Copy link
Member

ramfox commented Apr 9, 2019

This one's a two parter:

  1. fix fix(api/Export): error returns in all api calls to export qri#735
  2. Do some work on the export button on the frontend:
    Overall behavior we are going for:
  • click the export button on the dataset page
  • a modal slides in from the side with an input to select the format, an export button, and a cancel button
  • clicking export downloads the exported dataset and closes the modal
  • if there is an error, it displays in the modal
  • clicking cancel closes the modal.

changes for modal content:

  • Rename and move dataset/Export to form/ExportForm:
    - ExportForm should take the exportPath, and onClick as params.
    - It should have a select input with the options json, yaml, & xlsx (and native??).
    - Form should also include an "export" button, that uses the exportPath + ?format= + selectedFormat as the button download param, and a dataset specific name with the correct file extension as the downloadName (take a look at what the dataset/Export component does currently)
    - The form should also include a "cancel" button
    - The "export" button should be disabled until a format is chosen.

changes for wiring up the modal:

  • using the pattern found in the Profile component, clicking on the DatasetButtonGroup Export button should open up a modal containing the ExportForm.
    - exportPath should be taken from the current exportPath that is being passed to DatasetButtonGroup.
    -onClick should be the action to close the modal.
@ramfox ramfox changed the title feat(Export): feat(Export): export different versions Apr 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant