Dragging files over Qri to add them seems like a great way to get data into Qri quickly. I see a few routes to doing this. For now I think we should only support dropping files when on an edit screen, and I can see it going one of two ways:
Use the current editor panel (body/dataset/viz, etc) to determine what the intent of the drag-in is. For example, if someone drags a file called dataset.json onto the meta
Whenever a user drops a file over the editor, present a modal asking them what to do with is, possibly taking a guess at there they want it based on the file name and contents.
Should/can we use the /unpack endpoint to handle some of this?
Dragging files over Qri to add them seems like a great way to get data into Qri quickly. I see a few routes to doing this. For now I think we should only support dropping files when on an edit screen, and I can see it going one of two ways:
Should/can we use the
/unpack
endpoint to handle some of this?