codidact / qpixel

Q&A-based community knowledge-sharing software
https://codidact.com
GNU Affero General Public License v3.0
385 stars 68 forks source link

When you have an outstanding flag on a post, show an indicator on that post. #1264

Closed cellio closed 9 months ago

cellio commented 10 months ago

meta:289233

If you raise a flag on a post and later view that post while the flag remains active, you get no indication of the flag. You also don't get any indicator if you start to flag it again. This can result (and has resulted) in the same person flagging the same post more than once due to not remembering.

Curators see an indicator like this:

links under post include Show 1 flag

Could regular users who are not curators, who have active flags, see "Show my flags" there? We need to make sure that this would show only that user's flags, and showing them should not offer the "accept", "decline", and "escalate" options that curators have.

A curator who can see other people's flags should not also see "See my flags"; that'll be covered in "Show N flags", which include your own. We don't want two controls in that case.

Users can see all of their flags (active and handled) via a link on the profile page, but the goal here is to put the "you've already flagged this, and here's what you said" indicator where the user will notice it before accidentally re-flagging.