zui icon indicating copy to clipboard operation
zui copied to clipboard

Can't import a csv file into the app

Open jameskerr opened this issue 2 years ago • 2 comments

If you try to drag a csv into the app you get this error:

Screen Shot 2021-11-01 at 10 13 09 AM

Since the backend supports it, we should enable a csv to be dragged into the app.

A possible workflow is:

  1. Import the file
  2. If there is an auto detect error, prompt the user for the type of file

jameskerr avatar Nov 01 '21 17:11 jameskerr

FYI, I think this is working now. The attached video shows me successfully importing a CSV file with Brim v0.28.0.

https://user-images.githubusercontent.com/5934157/144133400-788929f1-54a8-458b-9cca-81b85c07d269.mp4

philrz avatar Nov 30 '21 21:11 philrz

I'd love a dialog that asks the user which format their data is in to pass to zed load. I've got a csv that it things is zson so it fails with a strange error.

It would also be nice to give a summary of what the auto detect detected.

jameskerr avatar May 09 '22 17:05 jameskerr

Since the original spirit of this issue has morphed somewhat, I've opened #2498 to be clearer about where things stand currently. Closing this one since for the general case of importing true CSV into the app, it does indeed work now.

philrz avatar Aug 23 '22 01:08 philrz