chef / automate

Chef Automate provides a full suite of enterprise capabilities for maintaining continuous visibility into application, infrastructure, and security automation.
https://automate.chef.io/
Apache License 2.0
227 stars 113 forks source link

[Desktop UI] Download filtered list of desktop data as JSON or CSV #3503

Closed apriofrost closed 4 years ago

apriofrost commented 4 years ago

User Story

Allow users to download the filtered desktop data in the current view in a JSON or CSV format.

Solution

Reuse the same API for downloading node data in Infrastructure, follow the new UI pattern.

UI Mockup

https://chef.invisionapp.com/share/7ZWRC1GNQ2P#/412590751_-Slice_1_Release-Desktop_Dashboard-Daily_Unknown-Lg

Use the "inspect" feature at the bottom right of the mockup screen to see the UI implementation details

Click on the "Download" button image

Acceptance Criteria

  1. Reuse the same API for downloading node data in Infrastructure
  2. Use the Carbon design system dropdown/default without label, restyle it to match with the mockup
  3. Reuse the file generating UI modal (pending state) in Infrastructure.
vjeffrey commented 4 years ago

the api for this is the same one used here: Screen Shot 2020-04-27 at 13.41.46.png

api looks something like:

curl https://a2-dev.test/api/v0/cfgmgmt/nodes/export -d'{"output_type":"csv","filter":[],"sorting":{"field":"name","order":0}}'