[PR #3500] [MERGED] chore: remove dead files with zero references (part of #3488) #5965

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3500
Author: @kolacheee
Created: 7/11/2026
Status: ✅ Merged
Merged: 7/11/2026
Merged by: @SpicyMarinara

Base: staging ← Head: chore/3488-dead-code-deletions


📝 Commits (1)

  • 31cef89 chore: remove dead files with zero references (part of #3488)

📊 Changes

14 files changed (+0 additions, -2251 deletions)

View changed files

➖ packages/client/src/components/chat/ExpressionPanel.tsx (+0 -306)
➖ packages/client/src/components/chat/SpriteSidebar.tsx (+0 -117)
➖ packages/client/src/components/game/GameCheckpoints.tsx (+0 -211)
➖ packages/client/src/components/game/GameDialogueOverlay.tsx (+0 -113)
➖ packages/client/src/components/game/GameNpcTracker.tsx (+0 -66)
➖ packages/client/src/components/game/GamePartySidebar.tsx (+0 -387)
➖ packages/client/src/components/game/GameSessionBanner.tsx (+0 -59)
➖ packages/client/src/components/game/GameStateIndicator.tsx (+0 -56)
➖ packages/client/src/components/modals/BotBrowserModal.tsx (+0 -673)
➖ packages/client/src/features/chat-settings/sections/ManualRepliesSection.tsx (+0 -37)
➖ packages/client/src/hooks/use-party-turn.ts (+0 -42)
➖ packages/server/src/types/better-sqlite3.d.ts (+0 -11)
➖ packages/server/src/types/sql-js.d.ts (+0 -12)
➖ scripts/import-genshin-music.sh (+0 -161)

📄 Description

Linked issue

Part of #3488 (the unambiguous, zero-reference deletions; the report's judgment-call items are left for maintainer decision, see below).

Why this change

Dead code is where agents and contributors quietly go wrong: they edit files that never run, copy superseded patterns, and (in two cases in #3488) hit a dead name that collides with a live one. This PR removes the subset of #3488 that is unambiguous: whole files with zero references anywhere in the tree.

What changed

Deleted 14 files (2,251 lines), each re-verified against current staging with a repo-wide reference search (including lazy/dynamic imports, codegen registries, and string dispatch) returning only self-references, with the live replacement confirmed present:

  • game/GameSessionBanner, GameStateIndicator, GamePartySidebar, GameCheckpoints, GameDialogueOverlay, GameNpcTracker — superseded by the compact GamePartyBar / GameMap / handleConcludeSession paths
  • chat/ExpressionPanel, chat/SpriteSidebar — live path is SpriteOverlay
  • modals/BotBrowserModal — superseded by BotBrowserPanel (wired in RightPanel)
  • features/chat-settings/sections/ManualRepliesSection — the "Reply When Mentioned" control lives inline in ChatSettingsDrawer
  • hooks/use-party-turn — party turns flow through the /generate SSE pipeline
  • server/types/better-sqlite3.d.ts, sql-js.d.ts — ambient decls for packages the libsql-only createDB never imports
  • scripts/import-genshin-music.sh — personal one-off with hardcoded local paths, wired to nothing

Explicitly NOT deleted (need a maintainer decision between wiring-up and removal): the EditAgentModal modal case, buildDeterministicSummary, the genshin/hsr element-reaction presets, the PresetEditor parameters field, and the within-file dead branches from #3488. Those stay open on the issue.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

pnpm check (full TypeScript typecheck + production client build) passes after removal. For deletions this is the load-bearing check: a missed importer, lazy import, or type reference to any removed file would fail the build. No runtime behavior changes because nothing referenced these files.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

N/A — removal of unreachable code; no UI surface changes.

Summary by CodeRabbit

  • Removed Features

    • Removed several game interface panels, including NPC tracking, party conversations, dialogue overlays, session controls, checkpoints, and state indicators.
    • Removed sprite-based character display and manual reply settings.
    • Removed the bot browsing and character import interface.
    • Removed party-turn functionality supporting game conversations.
  • Chores

    • Removed an obsolete music import utility and unused database type declarations.

🔄 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/3500 **Author:** [@kolacheee](https://github.com/kolacheee) **Created:** 7/11/2026 **Status:** ✅ Merged **Merged:** 7/11/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `chore/3488-dead-code-deletions` --- ### 📝 Commits (1) - [`31cef89`](https://github.com/Pasta-Devs/Marinara-Engine/commit/31cef895b0a873eb19a89ddc8bfef2808fef16f1) chore: remove dead files with zero references (part of #3488) ### 📊 Changes **14 files changed** (+0 additions, -2251 deletions) <details> <summary>View changed files</summary> ➖ `packages/client/src/components/chat/ExpressionPanel.tsx` (+0 -306) ➖ `packages/client/src/components/chat/SpriteSidebar.tsx` (+0 -117) ➖ `packages/client/src/components/game/GameCheckpoints.tsx` (+0 -211) ➖ `packages/client/src/components/game/GameDialogueOverlay.tsx` (+0 -113) ➖ `packages/client/src/components/game/GameNpcTracker.tsx` (+0 -66) ➖ `packages/client/src/components/game/GamePartySidebar.tsx` (+0 -387) ➖ `packages/client/src/components/game/GameSessionBanner.tsx` (+0 -59) ➖ `packages/client/src/components/game/GameStateIndicator.tsx` (+0 -56) ➖ `packages/client/src/components/modals/BotBrowserModal.tsx` (+0 -673) ➖ `packages/client/src/features/chat-settings/sections/ManualRepliesSection.tsx` (+0 -37) ➖ `packages/client/src/hooks/use-party-turn.ts` (+0 -42) ➖ `packages/server/src/types/better-sqlite3.d.ts` (+0 -11) ➖ `packages/server/src/types/sql-js.d.ts` (+0 -12) ➖ `scripts/import-genshin-music.sh` (+0 -161) </details> ### 📄 Description ## Linked issue Part of #3488 (the unambiguous, zero-reference deletions; the report's judgment-call items are left for maintainer decision, see below). ## Why this change Dead code is where agents and contributors quietly go wrong: they edit files that never run, copy superseded patterns, and (in two cases in #3488) hit a dead name that collides with a live one. This PR removes the subset of #3488 that is unambiguous: whole files with zero references anywhere in the tree. ## What changed Deleted 14 files (2,251 lines), each re-verified against current staging with a repo-wide reference search (including lazy/dynamic imports, codegen registries, and string dispatch) returning only self-references, with the live replacement confirmed present: - `game/GameSessionBanner`, `GameStateIndicator`, `GamePartySidebar`, `GameCheckpoints`, `GameDialogueOverlay`, `GameNpcTracker` — superseded by the compact `GamePartyBar` / `GameMap` / `handleConcludeSession` paths - `chat/ExpressionPanel`, `chat/SpriteSidebar` — live path is `SpriteOverlay` - `modals/BotBrowserModal` — superseded by `BotBrowserPanel` (wired in `RightPanel`) - `features/chat-settings/sections/ManualRepliesSection` — the "Reply When Mentioned" control lives inline in `ChatSettingsDrawer` - `hooks/use-party-turn` — party turns flow through the `/generate` SSE pipeline - `server/types/better-sqlite3.d.ts`, `sql-js.d.ts` — ambient decls for packages the libsql-only `createDB` never imports - `scripts/import-genshin-music.sh` — personal one-off with hardcoded local paths, wired to nothing Explicitly NOT deleted (need a maintainer decision between wiring-up and removal): the `EditAgentModal` modal case, `buildDeterministicSummary`, the `genshin`/`hsr` element-reaction presets, the `PresetEditor` `parameters` field, and the within-file dead branches from #3488. Those stay open on the issue. ## Validation - [x] `pnpm check` passes locally - [x] Container (Docker / Podman) built and ran without issue - [x] Ran the app, clicked through the changes manually - [x] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [x] Above manual verification completed (describe below) - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes `pnpm check` (full TypeScript typecheck + production client build) passes after removal. For deletions this is the load-bearing check: a missed importer, lazy import, or type reference to any removed file would fail the build. No runtime behavior changes because nothing referenced these files. ## Docs and release impact - [x] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) N/A — removal of unreachable code; no UI surface changes. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Removed Features** * Removed several game interface panels, including NPC tracking, party conversations, dialogue overlays, session controls, checkpoints, and state indicators. * Removed sprite-based character display and manual reply settings. * Removed the bot browsing and character import interface. * Removed party-turn functionality supporting game conversations. * **Chores** * Removed an obsolete music import utility and unused database type declarations. <!-- 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-23 04:05:41 +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#5965
No description provided.