Skip to content

feat: Add admin content moderation flag management system#483

Open
ekumamatthew wants to merge 2 commits intoArena1X:mainfrom
ekumamatthew:content_moderation
Open

feat: Add admin content moderation flag management system#483
ekumamatthew wants to merge 2 commits intoArena1X:mainfrom
ekumamatthew:content_moderation

Conversation

@ekumamatthew
Copy link
Copy Markdown

Closes #408

  • Create Flag entity with market_id, user_id, reason, status fields
  • Add database migration for flags table
  • Implement POST /flags endpoint for users to flag markets
  • Implement GET /admin/flags endpoint for admins to review flags
  • Implement PATCH /admin/flags/:id/resolve endpoint for flag resolution
  • Add resolution actions: dismiss, remove market, ban user
  • Include comprehensive test coverage
  • Add proper validation and error handling
  • Integrate with analytics service for activity logging

Closes Arena1X#408

- Create Flag entity with market_id, user_id, reason, status fields
- Add database migration for flags table
- Implement POST /flags endpoint for users to flag markets
- Implement GET /admin/flags endpoint for admins to review flags
- Implement PATCH /admin/flags/:id/resolve endpoint for flag resolution
- Add resolution actions: dismiss, remove market, ban user
- Include comprehensive test coverage
- Add proper validation and error handling
- Integrate with analytics service for activity logging
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
insight-arena-4rll Ready Ready Preview, Comment Mar 30, 2026 4:45pm

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 29, 2026

@ekumamatthew Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Olowodarey
Copy link
Copy Markdown
Collaborator

@ekumamatthew pls can you help fix conflict

- Resolved merge conflicts in admin controller, service, and module
- Integrated flag management features with existing admin functionality
- Combined imports and dependencies from both branches
- Maintained all existing admin endpoints while adding flag management
@ekumamatthew
Copy link
Copy Markdown
Author

Hi @Olowodarey Pls review and merge. all workflows passed and no conflict

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.

[Backend] Admin Content Moderation - Flag Management

2 participants