[PR #1659] [MERGED] Remove unused runtime visuals exports #5191

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

📋 Pull Request Information

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

Base: refactor ← Head: codex/knip-visuals-export-cleanup


📝 Commits (1)

  • c3fa165 Remove unused visuals exports

📊 Changes

2 files changed (+2 additions, -2 deletions)

View changed files

📝 src/features/runtime/visuals/components/SpriteOverlay.tsx (+1 -1)
📝 src/features/runtime/visuals/sprite-display-modes.ts (+1 -1)

📄 Description

Linked issue

N/A

Why this change

  • Continue the Knip unused-export cleanup from a fresh upstream/refactor baseline after PR #1614 merged.
  • Remove only public export markers that Knip still reports as unused in the runtime visuals owner lane.

What changed

  • Made detectExpression local to SpriteOverlay.tsx.
  • Made SPRITE_DISPLAY_MODES local to sprite-display-modes.ts while keeping the exported SpriteDisplayMode type derived from it.

Refactor impact

Primary owner:

  • Runtime visuals (src/features/runtime/visuals).

Impact areas reviewed:

  • Fresh Knip report before the slice showed 73 unused exports and 60 unused exported types.
  • Fresh Knip report after the slice showed 71 unused exports and 60 unused exported types.
  • Confirmed detectExpression and SPRITE_DISPLAY_MODES disappeared from the Knip unused-export report.
  • rg confirmed both symbols are only used locally in their owner files.

Boundary notes:

  • Feature-lane-only cleanup.
  • No engine, shared API, Rust, storage, schema, dependency, or prompt-pipeline behavior changed.
  • Runtime behavior is intended to be unchanged; this removes unnecessary public exports only.

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; the targeted rows for detectExpression and SPRITE_DISPLAY_MODES are gone.
  • Codex ran pnpm typecheck; it passed.
  • Codex ran git diff --check; it passed.
  • pnpm build was not run because this slice only removes public export markers and did not affect build/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; no visible UI behavior changed.

Summary by CodeRabbit

  • Refactor
    • Refactored internal sprite handling by making previously exported APIs private module implementations.

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/1659 **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:** `codex/knip-visuals-export-cleanup` --- ### 📝 Commits (1) - [`c3fa165`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c3fa1653a4d1289a62f7f6d2c3b17062f79c4871) Remove unused visuals exports ### 📊 Changes **2 files changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/features/runtime/visuals/components/SpriteOverlay.tsx` (+1 -1) 📝 `src/features/runtime/visuals/sprite-display-modes.ts` (+1 -1) </details> ### 📄 Description <!-- Target branch: `refactor`. Change the base to `refactor` before submitting unless a maintainer explicitly asked for another base. --> <!-- Keep all checkboxes unchecked until a human has actually verified them. --> ## Linked issue N/A ## Why this change - Continue the Knip unused-export cleanup from a fresh `upstream/refactor` baseline after PR #1614 merged. - Remove only public export markers that Knip still reports as unused in the runtime visuals owner lane. ## What changed - Made `detectExpression` local to `SpriteOverlay.tsx`. - Made `SPRITE_DISPLAY_MODES` local to `sprite-display-modes.ts` while keeping the exported `SpriteDisplayMode` type derived from it. ## Refactor impact Primary owner: - Runtime visuals (`src/features/runtime/visuals`). Impact areas reviewed: - Fresh Knip report before the slice showed `73` unused exports and `60` unused exported types. - Fresh Knip report after the slice showed `71` unused exports and `60` unused exported types. - Confirmed `detectExpression` and `SPRITE_DISPLAY_MODES` disappeared from the Knip unused-export report. - `rg` confirmed both symbols are only used locally in their owner files. Boundary notes: - Feature-lane-only cleanup. - No engine, shared API, Rust, storage, schema, dependency, or prompt-pipeline behavior changed. - Runtime behavior is intended to be unchanged; this removes unnecessary public exports only. Pressure points touched: - None. ## Validation <!-- Check only what you personally ran or manually verified. Treat unchecked items as explicit TODOs. --> - [ ] `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`; the targeted rows for `detectExpression` and `SPRITE_DISPLAY_MODES` are gone. - Codex ran `pnpm typecheck`; it passed. - Codex ran `git diff --check`; it passed. - `pnpm build` was not run because this slice only removes public export markers and did not affect build/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; no visible UI behavior changed. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Refactor** * Refactored internal sprite handling by making previously exported APIs private module implementations. <!-- 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/1659?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:14:05 +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#5191
No description provided.