In Stage 2 (Print Layout), allow users to input target metadata details (printer, ink set, driver paper setting, and actual paper type) to be printed below the color patch targets on the generated TIFF/PostScript pages via printtarg -d.
Changes
Stage 2 UI (src/index.html):
Added target metadata section with inputs for Printer Model (#targetMetadataPrinter), Ink Set (#targetMetadataInkSet), Driver Paper Setting (#targetMetadataDriverPaper), and Actual Paper Substrate (#targetMetadataActualPaper).
Added live preview text field (#targetLabelPreview) with an interactive toggle (#btnToggleLabelEdit) for manual edits or resetting to auto-assembly.
### Summary
In **Stage 2 (Print Layout)**, allow users to input target metadata details (printer, ink set, driver paper setting, and actual paper type) to be printed below the color patch targets on the generated TIFF/PostScript pages via `printtarg -d`.
### Changes
- **Stage 2 UI (`src/index.html`)**:
- Added target metadata section with inputs for Printer Model (`#targetMetadataPrinter`), Ink Set (`#targetMetadataInkSet`), Driver Paper Setting (`#targetMetadataDriverPaper`), and Actual Paper Substrate (`#targetMetadataActualPaper`).
- Added live preview text field (`#targetLabelPreview`) with an interactive toggle (`#btnToggleLabelEdit`) for manual edits or resetting to auto-assembly.
- **Frontend Logic (`src/js/printtarg.js`)**:
- Dynamically concatenates label format: `ICCery - <Basename> - <Printer> - <InkSet> - <DriverPaper> - <ActualPaper> - <Timestamp>`.
- Cleanly skips blank fields without redundant separators.
- Passes `custom_label` in `PrinttargConfig` payload to `run_printtarg`.
- Verified that profiling presets do not save or load these run-specific metadata fields.
- **Backend IPC (`src-tauri/src/commands.rs`)**:
- Extended `PrinttargConfig` with `custom_label: Option<String>`.
- Updated `build_printtarg_args` to pass `-d "<custom_label>"` to `printtarg`.
- Added unit test `test_build_printtarg_args_with_custom_label`.
Resolves #119.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
In Stage 2 (Print Layout), allow users to input target metadata details (printer, ink set, driver paper setting, and actual paper type) to be printed below the color patch targets on the generated TIFF/PostScript pages via
printtarg -d.Changes
src/index.html):#targetMetadataPrinter), Ink Set (#targetMetadataInkSet), Driver Paper Setting (#targetMetadataDriverPaper), and Actual Paper Substrate (#targetMetadataActualPaper).#targetLabelPreview) with an interactive toggle (#btnToggleLabelEdit) for manual edits or resetting to auto-assembly.src/js/printtarg.js):ICCery - <Basename> - <Printer> - <InkSet> - <DriverPaper> - <ActualPaper> - <Timestamp>.custom_labelinPrinttargConfigpayload torun_printtarg.src-tauri/src/commands.rs):PrinttargConfigwithcustom_label: Option<String>.build_printtarg_argsto pass-d "<custom_label>"toprinttarg.test_build_printtarg_args_with_custom_label.Resolves #119.