zuzak / yakc

why should @kragniz have all the fun
http://good.webm.website
ISC License
0 stars 1 forks source link

Visualise queue statistics somehow #33

Open zuzak opened 7 years ago

zuzak commented 7 years ago

In commit dcdf5ba7459189dd250f35c552b214479600ef31 we added rudimentary client-side tracking of the "moderation" buttons.

For each queue, there now exists a JSON string accessible via localStorage.getItem('stats') which currently contains an object with actions (good, bad, shunt, et cetera) as keys, each with an array of objects with the following key-value pairs:

key value
ts Unix timestamp of the vote
fn The URI of the video being voted on
currentTime the timestamp in the video when the vote was requested
duration the duration of the video (added in a5edc6b)

It would be nice to expose these statistics to the user somehow. For example, it would be interesting to find out how swiftly a video is demoted, or what proportion of videos get shunted, or perhaps a running total of videos. This could be visualised by a second progress bar, perhaps?