-
Notifications
You must be signed in to change notification settings - Fork 11k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Introduce User Report Section on Moderation Console #30554
Conversation
🦋 Changeset detectedLatest commit: 0868710 The changes in this PR will be included in the next version bump. This PR includes changesets to release 32 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## develop #30554 +/- ##
============================================
- Coverage 59.83% 49.57% -10.27%
============================================
Files 1793 3320 +1527
Lines 34892 81614 +46722
Branches 7268 16773 +9505
============================================
+ Hits 20879 40460 +19581
- Misses 12411 36435 +24024
- Partials 1602 4719 +3117
Flags with carried forward coverage won't be shown. Click here to find out more. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tests can be improved later during the release candidate cycle.. the other change requests should be very simple to get done before the cut. 😉
Co-authored-by: Diego Sampaio <[email protected]>
Proposed changes (including videos or screenshots)
Introduce a new window (tab, to be precise) on the Moderation Console to view and manage reported users.
Added:
ModFilter
can be used in both the User & Message Reports.i18n
have been added.Changed:
useRoute
withuseRouter
on the Moderation Console page.isUserReport
prop to theuseDismissUserAction
to enable dismissing user reports as well as message reports.useResetAvatarAction
with more calls to invalidate react-queries.ReportMessageHistoryParams
toGetUserReportsParams
, for more clarity.APIs
API Endpoint: moderation.dismissUserReports
Description
This endpoint allows a moderator to dismiss user reports. The moderator could provide a reason and an action for the dismissal.
Method: POST
Parameters
Response
API Endpoint: moderation.user.reportsByUserId
Description
This endpoint retrieves all the moderation reports for a specific user.
Method: GET
Query Parameters
Response
API Endpoint: moderation.userReports
Description
This endpoint retrieves all the user reports.
Method: GET
Query Parameters
Response
Issue(s)
Steps to test or reproduce
This video shows the main features of the product:
-moderation_console_userreport.mp4
Further comments
AECO-336
To the reviewer: