JohnAkerman / TabStats

A Chrome Extension that accumulates statistics of your tab usage based on your behaviour
MIT License
0 stars 0 forks source link

Improve export and importing stats #2

Closed JohnAkerman closed 6 years ago

JohnAkerman commented 7 years ago

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.

JohnAkerman commented 7 years ago

PR #11 has fixed the export feature. Many thanks @SolidusMaximus

SolidusMaximus commented 7 years ago

Progress and Todos

SolidusMaximus commented 6 years ago

Most probably going to use validate.js to validate the JSON given from import https://validatejs.org/

JohnAkerman commented 6 years ago

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

image

JohnAkerman commented 6 years ago

So I feel this task is now complete, the last item on this could be considered an enhancement:

JohnAkerman commented 6 years ago

Ideas have been added to #19