Repository navigation
feat(moderation): a player reports a drawing and the operator undoes it - #442
Open
raphoester wants to merge 3 commits into
Open
raphoester wants to merge 3 commits into
raphoester wants to merge 3 commits into
Conversation
- support.v1.SupportService/ReportPlace: a player taps a tile of the drawing and picks a reason; ListPlaceReports and DecidePlaceReport for the operator. The reporter goes with its account, the notice stays. Decisions are one rule for both kinds of report - planet.v1.AdminService/RestoreArea: who painted the area around a tile since a time, and puts it back as it was then, dry run first - planet.v1.AdminService/ClearArea: gives the area to nobody, for a drawing older than the ledger keeps - The game: "Report a drawing" in Settings, then a tap on the globe; ?tile=<id> opens the globe close up on a tile Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
raphoester
added this pull request to stack #444
October 20, 2026 16:06
…ports # Conflicts: # apps/backend/generated/proto/planet/v1/admin.pb.go
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.
A player can now report a drawing on the map, and the operator can undo it. This is the backend and the game; the back office screens come next, in their own PR.
The player
support.v1.SupportService/ReportPlace(tile_id, reason, text), under the support limiter.?tile=<id>opens the globe close up on that tile. The back office will link reports with it.The operator
ListPlaceReportsandDecidePlaceReport, as for player reports. A place report is its own table. When the reporter's account is deleted, or the retention passes, the report stays and loses its reporter.decisions.Decision[R], two tables.planet.v1.AdminService/RestoreArea(tile_id, rings, before, dry_run): the area is the tiles withinringstile spacings of the tile (1 to 50; a bomb is 8). It answers who painted the area sincebefore, and puts each tile back as it was then. A dry run comes first.beforeis refused.ClearArea(tile_id, rings, dry_run)gives every owned tile of the area to nobody, for a drawing older than the ledger keeps.deploy/vps/README.mdhas the console commands.Known limits
RestoreAreacannot rewind what one of them changed.beforeis cut to its second.Tests
e2e/map_drawing_test.go: paint a tile over a flag, see the painter in a dry run, restore, clear; report a drawing, list it, close it; a deleted reporter.🤖 Generated with Claude Code