[PR #1541] [MERGED] Restore game conversation view wiring #5119

Closed
opened 2026-10-22 04:13:29 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1541
Author: @Xelvanis
Created: 5/29/2026
Status: ✅ Merged
Merged: 5/29/2026
Merged by: @Xelvanis

Base: refactor ← Head: restore/knip-game-shell


📝 Commits (2)

  • 02f4724 Restore game conversation view wiring
  • c0f2de1 Fix game conversation pagination preload

📊 Changes

4 files changed (+122 additions, -171 deletions)

View changed files

📝 src/features/modes/game/components/GameConversationView.tsx (+101 -47)
📝 src/features/modes/game/components/GameMap.tsx (+5 -22)
📝 src/features/modes/game/components/GameModeRoute.tsx (+2 -99)
📝 src/features/modes/game/components/GameStateIndicator.tsx (+14 -3)

📄 Description

Linked issue

Refs #1496

Why this change

  • Continues the Knip unused-code triage by restoring the game-owned conversation route/view wiring that had become orphaned after GameModeRoute absorbed its logic.
  • Keeps this PR as a focused slice of #1496; remaining unused files still need separate triage/restoration/deletion decisions.

What changed

  • Moved active Game Mode data, metadata, overlay, sprite, and timeline wiring into GameConversationView.
  • Reduced GameModeRoute to the Game Mode entry wrapper that renders GameConversationView.
  • Reused GameStateIndicator display config from GameMap and renders the state pill when the desktop map panel has no map yet.
  • Guarded game-state config reads so stale or imported metadata with an unknown gameActiveState cannot crash map state display.

Refactor impact

Primary owner:

Game mode UI (src/features/modes/game)

Impact areas reviewed:

  • Game mode route composition
  • Shared chat UI hook lifecycle as consumed by game
  • Desktop and mobile map state rendering
  • Knip unused-file list for #1496

Boundary notes:

  • Feature-only React UI change under src/features/modes/game.
  • No engine, shared API, Rust, storage, or remote runtime boundaries changed.
  • Mode separation checked; no sibling concrete mode imports added.

Pressure points touched:

  • GameSurface call path reviewed as a caller/consumer; no GameSurface implementation changed.
  • Shared mode UI hooks are consumed from game as before; route wiring moved from GameModeRoute into GameConversationView.

Validation

  • pnpm check passes locally
  • pnpm typecheck passes locally
  • pnpm build passes locally
  • pnpm check:architecture passes locally
  • pnpm check:docs passes locally
  • cargo check --manifest-path src-tauri/Cargo.toml --workspace passes locally
  • Rust clippy/tests were run for Rust behavior changes
  • Browser or Tauri app manual verification completed
  • Playwright, screenshot, or recording evidence added for UI changes
  • Remote runtime smoke checked when relevant

Manual verification notes

  • git diff --check origin/refactor...HEAD passed.
  • pnpm typecheck passed.
  • pnpm lint:eslint passed.
  • pnpm check:architecture passed.
  • pnpm exec knip --reporter compact --no-exit-code --no-config-hints passed and reports the expected 9 remaining unused files for later #1496 slices.
  • pnpm build passed with the existing large-chunk warning.
  • No native/manual Tauri Game Mode smoke pass was run.

Docs and release impact

  • No docs changes needed
  • Updated README.md
  • Updated CONTRIBUTING.md
  • Updated docs/developer/
  • Updated repo skills or AGENTS.md
  • Confirmed this PR does not restore old staging/package-workspace/release claims

Notes:

  • No CHANGELOG.md exists on the active refactor branch.
  • No docs were changed; this is an internal game UI restoration/unused-code triage slice.

UI evidence

No screenshots or recordings attached; native/manual UI verification is still open.

Summary by CodeRabbit

  • Refactor
    • Improved game state indicator rendering and consistency across map components
    • Reorganized chat conversation view architecture for better composability and state management
    • Simplified game mode route by consolidating logic into child components

Review Change Stack


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/1541 **Author:** [@Xelvanis](https://github.com/Xelvanis) **Created:** 5/29/2026 **Status:** ✅ Merged **Merged:** 5/29/2026 **Merged by:** [@Xelvanis](https://github.com/Xelvanis) **Base:** `refactor` ← **Head:** `restore/knip-game-shell` --- ### 📝 Commits (2) - [`02f4724`](https://github.com/Pasta-Devs/Marinara-Engine/commit/02f4724b3f2b2c08072c2682c737c7afdf7c5196) Restore game conversation view wiring - [`c0f2de1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c0f2de103c4fa9e8d551bad2979c6af4fd6e7667) Fix game conversation pagination preload ### 📊 Changes **4 files changed** (+122 additions, -171 deletions) <details> <summary>View changed files</summary> 📝 `src/features/modes/game/components/GameConversationView.tsx` (+101 -47) 📝 `src/features/modes/game/components/GameMap.tsx` (+5 -22) 📝 `src/features/modes/game/components/GameModeRoute.tsx` (+2 -99) 📝 `src/features/modes/game/components/GameStateIndicator.tsx` (+14 -3) </details> ### 📄 Description ## Linked issue Refs #1496 ## Why this change - Continues the Knip unused-code triage by restoring the game-owned conversation route/view wiring that had become orphaned after `GameModeRoute` absorbed its logic. - Keeps this PR as a focused slice of #1496; remaining unused files still need separate triage/restoration/deletion decisions. ## What changed - Moved active Game Mode data, metadata, overlay, sprite, and timeline wiring into `GameConversationView`. - Reduced `GameModeRoute` to the Game Mode entry wrapper that renders `GameConversationView`. - Reused `GameStateIndicator` display config from `GameMap` and renders the state pill when the desktop map panel has no map yet. - Guarded game-state config reads so stale or imported metadata with an unknown `gameActiveState` cannot crash map state display. ## Refactor impact Primary owner: Game mode UI (`src/features/modes/game`) Impact areas reviewed: - Game mode route composition - Shared chat UI hook lifecycle as consumed by game - Desktop and mobile map state rendering - Knip unused-file list for #1496 Boundary notes: - Feature-only React UI change under `src/features/modes/game`. - No engine, shared API, Rust, storage, or remote runtime boundaries changed. - Mode separation checked; no sibling concrete mode imports added. Pressure points touched: - `GameSurface` call path reviewed as a caller/consumer; no `GameSurface` implementation changed. - Shared mode UI hooks are consumed from game as before; route wiring moved from `GameModeRoute` into `GameConversationView`. ## Validation <!-- Check only what you personally ran or manually verified. Treat unchecked items as explicit TODOs. --> - [x] `pnpm check` passes locally - [x] `pnpm typecheck` passes locally - [x] `pnpm build` passes locally - [x] `pnpm check:architecture` passes locally - [x] `pnpm check:docs` passes locally - [ ] `cargo check --manifest-path src-tauri/Cargo.toml --workspace` passes locally - [ ] Rust clippy/tests were run for Rust behavior changes - [ ] Browser or Tauri app manual verification completed - [ ] Playwright, screenshot, or recording evidence added for UI changes - [ ] Remote runtime smoke checked when relevant ### Manual verification notes - `git diff --check origin/refactor...HEAD` passed. - `pnpm typecheck` passed. - `pnpm lint:eslint` passed. - `pnpm check:architecture` passed. - `pnpm exec knip --reporter compact --no-exit-code --no-config-hints` passed and reports the expected 9 remaining unused files for later #1496 slices. - `pnpm build` passed with the existing large-chunk warning. - No native/manual Tauri Game Mode smoke pass was run. ## Docs and release impact - [x] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [x] Confirmed this PR does not restore old staging/package-workspace/release claims Notes: - No `CHANGELOG.md` exists on the active `refactor` branch. - No docs were changed; this is an internal game UI restoration/unused-code triage slice. ## UI evidence No screenshots or recordings attached; native/manual UI verification is still open. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Refactor** * Improved game state indicator rendering and consistency across map components * Reorganized chat conversation view architecture for better composability and state management * Simplified game mode route by consolidating logic into child components <!-- review_stack_entry_start --> [![Review Change Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/Pasta-Devs/Marinara-Engine/pull/1541?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack) <!-- review_stack_entry_end --> <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:13:29 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#5119
No description provided.