VirtusLab-Open-Source / strapi-plugin-comments

A plugin for Strapi Headless CMS that provides end to end comments feature with their moderation panel, bad words filtering, abuse reporting and more.
MIT License
409 stars 64 forks source link

feat: create reports page [CU-20rfmkv] #153

Closed kamilszewczyk0 closed 2 years ago

kamilszewczyk0 commented 2 years ago

Ticket

Task linked: CU-20rfmkv Reports page

Summary

What does this PR do/solve?

Introduces side menu within the "Comments" section, and brings "Reports" view, where You can display and resolve reports , see to which comment they are related, and block the comment (or thread) if needed. There is also possibility to mark multiple reports and resolve them at once

Test Plan

  1. Create new entity
  2. Add few comments to it (with and without threads)
  3. Create reports for the comments
  4. Try to resolve one report
  5. Try to resolve few reports ant once
  6. Try to block the comment
  7. Try to block a thread
cyp3rius commented 2 years ago

Task linked: CU-20rfmkv Reports page

codecov-commenter commented 2 years ago

Codecov Report

Merging #153 (c14ad6d) into master (e0e46d8) will decrease coverage by 3.40%. The diff coverage is 57.14%.

@@            Coverage Diff             @@
##           master     #153      +/-   ##
==========================================
- Coverage   80.79%   77.39%   -3.41%     
==========================================
  Files           9       10       +1     
  Lines         552      606      +54     
  Branches      211      223      +12     
==========================================
+ Hits          446      469      +23     
- Misses        104      134      +30     
- Partials        2        3       +1     
Flag Coverage Δ
unittest 77.39% <57.14%> (-3.41%) :arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
types/utils.ts 33.33% <33.33%> (ø)
server/services/admin.ts 75.58% <58.20%> (-13.68%) :arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.