qcif / data-curator

Data Curator - share usable open data
MIT License
264 stars 38 forks source link

Open data package .zip from local drive opens additional tab #1020

Open Stephen-Gates opened 4 years ago

Stephen-Gates commented 4 years ago
Screenshot 2020-05-18 18 31 46

Current Behaviour (for problems)

When I open a data package zip file from my local drive, everything appears to work fine however an extra empty tab that was not in the package is displayed

Your Environment

ghost commented 4 years ago

Hi @Stephen-Gates You might recall at the time we did this we made the decision not to overwrite existing tabs in case the user had data already there. The open package opens a new tab for each resource rather than re-using any existing opened tabs. The other behaviour, probably as/more important, there's no action like this that resets everything to 0, including the package, table and column properties. It might be that these properties are overwritten anyway as the open package/resources fills out properties, but there is no deliberate reset behaviour before this 'open' begins. I've noticed that this might also be handy even if the user decides not to import or export anything, but simply wants to start again (without having to close and start the app again). I guess if this was to be put in as an enhancement we could have some behaviour to toggle this on/off. Something like, "On opening a data package":