Admin Panel UI
- Navigate to Comment Reports in the admin panel.
- The admin can:
- View all reported comments in a table.
- Filter reports by status (pending, resolved) and author block status.
- Take actions on reported comments (delete, block author, mark resolved).
Features
- View Reports: Displays reported comments along with details about the reporter and reason.
- Filter Reports: Allows filtering based on status (
pending,resolved) and block author status (yes,no). - Take Action:
- Delete Comment: Permanently removes the reported comment.
- Block Author: Prevents the comment author from posting further content.
- Resolve Report: Marks the report as resolved without taking action.
Usage Flow
- Admin accesses the Comment Reports page.
- Admin reviews the reported comments with relevant details.
- Admin selects an appropriate action:
- Deletes the comment if necessary.
- Blocks the author if violations occur.
- Resolves the report if no action is required.
- The system updates the status of the report accordingly.
Error Handling
- Invalid report ID: Returns
404 Not Found - Unauthorized request: Returns
403 Forbidden - Server errors: Returns
500 Internal Server Error

