five-for-the-future icon indicating copy to clipboard operation
five-for-the-future copied to clipboard

Noting milestone contributions

Open angelasjin opened this issue 3 years ago • 2 comments

I'm not sure how this might be already done, so any notes would be helpful!

I think it would be fun and encouraging to see milestones in contributions, for example:

  • You made your first contribution to the _____ Team! Thanks for building WordPress and making it an even better project.
  • Wow, congrats on making your 50th contribution to the ______ Team! 👏
  • Congrats @username, you've been an active contributor for 6 consecutive months!

You get the idea :) What would it take to do something like this?

angelasjin avatar Jul 11 '22 14:07 angelasjin

Those milestones might be handy to also share to those managing badges for their teams. I know some teams set a total, like support forums is 400 replies unrelated to your own plugins. That earns a contributor badge.

courtneyr-dev avatar Jul 13 '22 04:07 courtneyr-dev

That should be doable. The implementation details would probably depend on exactly what the milestones are, and may need to be different for different milestones.

In general though, a cron job could run daily and count the # of specified activities for each user, then add a profile entry if it's at the milestone. Then it'd update usermeta with a note that they reached that milestone, so that tomorrow's cron job doesn't add a duplicate notification.

We might need to start saving some additional meta data in some cases, but it'll depend on the exact milestones.

Related to #189 since it may use that data a bit, cc @StevenDufresne as FYI

iandunn avatar Jul 13 '22 16:07 iandunn