fathomnet / community-feedback

1 stars 0 forks source link

Create a reward system: badges #40

Closed hohonuuli closed 1 year ago

hohonuuli commented 2 years ago

Earn points toward a badge: earn expertise level in specific animal groups (e.g., level 6 in cephalopods but level 2 in geology)

hohonuuli commented 1 year ago

Screenshot 2023-02-08 at 10 48 53 AM Screenshot 2023-02-08 at 11 21 12 AM Screenshot 2023-02-08 at 11 21 24 AM

hohonuuli commented 1 year ago

Easy to implement badges:

hohonuuli commented 1 year ago

Posted on FathomNet's slack:

FathomNet API 1.4.2 has been released. Changes in this release are to support badges by user UUID. Docs are here. An example URL is https://fathomnet.org/api/users/badges/9dba65e1-5974-46df-9276-98c461beba9f and it returns something like:

[
  {
    "name": "Early Adopter",
    "data": {
      "since": "2021-03-02T00:27:54.425Z"
    }
  },
  {
    "name": "Annotator",
    "data": {
      "observationCount": 4
    }
  },
  {
    "name": "Verifier",
    "data": {
      "verificationCount": 4
    }
  },
  {
    "name": "Image Contributor",
    "data": {
      "imageCount": 75953
    }
  }
]

Erin, I’m returning the absolute minimum data here. If you want other values included (like User name, uuid, etc), just let me know what you need. I’m also happy to standardize the output a bit, so instead of imageCount, verificationCount, etc, I can just return count.

hohonuuli commented 1 year ago

From @ermbutler: All badges need a timestamp so that they can be presented in the activity feed.

hohonuuli commented 1 year ago

I think @ermbutler changed this to done. Closing issue.