mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1566] [Feature]: Track remaining practical Knip restore follow-ups #807
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#807
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Xelvanis on GitHub (May 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1566
Originally assigned to: @cha1latte, @Xelvanis on GitHub.
What problem does this solve?
The original Knip refactor-parity tracker (#1496) is closed, and the first post-close restore slice (#1563) has merged. We still need a public progress issue for the remaining full Knip report so the work stays restore-first instead of drifting into blind deletion.
Current state as of 2026-05-29:
@tauri-apps/plugin-openerwiring for Settings and Spotify external links; it merged on 2026-05-29.pnpm check:unusednow guards the strict unused-file bucket withknip --files --no-config-hints.The goal is to restore where practical, keep intended behavior wired through the correct owners, and only delete or ignore entries after the owner decision is clear.
Proposed behavior
Track the remaining Knip follow-up work as a restore/classification queue:
Current full-Knip buckets to track:
@tauri-apps/plugin-window-state,class-variance-authority.@eslint/js,@rollup/wasm-node,autoprefixer.Known status from local triage:
@tauri-apps/plugin-window-stateappears likely to be Rust/native-side usage rather than removable frontend dead weight.@eslint/jsneeds care because switching ESLint config shape previously surfaced broad existing lint noise.class-variance-authority,@rollup/wasm-node,autoprefixer, and the export/type buckets still need focused classification.Expected owner or impact area
Refactor branch considerations
Alternatives considered
Additional context
Recent related work:
@tauri-apps/plugin-openerfrom the full Knip dependency report.Current local verification baseline before filing this issue:
pnpm exec knip --reporter compact --no-exit-code --no-config-hintsstill reports the buckets listed above.pnpm check:unusedpasses for the strict unused-file guard.Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:
@Xelvanis commented on GitHub (May 29, 2026):
Progress update as of 2026-05-30:
Landed on
refactor:de822fdbremoved the remaining Knip-reported package dependency/devDependency entries after validation. Full Knip no longer has dependency or devDependency buckets.ab8af081classified the tracker portrait duplicate export aliases as intentional semantic aliases with a narrowignoreIssuesentry for the owning constants file. Full Knip no longer has a duplicate-export bucket.Prepared locally on
restore/knip-export-contracts:8e661ea8restores the Remote Runtime JSON profile import path through the existingprofile_importcommand, while native/local import continues to use the JSON/ZIPprofile_import_filepath.src/shared/api/profile-api.tsare now private behind the exportedprofileApi/backupApifacades, so full Knip no longer reportsprofile-api.tsas unused exported surface.Current full-Knip shape after the local slice:
Unused exports (126)Unused exported types (80)Validation run for the local profile-import slice:
pnpm typecheckpnpm check:architecturepnpm check:unusedpnpm lint:eslintpnpm buildgit diff --checkRemaining gap: I have not manually exercised profile import in a running Tauri app or against a live remote runtime yet. Next slice should continue owner-by-owner export/type classification, preferring restore or public-contract classification before delete/ignore decisions.
@Xelvanis commented on GitHub (May 29, 2026):
Progress update as of 2026-05-30:
Opened PR #1579: https://github.com/Pasta-Devs/Marinara-Engine/pull/1579
This PR packages the next practical restore/narrowing slice on
restore/knip-export-contracts:profile_importpath; native/local profile import still uses the JSON/ZIPprofile_import_filepath.gameAssetsApiand visual asset APIs.Validation run after rebasing onto current
origin/refactor:pnpm test src/features/shell/settings/components/ProfileImportSection.test.tsx --runpnpm test src/shared/lib/chat-macros.test.ts --runpnpm test src/shared/lib/url-blob.test.ts --runpnpm typecheckpnpm check:architecturepnpm lint:eslintpnpm check:unusedpnpm buildpassed with the existing large-chunk warninggit diff --checkpnpm exec knip --exports --no-config-hintsfor the export-surface snapshot; targeted restored/narrowed helpers were not reportedCurrent PR/CI state at the time of this issue update:
refactor.Remaining proof gaps:
LabelWithHelp, TTS mask export cleanup, and remaining UI store duplicate constants.@Xelvanis commented on GitHub (May 29, 2026):
Progress update as of 2026-05-30:
Opened PR #1591: https://github.com/Pasta-Devs/Marinara-Engine/pull/1591
This packages the next practical Knip restore/contract slice on
restore/knip-game-asset-mime-maps:image/*.Recently landed since the last update:
Validation for #1591:
pnpm test -- src/engine/contracts/constants/game-assets.test.tscargo test --manifest-path src-tauri/Cargo.toml -p marinara-assetspnpm buildpassed with the existing large-chunk warning.pnpm check:architecturepnpm check:unusedcargo check --manifest-path src-tauri/Cargo.toml --workspaceCurrent PR/CI state:
refactor.Remaining proof gaps:
@cha1latte commented on GitHub (May 29, 2026):
Triage note: labeling this as
scope-riskbecause remaining Knip work can either restore real public contracts or accidentally delete latent integration surface.A good next step is to keep the work owner-by-owner, with restore/delete decisions and validation recorded per slice.