[PR #1613] [MERGED] Narrow runtime tracker exports #5146

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/1613
Author: @cha1latte
Created: 5/30/2026
Status: ✅ Merged
Merged: 5/30/2026
Merged by: @cha1latte

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


📝 Commits (1)

  • 40c0365 Narrow runtime tracker exports

📊 Changes

6 files changed (+16 additions, -16 deletions)

View changed files

📝 src/features/runtime/tracker/components/tracker-persona-profile-style.ts (+1 -1)
📝 src/features/runtime/tracker/components/tracker-world.helpers.ts (+7 -7)
📝 src/features/runtime/tracker/hooks/use-tracker-panel-model.ts (+1 -1)
📝 src/features/runtime/world-state/hooks/use-world-state-patcher.ts (+1 -1)
📝 src/features/runtime/world-state/lib/tracker-state-edits.ts (+4 -4)
📝 src/features/runtime/world-state/lib/world-state-display.ts (+2 -2)

📄 Description

Linked issue

N/A - Knip cleanup slice on refactor.

Why this change

  • Continue the Knip export cleanup for the src/features/runtime tracker/world-state slice by removing unnecessary public exports while preserving runtime behavior.

What changed

  • Made Knip-reported tracker persona/world helper exports internal where they are only used within their modules.
  • Made the tracker sprite lookup type internal to the tracker panel model module.
  • Made Knip-reported world-state patcher, tracker edit, and date-display helpers internal while leaving their implementation unchanged.

Refactor impact

Primary owner:

  • src/features/runtime

Impact areas reviewed:

  • Tracker panel helpers and model exports.
  • World-state patcher and tracker-state edit helpers.
  • World-state display date parsing helpers.

Boundary notes:

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

Pressure points touched:

  • None. No ModeSurface, GameSurface, command registration, or import modules touched.

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
  • pnpm exec knip --exports --no-config-hints --reporter compact --no-exit-code
    • Before: requested runtime targets were present in the Knip report.
    • After: requested runtime targets were removed from the Knip report; unrelated remaining rows were left untouched.
  • pnpm typecheck
  • Bunny pass on the current diff: no blocking findings. This is export-surface-only cleanup with no behavior changes, so no browser/UI proof was needed.

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 were made.

UI evidence

N/A - no visible UI behavior change.

Summary by CodeRabbit

  • Refactor
    • Internal code cleanup and API surface reduction across tracker and world-state modules. No changes 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/1613 **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/runtime-knip-export-cleanup` --- ### 📝 Commits (1) - [`40c0365`](https://github.com/Pasta-Devs/Marinara-Engine/commit/40c03652c07385e5dc692f15922dca8ecc1d93d5) Narrow runtime tracker exports ### 📊 Changes **6 files changed** (+16 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `src/features/runtime/tracker/components/tracker-persona-profile-style.ts` (+1 -1) 📝 `src/features/runtime/tracker/components/tracker-world.helpers.ts` (+7 -7) 📝 `src/features/runtime/tracker/hooks/use-tracker-panel-model.ts` (+1 -1) 📝 `src/features/runtime/world-state/hooks/use-world-state-patcher.ts` (+1 -1) 📝 `src/features/runtime/world-state/lib/tracker-state-edits.ts` (+4 -4) 📝 `src/features/runtime/world-state/lib/world-state-display.ts` (+2 -2) </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 - Knip cleanup slice on `refactor`. ## Why this change - Continue the Knip export cleanup for the `src/features/runtime` tracker/world-state slice by removing unnecessary public exports while preserving runtime behavior. ## What changed - Made Knip-reported tracker persona/world helper exports internal where they are only used within their modules. - Made the tracker sprite lookup type internal to the tracker panel model module. - Made Knip-reported world-state patcher, tracker edit, and date-display helpers internal while leaving their implementation unchanged. ## Refactor impact Primary owner: - `src/features/runtime` Impact areas reviewed: - Tracker panel helpers and model exports. - World-state patcher and tracker-state edit helpers. - World-state display date parsing helpers. Boundary notes: - Stayed within `src/features/runtime`. - Did not touch character catalog or `src/engine/contracts/**`. - No runtime wrapper, Rust, remote-runtime, schema, dependency, or storage changes. Pressure points touched: - None. No ModeSurface, GameSurface, command registration, or import modules touched. ## 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 - `pnpm install` - `pnpm exec knip --exports --no-config-hints --reporter compact --no-exit-code` - Before: requested runtime targets were present in the Knip report. - After: requested runtime targets were removed from the Knip report; unrelated remaining rows were left untouched. - `pnpm typecheck` - Bunny pass on the current diff: no blocking findings. This is export-surface-only cleanup with no behavior changes, so no browser/UI proof was needed. ## 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 were made. ## UI evidence N/A - no visible UI behavior change. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Refactor** * Internal code cleanup and API surface reduction across tracker and world-state modules. No changes 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/1613?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#5146
No description provided.