Add Moderation Role and Feature

BRIEF

We are looking to create a moderation feature for data annotations (comments and events), so that users can report a comment or event to the FieldKit team if they believe it violates community standards, and the FieldKit team can

TASKS

  1. Add new FieldKit role called "moderator"
  • This "moderator" role sits above the "project admin" role (Jacob will manually assign this role to someone)
  • It sits across all projects
  • It can be assigned to multiple admin users/email addresses
  • It does not appear on the front end e.g. project page - it is a hidden role
  • "Moderators" should be able to delete comments or events from anyone so that they can control the discussion related to their research
  • The same function users have to edit/delete their own comment or event will be available to moderators, except they will only have the option to delete comments or events

Screenshot 2024-12-11 at 16.16.10.png

  1. On the front end, on the Project and Data pages, add “Report” function for users to report a comment or event to us if they believe it violates community standards
    • Add a “Report” link on each comment or event on the front end
    • When a user hits "Report" it sends an email to the "moderator" role admin users/email addresses

Screenshot 2024-12-11 at 16.11.53.png

  1. **In the portal admin (**https://portal.fieldkit.org/admin****),*****https://portal.fieldkit.org/admin*****In the portal admin (https://portal.fieldkit.org/admin), create a new section called "Moderation"
    • This new "Moderation" section contains listings of comments or events that have been reported for moderation, ordered by date reported (oldest first)
    • When logged in, the "moderator" can hit "Acknowledge"on each listing
    • Hitting "Acknowledge" removes this listing from view and puts a flag on this item in the DB

Screenshot 2024-12-11 at 16.13.48.png

Edited by Susan Allen