feat: Stage 4 & 5 - Profile Calculation (colprof) & Verification (profcheck) #14

Merged
gronod merged 1 commits from feature/stage-4-and-5 into feature/stage-3-chartread 2026-08-22 18:27:23 +01:00
Owner

Summary

Implements Milestone 4 (Issues #7 and #8: Stage 4 Profile Generation & Stage 5 Automated Verification).

This stage completes the core ICC profiling workflow by computing the final ICC profile from measurement data (colprof) and verifying profile accuracy (profcheck).

Changes

Backend (Rust)

  • ColprofConfig & build_colprof_args: Added config struct and argument builder (-v -u -q <quality> -a <algo> -D <desc> [-C <copyright>] <basename>).
  • run_colprof Tauri Command: Added async command to spawn colprof via ProcessManager.
  • ProfcheckConfig & build_profcheck_args: Added config struct and argument builder (-v -k -u <ti3_path> <icc_path>).
  • run_profcheck Tauri Command: Added async command to spawn profcheck via ProcessManager.
  • Unit Tests: Added tests for colprof and profcheck argument construction (all 8 lib unit tests passing).

Frontend (HTML / JS / CSS)

  • colprof.js: Stage 4 frontend logic with form controls (Quality, Algorithm, Description, Copyright), progress spinner, coarse-grained stage tracking, and success card.
  • profcheck.js: Stage 5 frontend logic with verification report card rendering, \Delta E_{00} metric extraction (Average, Peak, RMS), and quality verdict badges (EXCELLENT, GOOD, ACCEPTABLE, POOR).
  • index.html & main.css: Updated Stage 4 and Stage 5 section containers and styles.

Testing & Mocking

  • colprof.mock & profcheck.mock: Included mock shell scripts to test end-to-end profile generation and verification without hardware/binary dependencies.

Closes #7
Closes #8

## Summary Implements Milestone 4 (Issues #7 and #8: Stage 4 Profile Generation & Stage 5 Automated Verification). This stage completes the core ICC profiling workflow by computing the final ICC profile from measurement data (`colprof`) and verifying profile accuracy (`profcheck`). ## Changes ### Backend (Rust) - **`ColprofConfig` & `build_colprof_args`**: Added config struct and argument builder (`-v -u -q <quality> -a <algo> -D <desc> [-C <copyright>] <basename>`). - **`run_colprof` Tauri Command**: Added async command to spawn `colprof` via `ProcessManager`. - **`ProfcheckConfig` & `build_profcheck_args`**: Added config struct and argument builder (`-v -k -u <ti3_path> <icc_path>`). - **`run_profcheck` Tauri Command**: Added async command to spawn `profcheck` via `ProcessManager`. - **Unit Tests**: Added tests for `colprof` and `profcheck` argument construction (all 8 lib unit tests passing). ### Frontend (HTML / JS / CSS) - **`colprof.js`**: Stage 4 frontend logic with form controls (Quality, Algorithm, Description, Copyright), progress spinner, coarse-grained stage tracking, and success card. - **`profcheck.js`**: Stage 5 frontend logic with verification report card rendering, $\Delta E_{00}$ metric extraction (Average, Peak, RMS), and quality verdict badges (`EXCELLENT`, `GOOD`, `ACCEPTABLE`, `POOR`). - **`index.html` & `main.css`**: Updated Stage 4 and Stage 5 section containers and styles. ### Testing & Mocking - **`colprof.mock` & `profcheck.mock`**: Included mock shell scripts to test end-to-end profile generation and verification without hardware/binary dependencies. Closes #7 Closes #8
gronod added 1 commit 2026-08-22 18:04:46 +01:00
gronod merged commit 49e64421c1 into feature/stage-3-chartread 2026-08-22 18:27:23 +01:00
Sign in to join this conversation.