[PR #1614] [MERGED] Narrow game mode exports #5148

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1614
Author: @cha1latte
Created: 5/30/2026
Status: ✅ Merged
Merged: 5/30/2026
Merged by: @cha1latte

Base: refactor ← Head: chore/game-knip-export-cleanup


📝 Commits (1)

📊 Changes

6 files changed (+3 additions, -89 deletions)

View changed files

📝 src/features/modes/game/api/game-api.ts (+0 -6)
📝 src/features/modes/game/components/GameQteOverlay.tsx (+0 -22)
📝 src/features/modes/game/components/game-asset-generation-payload.ts (+1 -1)
📝 src/features/modes/game/hooks/use-game.ts (+0 -58)
📝 src/features/modes/game/lib/game-audio.ts (+1 -1)
📝 src/features/modes/game/lib/game-tag-parser.ts (+1 -1)

📄 Description

## Linked issue

N/A - Knip cleanup slice on refactor.

Why this change

  • Continues the fresh Knip export cleanup after the merged runtime tracker/world-state slice by narrowing unused public exports in the game mode owner lane.

What changed

  • Deleted unused exported helpers from src/features/modes/game/api/game-api.ts, src/features/modes/game/components/GameQteOverlay.tsx, and src/features/modes/game/hooks/use-game.ts.
  • Made unused exported types internal in src/features/modes/game/components/game-asset-generation-payload.ts, src/features/modes/game/lib/game-audio.ts, and src/features/modes/game/lib/game-tag-parser.ts.

Refactor impact

Primary owner:

game mode

Impact areas reviewed:

  • Game API helper exports
  • Game QTE overlay helper exports
  • Game React Query hook exports
  • Game asset generation payload types
  • Game audio layer types
  • Game tag parser types

Boundary notes:

  • Stayed within src/features/modes/game.
  • Did not touch character catalog.
  • Did not touch src/engine/contracts/**.
  • No runtime wrapper, Rust, remote runtime, schema, dependency, or storage changes.

Pressure points touched:

  • None. This did not touch ModeSurface, GameSurface, shared mode UI, Tauri command registration, or import modules.

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

  • pnpm install completed with the lockfile already up to date.
  • Fresh pre-slice Knip report: Unused exports (75), Unused exported types (62).
  • Post-slice pnpm exec knip --exports --no-config-hints --reporter compact --no-exit-code: Unused exports (72), Unused exported types (59).
  • pnpm typecheck passed.
  • git diff --check passed.
  • pnpm build was not run because this slice did not unexpectedly touch build or import behavior.

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

UI evidence

N/A - public export cleanup only; no visible UI behavior change.

Summary by CodeRabbit

  • Refactor
    • Consolidated game mode internal APIs by removing unused helper functions and query hooks
    • Removed deprecated utility helpers for journal and QTE parsing
    • Simplified React Query hook structure by removing unused party and loot-related hooks
    • Reduced internal type exports to streamline the public API surface
    • Added new combat round mutation hook to replace removed combat-related functionality

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/1614 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/30/2026 **Status:** ✅ Merged **Merged:** 5/30/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `refactor` ← **Head:** `chore/game-knip-export-cleanup` --- ### 📝 Commits (1) - [`3d3c943`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3d3c943a117e229381b3d737606e27ab09f97e63) Narrow game mode exports ### 📊 Changes **6 files changed** (+3 additions, -89 deletions) <details> <summary>View changed files</summary> 📝 `src/features/modes/game/api/game-api.ts` (+0 -6) 📝 `src/features/modes/game/components/GameQteOverlay.tsx` (+0 -22) 📝 `src/features/modes/game/components/game-asset-generation-payload.ts` (+1 -1) 📝 `src/features/modes/game/hooks/use-game.ts` (+0 -58) 📝 `src/features/modes/game/lib/game-audio.ts` (+1 -1) 📝 `src/features/modes/game/lib/game-tag-parser.ts` (+1 -1) </details> ### 📄 Description ## Linked issue N/A - Knip cleanup slice on `refactor`. ## Why this change - Continues the fresh Knip export cleanup after the merged runtime tracker/world-state slice by narrowing unused public exports in the game mode owner lane. ## What changed - Deleted unused exported helpers from `src/features/modes/game/api/game-api.ts`, `src/features/modes/game/components/GameQteOverlay.tsx`, and `src/features/modes/game/hooks/use-game.ts`. - Made unused exported types internal in `src/features/modes/game/components/game-asset-generation-payload.ts`, `src/features/modes/game/lib/game-audio.ts`, and `src/features/modes/game/lib/game-tag-parser.ts`. ## Refactor impact Primary owner: game mode Impact areas reviewed: - Game API helper exports - Game QTE overlay helper exports - Game React Query hook exports - Game asset generation payload types - Game audio layer types - Game tag parser types Boundary notes: - Stayed within `src/features/modes/game`. - Did not touch character catalog. - Did not touch `src/engine/contracts/**`. - No runtime wrapper, Rust, remote runtime, schema, dependency, or storage changes. Pressure points touched: - None. This did not touch ModeSurface, GameSurface, shared mode UI, Tauri command registration, or import modules. ## 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 - `pnpm install` completed with the lockfile already up to date. - Fresh pre-slice Knip report: `Unused exports (75)`, `Unused exported types (62)`. - Post-slice `pnpm exec knip --exports --no-config-hints --reporter compact --no-exit-code`: `Unused exports (72)`, `Unused exported types (59)`. - `pnpm typecheck` passed. - `git diff --check` passed. - `pnpm build` was not run because this slice did not unexpectedly touch build or import behavior. ## 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 ## UI evidence N/A - public export cleanup only; no visible UI behavior change. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Refactor** * Consolidated game mode internal APIs by removing unused helper functions and query hooks * Removed deprecated utility helpers for journal and QTE parsing * Simplified React Query hook structure by removing unused party and loot-related hooks * Reduced internal type exports to streamline the public API surface * Added new combat round mutation hook to replace removed combat-related functionality <!-- 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/1614?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:43 +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#5148
No description provided.