fix(targen): pass patch count to targen -f flag (v0.1.5) #45

Merged
gronod merged 1 commits from fix/issue-44-patch-count-selection into development 2026-08-24 18:14:27 +01:00
Owner

Summary

This PR resolves Issue #44 where target generation (targen) ignored user-selected patch counts and always generated 836 patches.

Closes #44

Changes

  1. Command Generation (src-tauri/src/commands.rs):
    • Fixed build_targen_args to evaluate config.patch_count (with fallback to config.total_patches) and properly append -f <patch_count> to the targen arguments.
    • Updated unit tests to verify patch_count and fallback behavior.
  2. Frontend Target Generator (src/js/targen.js):
    • Added validation and fallback for custom patch count input.
    • Passed both patch_count and total_patches in the command config payload.
  3. Version Increment:
    • Bumped point version 0.1.4 -> 0.1.5 across package.json, src-tauri/Cargo.toml, and src-tauri/tauri.conf.json.
### Summary This PR resolves Issue #44 where target generation (`targen`) ignored user-selected patch counts and always generated 836 patches. Closes #44 ### Changes 1. **Command Generation (`src-tauri/src/commands.rs`)**: - Fixed `build_targen_args` to evaluate `config.patch_count` (with fallback to `config.total_patches`) and properly append `-f <patch_count>` to the `targen` arguments. - Updated unit tests to verify `patch_count` and fallback behavior. 2. **Frontend Target Generator (`src/js/targen.js`)**: - Added validation and fallback for custom patch count input. - Passed both `patch_count` and `total_patches` in the command config payload. 3. **Version Increment**: - Bumped point version `0.1.4` -> `0.1.5` across `package.json`, `src-tauri/Cargo.toml`, and `src-tauri/tauri.conf.json`.
gronod added 1 commit 2026-08-24 18:04:26 +01:00
fix(targen): pass patch_count to targen -f flag and bump version to 0.1.5
Build Linux Packages / Build Linux (pull_request) Successful in 9m39s
Build Windows Packages / Build Windows (pull_request) Successful in 10m25s
3ca1cd41de
gronod merged commit 5bb21dc32a into development 2026-08-24 18:14:27 +01:00
gronod deleted branch fix/issue-44-patch-count-selection 2026-08-24 18:14:28 +01:00
Sign in to join this conversation.