[PR #1610] [MERGED] Narrow game asset helper exports #5141

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

📋 Pull Request Information

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

Base: refactor ← Head: fix/issue-1566-game-helper-exports


📝 Commits (1)

  • 582d5d2 Narrow game asset helper exports

📊 Changes

3 files changed (+5 additions, -5 deletions)

View changed files

📝 src/features/modes/game/components/game-asset-generation-payload.ts (+1 -1)
📝 src/features/modes/game/lib/game-asset-selection.ts (+3 -3)
📝 src/features/modes/game/lib/game-audio-settings.ts (+1 -1)

📄 Description

Linked issue

Refs #1566

Why this change

  • Narrows the Game Asset And Audio Helper Visibility Knip slice by making in-file-only game asset/audio helpers private.

What changed

  • Made the game asset folder normalization/inclusion helper functions private to game-asset-selection.ts.
  • Made the missing-background tag helper private to game-asset-generation-payload.ts.
  • Made the default game audio settings constant private while keeping the exported GameAudioSettings type and persisted settings shape unchanged.

Refactor impact

Primary owner:

Game mode

Impact areas reviewed:

  • Game asset selection helper exports
  • Missing scene asset generation payload helper exports
  • Game audio settings helper exports

Boundary notes:

  • Feature-lane only; no engine contract cleanup, shared API changes, Rust validation changes, MIME/file type contract changes, upload validation changes, asset selection behavior changes, or persisted audio settings shape changes.

Pressure points touched:

  • None

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

Codex ran:

  • pnpm exec knip --exports --no-config-hints --reporter compact --no-exit-code
    • Before: target rows were present.
    • After: target rows were removed; unused exports dropped from 85 to 82.
  • pnpm test -- src\engine\contracts\constants\game-assets.test.ts src\features\modes\game-assets\components\GameAssetsBrowserView.test.tsx
  • pnpm typecheck
  • pnpm check:architecture
  • pnpm check:unused
  • pnpm build
  • pnpm check
  • git diff --check

No focused audio helper tests were present. git diff --check exited clean with only Windows line-ending warnings.

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. This is export visibility cleanup only; no visible UI behavior changed.


🔄 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/1610 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/29/2026 **Status:** ✅ Merged **Merged:** 5/29/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `refactor` ← **Head:** `fix/issue-1566-game-helper-exports` --- ### 📝 Commits (1) - [`582d5d2`](https://github.com/Pasta-Devs/Marinara-Engine/commit/582d5d2e88cf3bffde1a4353cc7695bc96e45ce7) Narrow game asset helper exports ### 📊 Changes **3 files changed** (+5 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `src/features/modes/game/components/game-asset-generation-payload.ts` (+1 -1) 📝 `src/features/modes/game/lib/game-asset-selection.ts` (+3 -3) 📝 `src/features/modes/game/lib/game-audio-settings.ts` (+1 -1) </details> ### 📄 Description ## Linked issue Refs #1566 ## Why this change - Narrows the Game Asset And Audio Helper Visibility Knip slice by making in-file-only game asset/audio helpers private. ## What changed - Made the game asset folder normalization/inclusion helper functions private to `game-asset-selection.ts`. - Made the missing-background tag helper private to `game-asset-generation-payload.ts`. - Made the default game audio settings constant private while keeping the exported `GameAudioSettings` type and persisted settings shape unchanged. ## Refactor impact Primary owner: Game mode Impact areas reviewed: - Game asset selection helper exports - Missing scene asset generation payload helper exports - Game audio settings helper exports Boundary notes: - Feature-lane only; no engine contract cleanup, shared API changes, Rust validation changes, MIME/file type contract changes, upload validation changes, asset selection behavior changes, or persisted audio settings shape changes. Pressure points touched: - None ## 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 Codex ran: - `pnpm exec knip --exports --no-config-hints --reporter compact --no-exit-code` - Before: target rows were present. - After: target rows were removed; unused exports dropped from 85 to 82. - `pnpm test -- src\engine\contracts\constants\game-assets.test.ts src\features\modes\game-assets\components\GameAssetsBrowserView.test.tsx` - `pnpm typecheck` - `pnpm check:architecture` - `pnpm check:unused` - `pnpm build` - `pnpm check` - `git diff --check` No focused audio helper tests were present. `git diff --check` exited clean with only Windows line-ending warnings. ## 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. This is export visibility cleanup only; no visible UI behavior changed. --- <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:40 +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#5141
No description provided.