[PR #1660] [MERGED] Remove unused roleplay exports #5193

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

📋 Pull Request Information

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

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


📝 Commits (1)

  • 8cbafb0 Remove unused roleplay exports

📊 Changes

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

View changed files

📝 src/features/modes/roleplay/components/RoleplayHUDWidgetShell.tsx (+1 -1)
📝 src/features/modes/roleplay/hooks/use-agent-injection-review.ts (+1 -1)

📄 Description

Linked issue

N/A - Knip cleanup slice from the fresh refactor unused exports report.

Why this change

  • Removes two roleplay public exports that Knip reports as unused while keeping the implementation local to each module.

What changed

  • Made getWidgetPopoverPlacement private inside RoleplayHUDWidgetShell.tsx.
  • Made AgentInjectionReviewItem private inside use-agent-injection-review.ts.

Refactor impact

Primary owner:

Roleplay mode.

Impact areas reviewed:

  • Roleplay HUD widget popover placement.
  • Roleplay agent injection review hook typing.

Boundary notes:

  • Feature-only cleanup under src/features/modes/roleplay.
  • No engine, shared API, Rust, storage, schema, dependency, or remote-runtime boundaries touched.

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: Unused exports (71), Unused exported types (60).
    • After: Unused exports (70), Unused exported types (59).
    • Removed rows: getWidgetPopoverPlacement and AgentInjectionReviewItem.
  • Codex ran pnpm typecheck.
  • Codex ran git diff --check.
  • Codex ran Bunny pre-PR review on the current diff.

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

No docs or release-note changes expected for this internal export visibility cleanup.

UI evidence

N/A - no visible UI behavior changed.

Summary by CodeRabbit

  • Refactor
    • Internal code structure improvements with no impact to user-facing 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/1660 **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-roleplay-export-cleanup` --- ### 📝 Commits (1) - [`8cbafb0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8cbafb07c34fe8f9db18b452e59e350beda27cf4) Remove unused roleplay exports ### 📊 Changes **2 files changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/features/modes/roleplay/components/RoleplayHUDWidgetShell.tsx` (+1 -1) 📝 `src/features/modes/roleplay/hooks/use-agent-injection-review.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 <!-- Every user-facing PR should reference a feature request or issue report when practical. --> N/A - Knip cleanup slice from the fresh `refactor` unused exports report. ## Why this change <!-- What user problem, bug, refactor goal, or maintenance need does this solve? --> - Removes two roleplay public exports that Knip reports as unused while keeping the implementation local to each module. ## What changed <!-- List the key changes in this PR. --> - Made `getWidgetPopoverPlacement` private inside `RoleplayHUDWidgetShell.tsx`. - Made `AgentInjectionReviewItem` private inside `use-agent-injection-review.ts`. ## Refactor impact Primary owner: <!-- Examples: app shell, catalog, chat mode, roleplay mode, game mode, runtime generation, world-state, shared API, engine generation, Rust storage, imports, remote runtime. --> Roleplay mode. Impact areas reviewed: - Roleplay HUD widget popover placement. - Roleplay agent injection review hook typing. Boundary notes: <!-- Note engine/shared-api/feature/Rust/remote-runtime boundaries. Say "none" only if you checked. --> - Feature-only cleanup under `src/features/modes/roleplay`. - No engine, shared API, Rust, storage, schema, dependency, or remote-runtime boundaries touched. Pressure points touched: <!-- Mention ModeSurface, GameSurface, shared mode UI, src-tauri/src/lib.rs command registration, or import modules if 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 <!-- Describe exactly what you tested in a real browser/app/runtime, step by step. If an AI agent filled this out, verify it yourself before ticking boxes. --> - Codex ran `pnpm exec knip --exports --no-config-hints --reporter compact --no-exit-code`. - Before: `Unused exports (71)`, `Unused exported types (60)`. - After: `Unused exports (70)`, `Unused exported types (59)`. - Removed rows: `getWidgetPopoverPlacement` and `AgentInjectionReviewItem`. - Codex ran `pnpm typecheck`. - Codex ran `git diff --check`. - Codex ran Bunny pre-PR review on the current diff. ## 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 No docs or release-note changes expected for this internal export visibility cleanup. ## UI evidence <!-- Add before/after screenshots or recordings for visible UI changes. --> N/A - no visible UI behavior changed. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Refactor** * Internal code structure improvements with no impact to user-facing 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/1660?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:06 +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#5193
No description provided.