feat(wizard): gate stage navigation on disk artefacts and remove test_target fallbacks (v0.1.15) #75

Merged
gronod merged 1 commits from fix/issue-60-wizard-disk-artefact-gating into development 2026-08-25 10:47:20 +01:00
Owner

Summary

This PR implements disk-artefact gating for the wizard stepper navigation and removes all "test_target" fallbacks across modules (resolving #60).

Closes #60

Changes

  1. Backend Artefact Verifier (src-tauri/src/commands.rs, src-tauri/src/lib.rs):
    • Added verify_stage_artefacts(cwd, basename) -> StageStatus command checking for .ti1, .ti2, .ti3, and .icc/.icm on disk.
  2. Centralized Wizard State (src/js/state.js, src/js/app.js):
    • Built wizardState to track active basename and cwd, querying verify_stage_artefacts dynamically to update .step.disabled classes.
    • Guarded step clicks in app.js against disabled steps. Completed stages remain freely navigable backwards.
  3. Stage Integration & Crutch Removal:
    • Updated targen.js, printtarg.js, chartread.js, colprof.js, and profcheck.js to report progress to wizardState.
    • Eliminated all || "test_target" crutches, replacing them with strict validation and user feedback.
  4. CSS Stepper Styling (src/styles/main.css):
    • Added .step.disabled styling (opacity: 0.3; cursor: not-allowed;).
  5. Version Bump:
    • Incremented point version 0.1.14 -> 0.1.15 across package.json, src-tauri/Cargo.toml, and src-tauri/tauri.conf.json.
### Summary This PR implements disk-artefact gating for the wizard stepper navigation and removes all `"test_target"` fallbacks across modules (resolving #60). Closes #60 ### Changes 1. **Backend Artefact Verifier (`src-tauri/src/commands.rs`, `src-tauri/src/lib.rs`)**: - Added `verify_stage_artefacts(cwd, basename) -> StageStatus` command checking for `.ti1`, `.ti2`, `.ti3`, and `.icc`/`.icm` on disk. 2. **Centralized Wizard State (`src/js/state.js`, `src/js/app.js`)**: - Built `wizardState` to track active `basename` and `cwd`, querying `verify_stage_artefacts` dynamically to update `.step.disabled` classes. - Guarded step clicks in `app.js` against disabled steps. Completed stages remain freely navigable backwards. 3. **Stage Integration & Crutch Removal**: - Updated `targen.js`, `printtarg.js`, `chartread.js`, `colprof.js`, and `profcheck.js` to report progress to `wizardState`. - Eliminated all `|| "test_target"` crutches, replacing them with strict validation and user feedback. 4. **CSS Stepper Styling (`src/styles/main.css`)**: - Added `.step.disabled` styling (`opacity: 0.3; cursor: not-allowed;`). 5. **Version Bump**: - Incremented point version `0.1.14` -> `0.1.15` across `package.json`, `src-tauri/Cargo.toml`, and `src-tauri/tauri.conf.json`.
gronod added 1 commit 2026-08-25 10:37:56 +01:00
feat(wizard): gate stage navigation on disk artefacts and remove test_target fallbacks (v0.1.15)
Build Windows Packages / Build Windows (pull_request) Successful in 6m52s
Build Linux Packages / Build Linux (pull_request) Successful in 9m13s
5e52cb93a2
gronod merged commit 4a81b103aa into development 2026-08-25 10:47:20 +01:00
gronod deleted branch fix/issue-60-wizard-disk-artefact-gating 2026-08-25 10:47:21 +01:00
Sign in to join this conversation.