Skip to content

Implement Management Depth UI (agent roster, faction overview, focus management, heat maps)#78

Merged
SorraTheOrc merged 4 commits intomainfrom
copilot/metropolitan-flamingo
Dec 7, 2025
Merged

Implement Management Depth UI (agent roster, faction overview, focus management, heat maps)#78
SorraTheOrc merged 4 commits intomainfrom
copilot/metropolitan-flamingo

Conversation

Copy link

Copilot AI commented Dec 7, 2025

Adds Phase 12.2.1 Management Depth UI components for advanced simulation monitoring and interaction. Extends the existing terminal UI (Phase 12.1.1) with four new management views.

New Views

  • Agent Roster (agent_view.py, 240 lines)

    • Displays all agents with expertise pips (●●●○○), stress meters, status indicators
    • Shows reliability scores, mission counts, current locations
    • Provides detailed agent inspection panel
  • Faction Overview (faction_view.py, 244 lines)

    • Lists all factions with legitimacy/resource bars and trend indicators (↑↓→)
    • Displays territory control and faction relationships
    • Supports detailed faction inspection
  • Focus Management (focus_view.py, 188 lines)

    • Shows current focus district and budget allocation
    • Visualizes ring vs global event distribution
    • Lists focus ring districts and archived event counts
  • Heat Map Overlays (enhanced city_map.py)

    • Adds 5 overlay modes: unrest, pollution, security, prosperity, control
    • Color-coded metric visualization with smart thresholds
    • Legend display and keyboard shortcuts for mode switching

Example Usage

from gengine.echoes.cli.views import render_agent_roster, render_faction_overview

# Display agent roster
state = engine.get_state()
panel = render_agent_roster(state)
console.print(panel)  # Shows all agents with expertise, stress, status

# Show faction overview
faction_panel = render_faction_overview(state)
console.print(faction_panel)  # Lists factions with legitimacy bars

# Enable heat map on city map
city_map = CityMap(state, heat_map_mode='unrest')
city_map.render()  # City districts color-coded by unrest levels

Testing

Added 19 tests in test_management_ui.py covering all view renderers, heat map modes, and edge cases (empty states, missing data). All views extract live simulation state and maintain consistency with existing UI components.

All keyboard navigation hints integrated. Ready for EchoesShell integration in future PR.

Original prompt

"Issue 77 - Management Depth UI" to GameDev Agent

Created from Copilot CLI via the copilot delegate command.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

- Add agent roster view with expertise pips and stress levels
- Add faction overview with legitimacy bars and territory display
- Add focus management UI with budget allocation display
- Add heat map overlays (unrest, pollution, security, prosperity, control)
- Integrate keyboard navigation throughout
- Add 19 comprehensive tests (exceeds 12 requirement)
- All tests passing, linting clean

Co-authored-by: SorraTheOrc <250240+SorraTheOrc@users.noreply.github.com>
Copilot AI changed the title [WIP] Update management depth UI for issue 77 Implement Management Depth UI (agent roster, faction overview, focus management, heat maps) Dec 7, 2025
Copilot AI requested a review from SorraTheOrc December 7, 2025 07:00
@SorraTheOrc SorraTheOrc merged commit b1e5722 into main Dec 7, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants