feat(rust): the live map draws monuments by label, minor labels hidden (PLAN_REDESIGNS §4, D196, D213) #28
Reference in New Issue
Block a user
No description provided.
Delete Branch "feat/map-marker-labels"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What & why
This is PLAN_REDESIGNS §4 (D196). Each monument label gets its own switch, with a fleet default and a per-server override, on the live map card in Admin → Rust visibility. The label is what staff read, and it groups a monument's variants: 47 substations built from four prefabs are one "Substation".
GET /public/rust/servers/:id/mapleaves hidden labels out of the answer entirely. The website and the Android app both read that answer, so neither needs a client change.world.monuments, which event steps use, is untouched.map.marker.<key>set toonoroff, inrust_settingsfor the fleet andrust_map_overridesfor a server. No schema change and no wire change. The key is the label in lower case, because the game spells "jungle swamp" and "Jungle ruin" in lower case on some maps.nullclears a switch: a server then follows the fleet, and the fleet follows the built-in list.client/src/lib/mapMarkers.jsand is unit-tested.swagger-fragment.jsonare regenerated (61 paths).Docs: RunicGateway/docs
docs/rust-map-markers(PLAN_REDESIGNS §4.1 and D213).How it was tested
npm test(server): 462 pass, including 7 new marker tests, one of which runs the filter over the rig map's 51 real labels.npm run check:swaggerreports the fragment is current.npm test66 pass (8 new),npm run build,npm run check:externals.4035c52: the fleet list printed the game's lower-case "jungle swamp".Checklist
AI-assisted contributions (required)
Claude Code (Claude Opus 5.5). I have reviewed and understandevery change, and take responsibility for it. AI-authored commits are
marked with a
Co-Authored-By/Assisted-Bytrailer.License
(GNU GPL v3.0 or later), and I have the right to contribute it.
🤖 Generated with Claude Code
https://claude.ai/code/session_01E14m6SuuY6i1vASFeGDBeY