Remove Combat navigation panel and integrate spatial combat into AI Game Master#18
Draft
Copilot wants to merge 4 commits into
Draft
Remove Combat navigation panel and integrate spatial combat into AI Game Master#18Copilot wants to merge 4 commits into
Copilot wants to merge 4 commits into
Conversation
Co-authored-by: NusretSalli <110097112+NusretSalli@users.noreply.github.com>
Co-authored-by: NusretSalli <110097112+NusretSalli@users.noreply.github.com>
Co-authored-by: NusretSalli <110097112+NusretSalli@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Remove combat section panel and integrate with story generator
Remove Combat navigation panel and integrate spatial combat into AI Game Master
Oct 7, 2025
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.
Overview
Removed the standalone Combat section from the navigation menu and integrated spatial combat functionality directly into the AI Game Master (Story Generator), creating a more streamlined and immersive gameplay experience.
Problem
The previous implementation had combat management separated from the storytelling flow:
Solution
This PR makes the following changes:
1. Navigation Simplification
2. Spatial Combat Grid Extraction
Created a new reusable function
show_spatial_combat_grid(combat_id, key_suffix="")that:/api/spatial/{combat_id}/stateand/move)3. AI Game Master Integration
Updated
show_gm_combat_scene()to provide inline spatial combat:4. Bug Fixes
Fixed missing
charactersvariable initialization in:show_combat()show_spells()show_story_generator()Also removed UTF-8 BOM from
streamlit_app.pyfor better compatibility.User Experience Improvements
Before:
After:
Technical Details
streamlit_app.pyTesting
Validated with comprehensive automated checks:
Ready for manual testing in the full application environment.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.