Closed JohnAkerman closed 6 years ago
PR #11 has fixed the export feature. Many thanks @SolidusMaximus
Progress and Todos
Most probably going to use validate.js to validate the JSON given from import https://validatejs.org/
I have now added drag and drop support for JSON files so the file can be dragged over and imported. This is in changeset https://github.com/JohnAkerman/TabStats/commit/f76a83e635acd1bd014441abbd1d2b92ba5d84b4
So I feel this task is now complete, the last item on this could be considered an enhancement:
Ideas have been added to #19
Currently the export stats function is broken due to my selectors, I do feel like we need to revamp how the export feature works.
Exporting
Currently we can only export stats and it needs a rework, ideally the output of the tool looks a bit nicer, perhaps we can introduce automatic copy to the clipboard for improved user experience.
Send Via Email
It could be a nice option to include a way of sending the export via email, perhaps as a JSON file attachment or just using plaintext.
Importing
We also need the ability to import stats (using exported datastring). This will be useful for people to keep stats cross multiple computers up to date and would allow us to easily import test data.