Tatoeba / tatoeba2

Tatoeba is a platform whose purpose is to create a collaborative and open dataset of sentences and their translations.
https://tatoeba.org
GNU Affero General Public License v3.0
707 stars 132 forks source link

Add "contributions yesterday" on the logged-in home page. #2085

Open ckjpn opened 4 years ago

ckjpn commented 4 years ago

The Enhancement for this page: https://tatoeba.org/eng

Add in the number of yesterday's contributions, so regular members as well as new members can get an idea of the activity. Just showing "contributions today," at times, makes it look like nothing much is happening.

807 contributions today 3,485 contributions yesterday 347 supported languages 8,076,496 sentences

Note

If you think 4 lines is too many for this part of the page, consider eliminating the line with "supported languages," since these can be found, along with the number of sentences in each language by clicking the link the block.

Additional Note

Since the word "contributions" could also mean leaving comments and other things people do to help the website, maybe this should be "sentences" or "new sentences."

jiru commented 4 years ago

Actually, I think it’s doesn’t make much sense to show "today’s contributions" because "today" has a different meaning depending on your time zone. This number is calculated from the point of view of the UTC+0. This explains why it can be pretty low even though contributors are active.

How about replacing it with "contributions in the past 24 hours"?

ckjpn commented 4 years ago

How about replacing it with "contributions in the past 24 hours"?

That sounds good to me. Will calculating that each time the page loads slow things down?

trang commented 4 years ago

Related Wall thread: https://tatoeba.org/eng/wall/show_message/33577

Will calculating that each time the page loads slow things down?

It might not be that slow, but still, we don't have to implement it in a way that it's being recalculated each time.

ckjpn commented 4 years ago

Another possibility, perhaps, would be to reverse sort what's on this page, and then grab the first 2 or 3 lines, but not with the bar graph part. Perhaps, this recycles something you already have.

https://tatoeba.org/eng/contributions/activity_timeline

jiru commented 4 years ago

Will calculating that each time the page loads slow things down?

No.

ckjpn commented 4 years ago

brainstorming

Perhaps adding 2 lines might be interesting, rather than just the one.

00000 contributions in the last 24 hours 00000 contributions in the last 7 days

This would let members to easily approximate the recent daily average.

Or, possibly instead have....

00000 contributions daily average for the past 7 days . (or 90 days)

Possibly putting the words in front of the numbers might be better

Past 24 Hours: 00000 sentences Daily Average for the Past 7 Days: 00000 sentences

trang commented 4 years ago

If there's a need behind showing stats on a larger range of time, then please elaborate.

The reason why we have this "X contributions today" was just a way for us to give a quick and concrete number to the users on how active the project is. Just one number is enough. We could have chosen any length of time, but a day seems to be a good unit based on how much activity we actually have. We could have chosen one week or even one month if the pace of the project was much slower and we had no guarantee that there would be contributions every day.