In the working project on ReactNative, it is necessary to add the following functionality, namely, to add an additional user menu in the user profile. See the screenshot.
Menu structure:
- Report
- Block
- Do not recommend video from this channel
---------
Report -> (the reasons list is taken via API request) -> Confirmation of the report with a text description of the report (taken from the API request)
Block -> Confirmation of blocking.
- Do not recommend video from this channel -> (sends a request to the API server with the channel or user (already implemented, need to add functionality to the button)
----------
Report - (the logic is the same as in Report for content. You can even copy part of the code (already implemented)) when clicked, a submenu Select Reason opens, which we take from the API server request /api/getUserReportReasons
When clicking Report, a request is sent to /api/sendUserReport with the body of the request userId and the item for which the report
{
“userId": 10,
"reasonId": "1.1"
}
Screenshots examples are in Figma:
User Menu - Report Selected with Reasons
User Menu - Send user report
Block - (Blocking a user) when clicked, a submenu with confirmation and text opens. When the Block button is clicked, a request is sent to /api/blockUser with the body of the request userId.
{
"userId" : 10
}
Screenshots examples are in Figma
User Menu - Block selected
Do not recommend videos from this channel - sends the same request as in the player. /api/setNotRecomendChannel This request accepts publicId for the video or userId if you are sending from the user screen and know their userId.
We are looking for a developer or team for ongoing collaboration in our project.
This task serves as a test for further cooperation.
Main requirements: be available, prompt bug fixes