Skip to content

Conversation

@hayrettinerenyildiz
Copy link
Contributor

Feature: Report to Admin (Mobile)

Description:
Implements the functionality to report tasks and users to the admin feature. Users can now flag inappropriate tasks or users directly from the mobile app.

🧪 How to Test

Pre-requisites

  1. Log in to the mobile application.
  2. Ensure you have at least two different user accounts available (or find content created by another user) to test the "reporting others" functionality.

Scenario 1: Report a Task

  1. Navigate to a Task: Open the details page of a task that you did not create (either as a volunteer or just viewing from the feed).
  2. Locate Report Button: Look for the Flag Icon (🚩) in the top-right corner of the screen.
  3. Open Modal: Tap the flag icon. A "Report Task" modal should appear.
  4. Submit Empty/Short Report (Validation Test):
    • Try to submit without selecting a reason -> Should show error alert.
    • Try to submit with a description shorter than 10 characters -> Should show error alert.
  5. Submit Valid Report:
    • Select a reason from the dropdown (e.g., "Spam", "Inappropriate Content").
    • Enter a valid description (e.g., "This task contains spam content and should be removed.").
    • Tap Submit Report.
  6. Verify: You should see a "Success" alert confirming the report was submitted.

Scenario 2: Report a User

  1. Navigate to a Profile: Go to the profile page of another user (not your own profile). You can do this by tapping on a task creator's name.
  2. Locate Report Button: Look for the Flag Icon (🚩) in the profile header section (next to the notification/settings icons).
  3. Open Modal: Tap the flag icon. A "Report User" modal should appear.
  4. Submit Report:
    • Select a reason (e.g., "Harassment").
    • Enter a description.
    • Tap Submit Report.
  5. Verify: You should see a "Success" alert confirming the report was submitted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants