Sprint 3.1: War frontend completion — Intelligence Panel, Alliance Wars section, Scan Enemy#102
Merged
Merged
Conversation
…, Scan Enemy button Agent-Logs-Url: https://github.com/makr-code/GalaxyQuest/sessions/f13db9f5-4d42-4dd1-b669-edd4f7d1c518 Co-authored-by: makr-code <150588092+makr-code@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Implement war declaration dialog and UI for alliances and negotiations
Sprint 3.1: War frontend completion — Intelligence Panel, Alliance Wars section, Scan Enemy
Apr 12, 2026
makr-code
marked this pull request as ready for review
April 12, 2026 06:50
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.
Completes the remaining B-1 gaps in the war frontend: War-Intelligence-Panel, visible Alliance Wars, and War-Goal-Score display. All war mechanics are now fully controllable from the UI.
Backend (
api/war.php)Two new GET endpoints:
get_intel&war_id=X— queries enemy fleet count, colony count, alliance affiliation, and resource scan (65% accuracy factor) for any war the player participates inalliance_wars— resolves the player's current alliance fromalliance_membersand returns all activealliance_relationsrows withrelation_type='war'API client (
js/network/api.js)warIntel(warId)→get_intel(30s TTL cache)warAllianceList()→alliance_wars(10s TTL cache)War UI (
RuntimeWarController.js)allianceWarsHtml(myAlliance, allianceWars)— renders an Alliance Wars section in the war overview showing[TAG] Name, target, and declared date; shown in both empty and populated list statesintelPanelHtml(intel)— stat cards for enemy fleets, colonies, alliance, and estimated resources🔍 Scan Enemybutton added to active-war detail header; injectsintelPanelHtmlinto a[data-intel-host]placeholder on clickWarController.render()now loads war list + alliance wars viaPromise.allTests (
tests/js/war-events.test.js)Expanded from 20 → 31 tests: 7 for Alliance Wars section (loading, rendering, empty/null states, user targets) and 4 for the Scan Enemy button and intel panel rendering.
Docs
GAP_TODO.mdB-1 all items marked ✅ complete.