Allow users to **report posts or comments** that violate community guidelines. Moderators will review reported content and take appropriate actions. --- ### โ Tasks * [ ] **Database Integration** * [ ] Implement `Report` model linked to `User` (reporter) and target (`Post` or `Comment`). * [ ] Include fields: reason, status (`pending`, `reviewed`, `resolved`), createdAt. * [ ] **UI/UX** * [ ] Add "Report" option in post and comment actions menu. * [ ] Create report modal with predefined reasons + optional custom text. * [ ] Show confirmation after report submission. * [ ] Add moderator dashboard view for managing reports. * [ ] **Backend / Fullstack Logic** * [ ] Implement server-side action to submit reports. * [ ] Restrict reports to authenticated users. * [ ] Implement moderator actions: mark report as reviewed/resolved, delete related content if needed. * [ ] **Testing & QA** * [ ] Add unit tests for report creation & status updates. * [ ] Add integration tests for report flow (submit โ review โ resolve). * [ ] Test UI interactions (modal, form validation, feedback). --- ### ๐ Acceptance Criteria * Authenticated users can report posts or comments. * Reports contain reason, status, and reporter info. * Moderators can view and manage reports via dashboard. * Reported content can be removed by moderators if necessary. * Feedback is provided after submitting or resolving a report.
Activity