feat: auto-detect and import existing mods#115
Open
Teyk0o wants to merge 2 commits into
Open
Conversation
- Add Rust `scan_mods_folder` command: parallel directory walk with per-group progress events, groups files by parent folder - Add Rust `copy_file_to` command for efficient single-file copy - Add `ExistingModScanService`: orchestrates scan, cache import, and profile creation with unique UUID per mod (no more modId:-1) - Update `ModCacheService`: support non-ZIP files (.package, .ts4script) and batch group import via `addGroupToCache()` - Add `ScanExistingModsModal` UI: confirm → progress → summary - Add "Scan Existing Mods" button to profiles page Closes #61 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- ExistingModScanService: 9 tests covering scan, import, dedup, progress, error handling, folder vs loose file grouping - ModCacheService: 8 tests covering non-ZIP file handling, addGroupToCache, dedup, findModFiles - Rust: 6 tests for copy_file_to, calculate_file_hash, copy_dir_recursive Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.package/.ts4scriptfilesWickedWhims/= 1 mod)modId:-1bug)Changes
scan_mods_folder(walkdir + rayon parallel hash),copy_file_toaddGroupToCache()methodTest plan
Closes #61
🤖 Generated with Claude Code