feat: Introduce User Report Section on Moderation Console - #30554
Merged
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. |
debdutdeb
requested changes
Oct 3, 2023
Dnouv
marked this pull request as ready for review
October 13, 2023 12:49
AllanPazRibeiro
suggested changes
Oct 16, 2023
sampaiodiego
requested changes
Jan 22, 2024
sampaiodiego
left a comment
Member
There was a problem hiding this comment.
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 <chinello@gmail.com>
sampaiodiego
approved these changes
Jan 22, 2024
tassoevan
approved these changes
Jan 22, 2024
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
ModFiltercan be used in both the User & Message Reports.i18nhave been added.Changed:
useRoutewithuseRouteron the Moderation Console page.isUserReportprop to theuseDismissUserActionto enable dismissing user reports as well as message reports.useResetAvatarActionwith more calls to invalidate react-queries.ReportMessageHistoryParamstoGetUserReportsParams, 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: