feat(maps): implement user map proposal and moderation flow (closes #25) - #368
Open
dev-vishalmaurya wants to merge 1 commit into
Open
Conversation
…itcoindefi#25) - Implemented state lifecycle: draft -> proposed -> in_review -> published | rejected - Added automated pre-moderation filter (banned words, reachability BFS, entity quotas) - Added moderation queue with map preview data for reviewers without playing - Added mandatory rejection reasons delivered to map owners - Added report mechanism moving published maps back to in_review - Added unpublish capability for active maps - Added comprehensive unit and integration test suite
6 tasks
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.
Summary
Resolves #25: Implements the complete lifecycle and moderation flow for user-created maps in Argentum Online Web (Modo Construcción).
What is implemented
State Machine Lifecycle:
draft→proposed→in_review→published|rejected|archived.publishedstate; non-owners cannot see draft or proposed maps.Automated Pre-Filtering Validation (runs before human review):
Moderation Queue & Review Workflow:
/admin/moderation/maps/queue) with complete map data previews so reviewers can inspect maps without having to enter the game world.in_review), approve (published), or reject (rejected).Community Reporting & Unpublishing:
POST /maps/user/:id/report).in_review) with report counts for moderator inspection.unpublishMap) active maps if issues arise post-publication.Testing & Database Schema:
database/migrations/002_user_map_moderation.sqland updatedapi/schema.sql.api/src/tests/userMaps.test.tscovering automated checks, reachability BFS, permissions, state transitions, reporting, and unpublishing.All unit tests passing.