Export supply hub links for the web map - #91
Conversation
The map export now lists each guild's connected hub pairs, with the two installations, the mode, the distance and the shares carried, so the web map can draw them. Each installation row also carries its hub slots and how many hubs it hosts. The export is queued when a hub is built or removed or a permit changes. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (3)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 SummarySummary by CodeRabbit
WalkthroughThe change queues faction nation map updates during trade recalculation. Map exports now include installation hub capacity and usage, plus guild hub links with endpoint and link details. ChangesHub map data
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Feature Merge Risk: ⚪ Minimal · up to The change adds hub capacity and connection details to map exports and queues refreshes after hub changes. No concrete merge-blocking issue remains; merge after normal checks. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The change adds hub relationships to an existing map export without an evidenced gameplay authorization bypass. Risk remains bounded but not fully resolved because the receiving map’s access policy and rendering behavior were unavailable. Retained concerns Security review detailsSecurity Blast Radius
Security Findings and Attack Paths
Trust Boundaries and Controls
Resilience and Maintainability Implications
Comment |
Adds supply hub connections to
map_markers.jsonso the web map can draw them. No gameplay change.Export
hub_linksarray: one entry per connected pair of a guild's active hubs, withguild_id,guild_name,faction_id,mode(rail,sea,air),distance,trade_share,production_share, andfrom/toinstallations (id, owning faction, name, province, centre).fromis the end with the lower province id.installationsrow gainshub_slotsandhubs.Testing
mvn verify: 2461 tests, 0 failures. New tests cover the link and endpoint rows, share rounding and the new installation fields.🤖 Generated with Claude Code